Skip to content

Commit 738f65c

Browse files
authored
fix: Set connection status (#1800)
1 parent 220f8b1 commit 738f65c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/injected.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,11 @@ const start = (): void => {
6262
isAutoAwayEnabled,
6363
idleThreshold,
6464
setUserOnline: (online) => {
65-
Meteor.call('UserPresence:setDefaultStatus', online ? 'online' : 'away');
65+
if (!online) {
66+
Meteor.call('UserPresence:away');
67+
return;
68+
}
69+
Meteor.call('UserPresence:online');
6670
},
6771
});
6872
});

0 commit comments

Comments
 (0)