Forum: Fix topic last message display after deletion (#4240)

This commit is contained in:
Alexander Zinchuk 2024-02-06 16:49:31 +01:00
parent 0ba12d4dd5
commit 0297a76326

View File

@ -1012,6 +1012,12 @@ export function deleteMessages<T extends GlobalState>(
global = updateThreadInfo(global, chatId, threadId, {
lastMessageId: newLastMessage.id,
});
if (chat.isForum) {
global = updateTopic(global, chatId, Number(threadId), {
lastMessageId: newLastMessage.id,
});
}
});
setGlobal(global);