Apply state from PeerDialogs (#3901)

This commit is contained in:
Alexander Zinchuk 2023-10-10 13:35:10 +02:00
parent a5ad37f36f
commit a21019c340

View File

@ -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);
}