From 20d28b7a0ee973a4fb4ef9880b8384558a95904b Mon Sep 17 00:00:00 2001 From: max-schlenz Date: Fri, 13 Oct 2023 14:07:14 +0200 Subject: [PATCH] npm run format --- nestjs/conf/src/chat/gateway/chat/chat.gateway.ts | 2 +- vue/conf/src/components/channels/ChannelManager.vue | 2 -- vue/conf/src/components/channels/InvitePrivateChannelModal.vue | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/nestjs/conf/src/chat/gateway/chat/chat.gateway.ts b/nestjs/conf/src/chat/gateway/chat/chat.gateway.ts index 9d38a33..52d7464 100644 --- a/nestjs/conf/src/chat/gateway/chat/chat.gateway.ts +++ b/nestjs/conf/src/chat/gateway/chat/chat.gateway.ts @@ -919,7 +919,7 @@ export class ChatGateway .to(inviteeOnline.socketId) .emit('NewChannelInvitationBell', inviteeUsername); } - + const ChannelMembers = await this.channelService.getMembers(channelId); for (const member of ChannelMembers) { const memberOnline: ConnectedUser = diff --git a/vue/conf/src/components/channels/ChannelManager.vue b/vue/conf/src/components/channels/ChannelManager.vue index 71e2c28..6b32b3b 100644 --- a/vue/conf/src/components/channels/ChannelManager.vue +++ b/vue/conf/src/components/channels/ChannelManager.vue @@ -257,7 +257,6 @@ const setUserSignedListener = async () => { socket.value.on( 'ChannelInvitationAcceptedManager', (channelName: string, inviteeName: string) => { - setMembers().then(() => { setCurrentUserRole() }) @@ -293,7 +292,6 @@ const setUserSignedListener = async () => { ) socket.value.on('memberBanned', (bannedUserName: string, banChannelId: number) => { - if (banChannelId === channelId) { if (bannedUserName === username.value) { notificationStore.showNotification('You got banned from Channel', true) diff --git a/vue/conf/src/components/channels/InvitePrivateChannelModal.vue b/vue/conf/src/components/channels/InvitePrivateChannelModal.vue index 11e865e..bf9cb87 100644 --- a/vue/conf/src/components/channels/InvitePrivateChannelModal.vue +++ b/vue/conf/src/components/channels/InvitePrivateChannelModal.vue @@ -253,7 +253,6 @@ watch(inputName, (newValue) => { }) const goToProfile = (userId: number | undefined) => { - if (userId === undefined) { return }