Fix chat audio filtering bug

This commit is contained in:
Curtis ROck 2020-09-05 19:36:28 -05:00
parent ca9be1ed05
commit e157754116

View file

@ -160,10 +160,13 @@ export function updateChatsQueue(chat) {
// const flashWindow = getSettings(getState()).getIn(['chats', 'flash']); // const flashWindow = getSettings(getState()).getIn(['chats', 'flash']);
if (playSound) { if (playSound) {
dispatch({ if (chat.last_message &&
type: CHATS_UPDATE_NOOP, chat.last_message.account_id !== getState().get('me')) {
meta: { sound: 'chat' }, dispatch({
}); type: CHATS_UPDATE_NOOP,
meta: { sound: 'chat' },
});
}
} }
dispatch({ type: STREAMING_CHAT_UPDATE, chat: chat, me: getState().get('me') }); dispatch({ type: STREAMING_CHAT_UPDATE, chat: chat, me: getState().get('me') });