From fa8d90548405dc99ef1aa198f45fb8c04df6979c Mon Sep 17 00:00:00 2001 From: samunohito <46447427+samunohito@users.noreply.github.com> Date: Tue, 11 Jun 2024 21:51:59 +0900 Subject: [PATCH] =?UTF-8?q?=E6=9D=A1=E4=BB=B6=E3=81=8C=E9=80=86=E3=81=A0?= =?UTF-8?q?=E3=81=A3=E3=81=9F=E3=81=AE=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../backend/src/server/api/endpoints/channels/mute/delete.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/server/api/endpoints/channels/mute/delete.ts b/packages/backend/src/server/api/endpoints/channels/mute/delete.ts index 10d8ac882c..79abeebe99 100644 --- a/packages/backend/src/server/api/endpoints/channels/mute/delete.ts +++ b/packages/backend/src/server/api/endpoints/channels/mute/delete.ts @@ -55,12 +55,12 @@ export default class extends Endpoint { // eslint- throw new ApiError(meta.errors.noSuchChannel); } - // Check if already muting + // Check muting const exist = await this.channelMutingService.isMuted({ requestUserId: me.id, targetChannelId: targetChannel.id, }); - if (exist) { + if (!exist) { throw new ApiError(meta.errors.notMuting); }