From a21019c3400dd5c44605479bab47cd7c21990c34 Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Tue, 10 Oct 2023 13:35:10 +0200 Subject: [PATCH] Apply state from PeerDialogs (#3901) --- src/api/gramjs/methods/chats.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); }