Apply state from PeerDialogs (#3901)
This commit is contained in:
parent
a5ad37f36f
commit
a21019c340
@ -69,7 +69,7 @@ import {
|
|||||||
} from '../helpers';
|
} from '../helpers';
|
||||||
import localDb from '../localDb';
|
import localDb from '../localDb';
|
||||||
import { scheduleMutedChatUpdate } from '../scheduleUnmute';
|
import { scheduleMutedChatUpdate } from '../scheduleUnmute';
|
||||||
import { updateChannelState } from '../updateManager';
|
import { applyState, updateChannelState } from '../updateManager';
|
||||||
import { invokeRequest, uploadFile } from './client';
|
import { invokeRequest, uploadFile } from './client';
|
||||||
|
|
||||||
type FullChatData = {
|
type FullChatData = {
|
||||||
@ -356,6 +356,8 @@ export async function requestChatUpdate({
|
|||||||
chat: chatUpdate,
|
chat: chatUpdate,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
applyState(result.state);
|
||||||
|
|
||||||
scheduleMutedChatUpdate(chatUpdate.id, chatUpdate.muteUntil, onUpdate);
|
scheduleMutedChatUpdate(chatUpdate.id, chatUpdate.muteUntil, onUpdate);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user