mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-05 00:46:08 +00:00
Fix crash in empty topics message sending.
This commit is contained in:
@@ -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)) {
|
||||
|
Reference in New Issue
Block a user