-
Notifications
You must be signed in to change notification settings - Fork 334
WPB-24076: Add meeting cleaner job in background-worker
#5207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
8046290
9e78888
9cbea44
cf184f9
7a20b02
4a7e23c
e96975a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Add meeting cleaner job in `background-worker`. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,6 +29,7 @@ module Wire.ConversationSubsystem.Action | |
| updateLocalConversationLeave, | ||
| updateLocalConversationMemberUpdate, | ||
| updateLocalConversationDelete, | ||
| updateLocalConversationDeleteUnchecked, | ||
| updateLocalConversationRename, | ||
| updateLocalConversationMessageTimerUpdate, | ||
| updateLocalConversationReceiptModeUpdate, | ||
|
|
@@ -1088,6 +1089,26 @@ updateLocalConversationDelete :: | |
| updateLocalConversationDelete lcnvId uid connId = | ||
| updateLocalConversation @'ConversationDeleteTag lcnvId uid connId () | ||
|
|
||
| updateLocalConversationDeleteUnchecked :: | ||
| ( Member (ErrorS 'InvalidOperation) r, | ||
| Member (ErrorS 'ConvNotFound) r, | ||
| Member CodeStore r, | ||
| Member E.ConversationStore r, | ||
| Member (ErrorS 'NotATeamMember) r, | ||
| Member ProposalStore r | ||
| ) => | ||
| Local ConvId -> | ||
| Sem r () | ||
| updateLocalConversationDeleteUnchecked lcnv = do | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see, this is a version of
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, because I don't have any since it is triggered by |
||
| let tag = sing @'ConversationDeleteTag | ||
| conv <- getConversationWithError lcnv | ||
| -- check that the action does not bypass the underlying protocol | ||
| unless (protocolValidAction conv.protocol tag ()) $ | ||
| throwS @'InvalidOperation | ||
| -- perform all authorisation checks and, if successful, then update itself | ||
| let lconv = qualifyAs lcnv conv | ||
| void $ performAction @'ConversationDeleteTag lconv (error "not used") Nothing () | ||
|
|
||
| updateLocalConversationRename :: | ||
| ( Member (Error FederationError) r, | ||
| Member (ErrorS ('ActionDenied (ConversationActionPermission 'ConversationRenameTag))) r, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting finding 👍