Remove logic show toolbar on new message received (#12488)

This commit is contained in:
Duduman Bogdan Vlad 2022-11-03 09:18:21 +02:00 committed by GitHub
parent a995b33753
commit 36bef94c3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 5 deletions

View File

@ -401,7 +401,6 @@ function _handleReceivedMessage({ dispatch, getState }: IStore,
// Logic for all platforms:
const state = getState();
const { isOpen: isChatOpen } = state['features/chat'];
const { iAmRecorder } = state['features/base/config'];
const { soundsIncomingMessage: soundEnabled, userSelectedNotifications } = state['features/base/settings'];
if (soundEnabled && shouldPlaySound && !isChatOpen) {
@ -454,10 +453,6 @@ function _handleReceivedMessage({ dispatch, getState }: IStore,
privateMessage,
ts: timestamp
});
if (!iAmRecorder) {
dispatch(showToolbox(4000));
}
}
}