Fix chat audio filtering bug

better-alerts
Curtis ROck 2020-09-05 19:36:28 -05:00
rodzic ca9be1ed05
commit e157754116
1 zmienionych plików z 7 dodań i 4 usunięć

Wyświetl plik

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