|
@ -52,9 +52,6 @@ |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
onDestroy(() => { |
|
|
onDestroy(() => { |
|
|
socket.emit("LeaveChanel", async (response) => { |
|
|
|
|
|
console.log(response.status); |
|
|
|
|
|
}); |
|
|
|
|
|
clearInterval(usersInterval) |
|
|
clearInterval(usersInterval) |
|
|
socket.disconnect(); |
|
|
socket.disconnect(); |
|
|
}); |
|
|
}); |
|
@ -290,8 +287,10 @@ |
|
|
const leaveChannel = async () => { |
|
|
const leaveChannel = async () => { |
|
|
await show_popup("Press \"Okay\" to leave this channel?", false); |
|
|
await show_popup("Press \"Okay\" to leave this channel?", false); |
|
|
if ($content == 'ok') { |
|
|
if ($content == 'ok') { |
|
|
socket.emit('leaveChannel'); |
|
|
socket.emit("LeaveChanel", async (response) => { |
|
|
} |
|
|
console.log(response.status); |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
function onSendMessage() { |
|
|
function onSendMessage() { |
|
|
dispatch("send-message", selectedUser); |
|
|
dispatch("send-message", selectedUser); |
|
|