Skip to content

Commit

Permalink
Message fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
StamTsag committed Mar 1, 2024
1 parent a092af9 commit 17544dc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/events/account/deleteChannelMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ async function deleteChannelMessage({
});

// Must be the message author / room owner
if (account.profileId != targetMessage.ownerId) {
if (
account.profileId != targetMessage.ownerId &&
account.profileId != server.ownerId
) {
return generateError('NOT_OWNER');
}

Expand Down

0 comments on commit 17544dc

Please sign in to comment.