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); }