Save preloaded filters info.
This commit is contained in:
parent
dfc1712043
commit
ab33af3f73
|
@ -192,8 +192,9 @@ void Step::createSession(
|
|||
// "this" is already deleted here by creating the main widget.
|
||||
account->local().writeMtpData();
|
||||
auto &session = account->session();
|
||||
if (!filters.isEmpty()) {
|
||||
session.data().chatsFilters().setPreloaded(filters);
|
||||
if (!filters.isEmpty()) {
|
||||
session.saveSettingsDelayed();
|
||||
}
|
||||
if (!photo.isNull()) {
|
||||
session.api().uploadPeerPhoto(session.user(), std::move(photo));
|
||||
|
|
Loading…
Reference in New Issue