mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-10 16:28:17 +00:00
Fix possible crash in ~RepliesWidget on logout.
This commit is contained in:
parent
f5ab3a54bf
commit
e4834f583f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user