diff options
author | Joas Schilling <coding@schilljs.com> | 2022-03-02 16:20:47 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-03-08 14:11:06 +0300 |
commit | b78ce0709a8493d61746b6690b43f07b5f564d3b (patch) | |
tree | ad8aa89d29d82b44150889c59146671e5d24c439 /lib/Service | |
parent | dcc6291e0948140ff232b1b3c8b864ec6fec75e8 (diff) |
Emit a event so the HPB can send the update to the participantsbugfix/noid/combine-multiple-system-messages-updates
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Service')
-rw-r--r-- | lib/Service/ParticipantService.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Service/ParticipantService.php b/lib/Service/ParticipantService.php index 3e3cd8d74..044054bf2 100644 --- a/lib/Service/ParticipantService.php +++ b/lib/Service/ParticipantService.php @@ -26,10 +26,12 @@ namespace OCA\Talk\Service; use OCA\Circles\CirclesManager; use OCA\Circles\Model\Circle; use OCA\Circles\Model\Member; +use OCA\Talk\Chat\ChatManager; use OCA\Talk\Config; use OCA\Talk\Events\AddParticipantsEvent; use OCA\Talk\Events\AttendeesAddedEvent; use OCA\Talk\Events\AttendeesRemovedEvent; +use OCA\Talk\Events\ChatEvent; use OCA\Talk\Events\EndCallForEveryoneEvent; use OCA\Talk\Events\JoinRoomGuestEvent; use OCA\Talk\Events\JoinRoomUserEvent; @@ -445,6 +447,9 @@ class ParticipantService { $lastMessageCache->remove($room->getToken()); $unreadCountCache = $this->cacheFactory->createDistributed('talk/unreadcount'); $unreadCountCache->clear($room->getId() . '-'); + + $event = new ChatEvent($room, $message); + $this->dispatcher->dispatch(ChatManager::EVENT_AFTER_MULTIPLE_SYSTEM_MESSAGE_SEND, $event); } public function getHighestPermissionAttendee(Room $room): ?Attendee { |