[FIX] Ignore self typing event (#1950)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
parent
77256eb3c0
commit
255254c285
|
@ -82,11 +82,14 @@ export default class RoomSubscription {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (ev === 'typing') {
|
if (ev === 'typing') {
|
||||||
|
const { user } = reduxStore.getState().login;
|
||||||
const [username, typing] = ddpMessage.fields.args;
|
const [username, typing] = ddpMessage.fields.args;
|
||||||
if (typing) {
|
if (username !== user.username) {
|
||||||
reduxStore.dispatch(addUserTyping(username));
|
if (typing) {
|
||||||
} else {
|
reduxStore.dispatch(addUserTyping(username));
|
||||||
reduxStore.dispatch(removeUserTyping(username));
|
} else {
|
||||||
|
reduxStore.dispatch(removeUserTyping(username));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else if (ev === 'deleteMessage') {
|
} else if (ev === 'deleteMessage') {
|
||||||
InteractionManager.runAfterInteractions(async() => {
|
InteractionManager.runAfterInteractions(async() => {
|
||||||
|
|
Loading…
Reference in New Issue