Fix chat audio filtering bug
This commit is contained in:
parent
ca9be1ed05
commit
e157754116
1 changed files with 7 additions and 4 deletions
|
@ -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') });
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue