Fix exception in updateChatLastMessage
This commit is contained in:
parent
89a5647fd4
commit
969693bb18
@ -779,7 +779,7 @@ function updateChatLastMessage(
|
||||
}
|
||||
|
||||
global = updateChat(global, chatId, { lastMessage: message });
|
||||
const topic = chat.isForum ? selectTopicFromMessage(global, message) : undefined;
|
||||
const topic = chat?.isForum ? selectTopicFromMessage(global, message) : undefined;
|
||||
if (topic) {
|
||||
global = updateTopic(global, chatId, topic.id, {
|
||||
lastMessageId: message.id,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user