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
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-03-31 20:02:50 +0300
committerJoas Schilling <coding@schilljs.com>2022-03-31 20:02:50 +0300
commite9c6de6a94635bd249fdaa407120e6db4b9da865 (patch)
treeb661576259feb8ab87b013a380d06c66aecc3119 /lib
parent959e5edfd3851779e6f8ca731799abc7e6ddd28b (diff)
Fix comparing the roomId
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Chat/ChatManager.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Chat/ChatManager.php b/lib/Chat/ChatManager.php
index 62522bcd6..af085e688 100644
--- a/lib/Chat/ChatManager.php
+++ b/lib/Chat/ChatManager.php
@@ -625,7 +625,7 @@ class ChatManager {
* Search for comments with a given content
*
* @param Room $chat
- * @param int[]$commentIds
+ * @param int[] $commentIds
* @return IComment[]
*/
public function getMessagesById(Room $chat, array $commentIds): array {
@@ -633,7 +633,7 @@ class ChatManager {
$comments = array_filter($comments, static function (IComment $comment) use ($chat) {
return $comment->getObjectType() === 'chat'
- && $comment->getObjectId() === $chat->getId();
+ && (int)$comment->getObjectId() === $chat->getId();
});
return $comments;