Skip to content

Commit

Permalink
fix(federation): correctly matching in delete message
Browse files Browse the repository at this point in the history
Signed-off-by: Sanskar Soni <[email protected]>
  • Loading branch information
sanskar-soni-9 committed Sep 8, 2024
1 parent 6ed2776 commit 22265c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Chat/Parser/SystemMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,8 @@ protected function parseDeletedMessage(Message $chatMessage): void {
} elseif (!$participant->isGuest()) {
$currentUserIsActor = $parsedParameters['actor']['type'] === 'user' &&
$participant->getAttendee()->getActorType() === Attendee::ACTOR_USERS &&
$participant->getAttendee()->getActorId() === $parsedParameters['actor']['id'];
$participant->getAttendee()->getActorId() === $parsedParameters['actor']['id'] &&
empty($parsedParameters['actor']['server']);
} else {
$currentUserIsActor = $parsedParameters['actor']['type'] === 'guest' &&
$participant->getAttendee()->getActorType() === 'guest' &&
Expand Down

0 comments on commit 22265c5

Please sign in to comment.