You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-05 23:10:41 +03:00
Fix: Presence only comes online when UserActivity interrupted activity
This commit is contained in:
@@ -70,7 +70,7 @@ class Presence {
|
||||
}
|
||||
|
||||
_onAction(payload) {
|
||||
if (payload.action === 'user_activity_start') {
|
||||
if (payload.action === 'user_activity') {
|
||||
this.setState("online");
|
||||
this._unavailableTimer.restart();
|
||||
}
|
||||
|
||||
@@ -129,6 +129,7 @@ class UserActivity {
|
||||
this.lastScreenY = event.screenY;
|
||||
}
|
||||
|
||||
dis.dispatch({action: 'user_activity'});
|
||||
if (!this._activityTimeout.isRunning()) {
|
||||
this._activityTimeout.start();
|
||||
dis.dispatch({action: 'user_activity_start'});
|
||||
|
||||
Reference in New Issue
Block a user