Apply state from PeerDialogs (#3901)
This commit is contained in:
parent
a5ad37f36f
commit
a21019c340
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user