mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix possible crash in ~RepliesWidget on logout.
This commit is contained in:
parent
f5ab3a54bf
commit
e4834f583f
1 changed files with 2 additions and 2 deletions
|
@ -1087,7 +1087,7 @@ void Account::unregisterDraftSource(
|
||||||
void Account::writeDrafts(not_null<History*> history) {
|
void Account::writeDrafts(not_null<History*> history) {
|
||||||
const auto peerId = history->peer->id;
|
const auto peerId = history->peer->id;
|
||||||
const auto &map = history->draftsMap();
|
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 sourcesIt = _draftSources.find(history);
|
||||||
const auto &sources = (sourcesIt != _draftSources.end())
|
const auto &sources = (sourcesIt != _draftSources.end())
|
||||||
? sourcesIt->second
|
? sourcesIt->second
|
||||||
|
@ -1168,7 +1168,7 @@ void Account::writeDrafts(not_null<History*> history) {
|
||||||
void Account::writeDraftCursors(not_null<History*> history) {
|
void Account::writeDraftCursors(not_null<History*> history) {
|
||||||
const auto peerId = history->peer->id;
|
const auto peerId = history->peer->id;
|
||||||
const auto &map = history->draftsMap();
|
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 sourcesIt = _draftSources.find(history);
|
||||||
const auto &sources = (sourcesIt != _draftSources.end())
|
const auto &sources = (sourcesIt != _draftSources.end())
|
||||||
? sourcesIt->second
|
? sourcesIt->second
|
||||||
|
|
Loading…
Add table
Reference in a new issue