Save preloaded filters info.

This commit is contained in:
John Preston 2020-06-30 11:18:35 +04:00
parent dfc1712043
commit ab33af3f73
1 changed files with 2 additions and 1 deletions

View File

@ -192,8 +192,9 @@ void Step::createSession(
// "this" is already deleted here by creating the main widget.
account->local().writeMtpData();
auto &session = account->session();
session.data().chatsFilters().setPreloaded(filters);
if (!filters.isEmpty()) {
session.data().chatsFilters().setPreloaded(filters);
session.saveSettingsDelayed();
}
if (!photo.isNull()) {
session.api().uploadPeerPhoto(session.user(), std::move(photo));