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:
authorJoas Schilling <coding@schilljs.com>2020-10-30 16:03:37 +0300
committerJoas Schilling <coding@schilljs.com>2020-11-26 11:46:43 +0300
commit459858a69527311bf60ffa553d45ba2a7eeec032 (patch)
treea25ef253ccc64b9b8da3e7c7597a55c8495f3c4f /lib/Chat/ChatManager.php
parent89f3f351962c2183d1cfeadedd2b6916d7958bc3 (diff)
Introduce constants for the actor types
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Chat/ChatManager.php')
-rw-r--r--lib/Chat/ChatManager.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Chat/ChatManager.php b/lib/Chat/ChatManager.php
index 3a3d61591..6b43981db 100644
--- a/lib/Chat/ChatManager.php
+++ b/lib/Chat/ChatManager.php
@@ -28,6 +28,7 @@ use OC\Memcache\ArrayCache;
use OC\Memcache\NullCache;
use OCA\Talk\Events\ChatEvent;
use OCA\Talk\Events\ChatParticipantEvent;
+use OCA\Talk\Model\Attendee;
use OCA\Talk\Participant;
use OCA\Talk\Room;
use OCA\Talk\Service\ParticipantService;
@@ -144,7 +145,7 @@ class ChatManager {
* @return IComment
*/
public function addChangelogMessage(Room $chat, string $message): IComment {
- $comment = $this->commentsManager->create('guests', 'changelog', 'chat', (string) $chat->getId());
+ $comment = $this->commentsManager->create(Attendee::ACTOR_GUESTS, 'changelog', 'chat', (string) $chat->getId());
$comment->setMessage($message, self::MAX_CHAT_LENGTH);
$comment->setCreationDateTime($this->timeFactory->getDateTime());