Skip to content

Commit 3978852

Browse files
committed
fix: emit userStatus was in wrong location preventing it from firing
1 parent 54998af commit 3978852

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,8 @@ class SocketServer extends EventEmitter{
143143
if (user_id) {
144144
if (!socket.config.user_id ) {
145145
socket.config.user_id = user_id
146-
147-
this.emit('userStatus', socket, {user_id, userStatus: 'on', organization_id});
148146
}
147+
this.emit('userStatus', socket, {user_id, userStatus: 'on', organization_id});
149148
}
150149

151150
//. check permission

0 commit comments

Comments
 (0)