Skip to content

Commit

Permalink
fix: client ignoring offline presence updates (#31833)
Browse files Browse the repository at this point in the history
  • Loading branch information
sampaiodiego committed Feb 28, 2024
1 parent 5abac60 commit 36a31fa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .changeset/young-doors-bathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@rocket.chat/meteor': patch
'@rocket.chat/ddp-streamer': 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 });
});
2 changes: 1 addition & 1 deletion ee/apps/ddp-streamer/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@rocket.chat/ddp-streamer",
"private": true,
"version": "0.2.5",
"version": "0.2.5-next.1",
"description": "Rocket.Chat DDP-Streamer service",
"scripts": {
"build": "tsc -p tsconfig.json",
Expand Down

0 comments on commit 36a31fa

Please sign in to comment.