mirror of
https://github.com/telegramdesktop/tdesktop
synced 2024-12-25 16:02:52 +00:00
Fix empty chats assertion violation.
This commit is contained in:
parent
1e10529f20
commit
51189fd244
@ -869,9 +869,9 @@ Result TextWriter::writeChatEnd() {
|
||||
}
|
||||
|
||||
Result TextWriter::writeChatsEnd() {
|
||||
Expects(_chats != nullptr);
|
||||
|
||||
_chats = nullptr;
|
||||
if (_chats) {
|
||||
_chats = nullptr;
|
||||
}
|
||||
return Result::Success();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user