This commit is contained in:
spaced4ndy
2026-05-15 14:28:58 +04:00
parent 6b78779af6
commit 87c88daecf
+1
View File
@@ -1244,6 +1244,7 @@ processChatCommand vr nm = \case
let isOwner = memberRole' membership == GROwner
canDelete = isOwner || not (memberCurrent membership)
unless canDelete $ throwChatError $ CEGroupUserRole gInfo GROwner
-- prevent operator from accidentally clearing the rejection record
when (relayOwnStatus gInfo == Just RSRejected) $
throwChatError $ CECommandError "cannot delete a rejected channel; run /_relay allow <groupId> first"
filesInfo <- withFastStore' $ \db -> getGroupFileInfo db user gInfo