Pin Message: Fix pin icon update inside message bubble (#6860)
This commit is contained in:
parent
0cdaaeb2ce
commit
a3334ee4e7
@ -633,6 +633,11 @@ addActionHandler('apiUpdate', (global, actions, update): ActionReturnType => {
|
|||||||
|
|
||||||
case 'updatePinnedIds': {
|
case 'updatePinnedIds': {
|
||||||
const { chatId, isPinned, messageIds } = update;
|
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);
|
const messageIdsByThreadId = groupMessageIdsByThreadId(global, chatId, messageIds, false);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user