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