Unverified Commit 450aca4d authored by Gung Wah's avatar Gung Wah Committed by GitHub
Browse files

[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: default avatarDiego Mello <diegolmello@gmail.com>
parent dbd8c94e
......@@ -90,6 +90,10 @@ export default class RoomSubscription {
if (ev === 'typing') {
const { user } = reduxStore.getState().login;
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 key = UI_Use_Real_Name ? 'name' : 'username';
if (name !== user[key]) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment