Fix redundant error message about admin rights (#1426)
This commit is contained in:
parent
e01ccf27d4
commit
dde6477236
@ -250,7 +250,7 @@ const Composer: FC<OwnProps & StateProps & DispatchProps> = ({
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (chatId && lastSyncTime && threadId === MAIN_THREAD_ID && isReady) {
|
if (chatId && lastSyncTime && threadId === MAIN_THREAD_ID && isReady) {
|
||||||
loadScheduledHistory();
|
loadScheduledHistory({ chatId });
|
||||||
}
|
}
|
||||||
}, [isReady, chatId, loadScheduledHistory, lastSyncTime, threadId]);
|
}, [isReady, chatId, loadScheduledHistory, lastSyncTime, threadId]);
|
||||||
|
|
||||||
|
|||||||
@ -558,8 +558,9 @@ addReducer('forwardMessages', (global) => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
addReducer('loadScheduledHistory', (global) => {
|
addReducer('loadScheduledHistory', (global, actions, payload) => {
|
||||||
const chat = selectCurrentChat(global);
|
const { chatId } = payload;
|
||||||
|
const chat = selectChat(global, chatId);
|
||||||
if (!chat) {
|
if (!chat) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user