Forum: Fix topic last message display after deletion (#4240)
This commit is contained in:
parent
0ba12d4dd5
commit
0297a76326
@ -1012,6 +1012,12 @@ export function deleteMessages<T extends GlobalState>(
|
|||||||
global = updateThreadInfo(global, chatId, threadId, {
|
global = updateThreadInfo(global, chatId, threadId, {
|
||||||
lastMessageId: newLastMessage.id,
|
lastMessageId: newLastMessage.id,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (chat.isForum) {
|
||||||
|
global = updateTopic(global, chatId, Number(threadId), {
|
||||||
|
lastMessageId: newLastMessage.id,
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
setGlobal(global);
|
setGlobal(global);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user