-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tweak deleteMessages(), add Collection::last() (#736)
* Update message deleting - Add reason headers to $message->delete - Update $channel->deleteMessages by looping through messages and check if they aren't older then 14 days, if they are, remove them from the bulk_delete batch and remove them individually. * remove delete single message audit log, and tweak * phpdoc * fix deleting non cached single message by id * make individual message delete last queue priority * workaround for single non old in bulk message * ugly workaround, remove elseif after return * overhaul deleteMessages * add collection::last() * run php-cs-fixer Co-authored-by: SQKo <[email protected]>
- Loading branch information
Showing
5 changed files
with
43 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters