Skip to content

Commit 9f10aca

Browse files
committed
fix: convert statusExpiresAt string to Date in presence client
1 parent fbb34a4 commit 9f10aca

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

apps/meteor/client/lib/presence.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,10 @@ const getPresence = ((): ((uid: UserPresence['_id']) => void) => {
7777

7878
users.forEach((user) => {
7979
if (!store.has(user._id)) {
80-
notify(user);
80+
notify({
81+
...user,
82+
...(user.statusExpiresAt && { statusExpiresAt: new Date(user.statusExpiresAt) }),
83+
});
8184
}
8285
currentUids.delete(user._id);
8386
});

0 commit comments

Comments
 (0)