mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Fix possible crash in ~RepliesWidget on logout.
This commit is contained in:
@@ -1087,7 +1087,7 @@ void Account::unregisterDraftSource(
|
||||
void Account::writeDrafts(not_null<History*> history) {
|
||||
const auto peerId = history->peer->id;
|
||||
const auto &map = history->draftsMap();
|
||||
const auto supportMode = _owner->session().supportMode();
|
||||
const auto supportMode = history->session().supportMode();
|
||||
const auto sourcesIt = _draftSources.find(history);
|
||||
const auto &sources = (sourcesIt != _draftSources.end())
|
||||
? sourcesIt->second
|
||||
@@ -1168,7 +1168,7 @@ void Account::writeDrafts(not_null<History*> history) {
|
||||
void Account::writeDraftCursors(not_null<History*> history) {
|
||||
const auto peerId = history->peer->id;
|
||||
const auto &map = history->draftsMap();
|
||||
const auto supportMode = _owner->session().supportMode();
|
||||
const auto supportMode = history->session().supportMode();
|
||||
const auto sourcesIt = _draftSources.find(history);
|
||||
const auto &sources = (sourcesIt != _draftSources.end())
|
||||
? sourcesIt->second
|
||||
|
Reference in New Issue
Block a user