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,11 +160,14 @@ export function updateChatsQueue(chat) {
// const flashWindow = getSettings(getState()).getIn(['chats', 'flash']); // const flashWindow = getSettings(getState()).getIn(['chats', 'flash']);
if (playSound) { if (playSound) {
if (chat.last_message &&
chat.last_message.account_id !== getState().get('me')) {
dispatch({ dispatch({
type: CHATS_UPDATE_NOOP, type: CHATS_UPDATE_NOOP,
meta: { sound: 'chat' }, 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') });
}; };