Fixed possible crash in notifications manager.

This commit is contained in:
23rd 2021-06-24 09:08:57 +03:00 committed by John Preston
parent bb76818cc8
commit c1067d8fe1
2 changed files with 3 additions and 1 deletions

View File

@ -76,7 +76,7 @@ Manager::Manager(System *system)
system->settingsChanged(
) | rpl::start_with_next([=](ChangeType change) {
settingsChanged(change);
}, system->lifetime());
}, _lifetime);
}
Manager::QueuedNotification::QueuedNotification(

View File

@ -126,6 +126,8 @@ private:
mutable QPixmap _hiddenUserpicPlaceholder;
rpl::lifetime _lifetime;
};
namespace internal {