mirror of
https://github.com/hack-chat/main.git
synced 2024-03-22 13:20:33 +08:00
Bug fix
This commit is contained in:
parent
22772fa90c
commit
85b9ad08bb
|
@ -80,15 +80,14 @@ export async function run({
|
|||
|
||||
// Announce the kicked clients arrival in destChannel and that they were kicked
|
||||
// Before they arrive, so they don't see they got moved
|
||||
const moveAnnouncement = {
|
||||
...getUserDetails(socket),
|
||||
for (let i = 0; i < kicked.length; i += 1) {
|
||||
server.broadcast({
|
||||
...getUserDetails(kicked[i]),
|
||||
...{
|
||||
cmd: 'onlineAdd',
|
||||
channel: destChannel, // @todo Multichannel
|
||||
},
|
||||
};
|
||||
for (let i = 0; i < kicked.length; i += 1) {
|
||||
server.broadcast(moveAnnouncement, { channel: destChannel });
|
||||
}, { channel: destChannel });
|
||||
}
|
||||
|
||||
// Move all kicked clients to the new channel
|
||||
|
|
Loading…
Reference in New Issue
Block a user