mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-25 18:10:35 +00:00
Fix crash in empty topics message sending.
This commit is contained in:
parent
27aa678f6a
commit
454c8db00d
@ -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…
Reference in New Issue
Block a user