Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitor Mattos <vitor@php.rio>2022-05-23 21:44:21 +0300
committerVitor Mattos <vitor@php.rio>2022-06-30 21:01:27 +0300
commite2165535a8acbd2cce337f9870f6c3315f3c4de6 (patch)
tree86d1bc963f8b50f29b4d576dd594a6b80b46caba
parent84bdaaf102d8ca4c2b16a954c717f0d93238a066 (diff)
Priorize to run job than send system message
Signed-off-by: Vitor Mattos <vitor@php.rio>
-rw-r--r--lib/Service/RoomService.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Service/RoomService.php b/lib/Service/RoomService.php
index e17365945..e619c3f9b 100644
--- a/lib/Service/RoomService.php
+++ b/lib/Service/RoomService.php
@@ -552,11 +552,11 @@ class RoomService {
$update->executeStatement();
$jobList = Server::get(IJobList::class);
if ($seconds > 0) {
- $this->messageExpireSystemMessage($room, $participant, $seconds, 'message_expire_enabled');
$jobList->add(ApplyMessageExpire::class, ['room_id' => $room->getId()]);
+ $this->messageExpireSystemMessage($room, $participant, $seconds, 'message_expire_enabled');
} else {
- $this->messageExpireSystemMessage($room, $participant, $seconds, 'message_expire_disabled');
$jobList->remove(ApplyMessageExpire::class, ['room_id' => $room->getId()]);
+ $this->messageExpireSystemMessage($room, $participant, $seconds, 'message_expire_disabled');
}
$this->dispatcher->dispatch(Room::EVENT_AFTER_SET_MESSAGE_EXPIRE, $event);