Pin Message: Fix pin icon update inside message bubble (#6860)

This commit is contained in:
Alexander Zinchuk 2026-04-27 14:28:56 +02:00
parent 0cdaaeb2ce
commit a3334ee4e7

View File

@ -633,6 +633,11 @@ addActionHandler('apiUpdate', (global, actions, update): ActionReturnType => {
case 'updatePinnedIds': {
const { chatId, isPinned, messageIds } = update;
const shouldBePinned = Boolean(isPinned);
messageIds.forEach((id) => {
global = updateChatMessage(global, chatId, id, { isPinned: shouldBePinned });
});
const messageIdsByThreadId = groupMessageIdsByThreadId(global, chatId, messageIds, false);