diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2017-10-19 15:16:52 +0300 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2017-10-20 04:49:07 +0300 |
commit | 943a85d86963bb6b540d4261027adf24742e6046 (patch) | |
tree | 28a6e58d1adcbe869bbe4878c1ff563723d8e831 /lib/Controller | |
parent | 0e29c7b39e936ca5b7d356750bdae2fe6b89bd4b (diff) |
Use the room ID instead of the token as the object ID of chat comments
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'lib/Controller')
-rw-r--r-- | lib/Controller/ChatController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Controller/ChatController.php b/lib/Controller/ChatController.php index caeac362f..b251b715a 100644 --- a/lib/Controller/ChatController.php +++ b/lib/Controller/ChatController.php @@ -116,7 +116,7 @@ class ChatController extends OCSController { $creationDateTime = new \DateTime('now', new \DateTimeZone('UTC')); - $this->chatManager->sendMessage($token, $actorType, $actorId, $message, $creationDateTime); + $this->chatManager->sendMessage(strval($room->getId()), $actorType, $actorId, $message, $creationDateTime); return new DataResponse([], Http::STATUS_CREATED); } @@ -172,7 +172,7 @@ class ChatController extends OCSController { $timeout = $maximumTimeout; } - $comments = $this->chatManager->receiveMessages($token, $timeout, $offset, $notOlderThan); + $comments = $this->chatManager->receiveMessages(strval($room->getId()), $timeout, $offset, $notOlderThan); $userManager = $this->userManager; |