Skip to content

Commit

Permalink
fix: client ignoring offline presence updates
Browse files Browse the repository at this point in the history
  • Loading branch information
sampaiodiego committed Feb 26, 2024
1 parent cd5cbe2 commit 4320063
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/young-doors-bathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rocket.chat/meteor': patch
---

Fix web UI not showing users presence updating to offline
3 changes: 0 additions & 3 deletions apps/meteor/app/notifications/client/lib/Presence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,5 @@ type args = [username: string, statusChanged?: UserStatus, statusText?: string];
export const STATUS_MAP = [UserStatus.OFFLINE, UserStatus.ONLINE, UserStatus.AWAY, UserStatus.BUSY, UserStatus.DISABLED];

Meteor.StreamerCentral.on('stream-user-presence', (uid: string, [username, statusChanged, statusText]: args) => {
if (!statusChanged) {
return;
}
Presence.notify({ _id: uid, username, status: STATUS_MAP[statusChanged as any], statusText });
});

0 comments on commit 4320063

Please sign in to comment.