mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 06:07:06 +02:00
Fix crash in empty topics message sending.
This commit is contained in:
parent
27aa678f6a
commit
454c8db00d
1 changed files with 1 additions and 0 deletions
|
@ -767,6 +767,7 @@ void ForumTopic::maybeSetLastMessage(not_null<HistoryItem*> item) {
|
|||
Expects(item->topicRootId() == _rootId);
|
||||
|
||||
if (!_lastMessage
|
||||
|| !(*_lastMessage)
|
||||
|| ((*_lastMessage)->date() < item->date())
|
||||
|| ((*_lastMessage)->date() == item->date()
|
||||
&& (*_lastMessage)->id < item->id)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue