Skip to content

Commit

Permalink
Fix empty chats assertion violation.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Jun 22, 2018
1 parent 1e10529 commit 51189fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Telegram/SourceFiles/export/output/export_output_text.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -869,9 +869,9 @@ Result TextWriter::writeChatEnd() {
}

Result TextWriter::writeChatsEnd() {
Expects(_chats != nullptr);

_chats = nullptr;
if (_chats) {
_chats = nullptr;
}
return Result::Success();
}

Expand Down

0 comments on commit 51189fd

Please sign in to comment.