mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 15:43:55 +02:00
Save preloaded filters info.
This commit is contained in:
parent
dfc1712043
commit
ab33af3f73
1 changed files with 2 additions and 1 deletions
|
@ -192,8 +192,9 @@ void Step::createSession(
|
||||||
// "this" is already deleted here by creating the main widget.
|
// "this" is already deleted here by creating the main widget.
|
||||||
account->local().writeMtpData();
|
account->local().writeMtpData();
|
||||||
auto &session = account->session();
|
auto &session = account->session();
|
||||||
|
session.data().chatsFilters().setPreloaded(filters);
|
||||||
if (!filters.isEmpty()) {
|
if (!filters.isEmpty()) {
|
||||||
session.data().chatsFilters().setPreloaded(filters);
|
session.saveSettingsDelayed();
|
||||||
}
|
}
|
||||||
if (!photo.isNull()) {
|
if (!photo.isNull()) {
|
||||||
session.api().uploadPeerPhoto(session.user(), std::move(photo));
|
session.api().uploadPeerPhoto(session.user(), std::move(photo));
|
||||||
|
|
Loading…
Add table
Reference in a new issue