diff options
author | Joas Schilling <coding@schilljs.com> | 2020-10-26 14:48:58 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-10-30 12:38:50 +0300 |
commit | 3bacf9c650f2dd4d3489f0dfa8f67a8ad010ed98 (patch) | |
tree | e39eee837d3b4368d6ef06be55212c0842618f47 /lib/Flow | |
parent | ca16dcab45e95d3ebc93519e7a87d158da2f5ca4 (diff) |
Fix some more participant handling
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Flow')
-rw-r--r-- | lib/Flow/Operation.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Flow/Operation.php b/lib/Flow/Operation.php index a645ad7ed..af00807a3 100644 --- a/lib/Flow/Operation.php +++ b/lib/Flow/Operation.php @@ -138,7 +138,7 @@ class Operation implements IOperation { $room, $participant, 'bots', - $participant->getUser(), + $participant->getAttendee()->getActorId(), $this->prepareMention($mode, $participant) . $message, new \DateTime(), null, @@ -173,9 +173,9 @@ class Operation implements IOperation { case self::MESSAGE_MODES['ROOM_MENTION']: return '@all '; case self::MESSAGE_MODES['SELF_MENTION']: - $hasWhitespace = strpos($participant->getUser(), ' ') !== false; + $hasWhitespace = strpos($participant->getAttendee()->getActorId(), ' ') !== false; $enclosure = $hasWhitespace ? '"' : ''; - return '@' . $enclosure . $participant->getUser() . $enclosure . ' '; + return '@' . $enclosure . $participant->getAttendee()->getActorId() . $enclosure . ' '; case self::MESSAGE_MODES['NO_MENTION']: default: return ''; |