diff --git a/src/api/gramjs/methods/chats.ts b/src/api/gramjs/methods/chats.ts index 2e5c5a283..ae9337aa7 100644 --- a/src/api/gramjs/methods/chats.ts +++ b/src/api/gramjs/methods/chats.ts @@ -69,7 +69,7 @@ import { } from '../helpers'; import localDb from '../localDb'; import { scheduleMutedChatUpdate } from '../scheduleUnmute'; -import { updateChannelState } from '../updateManager'; +import { applyState, updateChannelState } from '../updateManager'; import { invokeRequest, uploadFile } from './client'; type FullChatData = { @@ -356,6 +356,8 @@ export async function requestChatUpdate({ chat: chatUpdate, }); + applyState(result.state); + scheduleMutedChatUpdate(chatUpdate.id, chatUpdate.muteUntil, onUpdate); }