mirror of
https://github.com/plankanban/planka.git
synced 2025-07-23 07:09:44 +02:00
fix: Socket bug fixes and improvements
This commit is contained in:
parent
4e876922f8
commit
9f16881965
6 changed files with 53 additions and 32 deletions
|
@ -123,13 +123,13 @@ module.exports = {
|
|||
if (user.id === inputs.user.id && inputs.request && inputs.request.isSocket) {
|
||||
const tempRoom = uuid();
|
||||
|
||||
sails.sockets.addRoomMembersToRooms(`user:${user.id}`, tempRoom, () => {
|
||||
sails.sockets.addRoomMembersToRooms(`@user:${user.id}`, tempRoom, () => {
|
||||
sails.sockets.leave(inputs.request, tempRoom, () => {
|
||||
sails.sockets.leaveAll(tempRoom);
|
||||
});
|
||||
});
|
||||
} else {
|
||||
sails.sockets.leaveAll(`user:${user.id}`);
|
||||
sails.sockets.leaveAll(`@user:${user.id}`);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue