[FIX] DM rooms show typing status from last group room (#2878)
* [FIX] DM rooms show typing status from last group room * Undo changes * Check if current typing is from focused room before dispatching to redux Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
parent
dbd8c94e06
commit
450aca4d7c
|
@ -90,6 +90,10 @@ export default class RoomSubscription {
|
||||||
if (ev === 'typing') {
|
if (ev === 'typing') {
|
||||||
const { user } = reduxStore.getState().login;
|
const { user } = reduxStore.getState().login;
|
||||||
const { UI_Use_Real_Name } = reduxStore.getState().settings;
|
const { UI_Use_Real_Name } = reduxStore.getState().settings;
|
||||||
|
const { rooms } = reduxStore.getState().room;
|
||||||
|
if (rooms[0] !== _rid) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
const [name, typing] = ddpMessage.fields.args;
|
const [name, typing] = ddpMessage.fields.args;
|
||||||
const key = UI_Use_Real_Name ? 'name' : 'username';
|
const key = UI_Use_Real_Name ? 'name' : 'username';
|
||||||
if (name !== user[key]) {
|
if (name !== user[key]) {
|
||||||
|
|
Loading…
Reference in New Issue