mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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);
|
Expects(item->topicRootId() == _rootId);
|
||||||
|
|
||||||
if (!_lastMessage
|
if (!_lastMessage
|
||||||
|
|| !(*_lastMessage)
|
||||||
|| ((*_lastMessage)->date() < item->date())
|
|| ((*_lastMessage)->date() < item->date())
|
||||||
|| ((*_lastMessage)->date() == item->date()
|
|| ((*_lastMessage)->date() == item->date()
|
||||||
&& (*_lastMessage)->id < item->id)) {
|
&& (*_lastMessage)->id < item->id)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue