mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-05-19 05:16:12 +00:00
wip
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user