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>2018-08-31 11:37:22 +0300
committerJoas Schilling <coding@schilljs.com>2019-07-24 16:14:00 +0300
commit54692ebac3e55846ee91291f81e0d9192a06a138 (patch)
treea150c8e5916461f6f766c24c7c834f4f4d1041b0 /lib/Room.php
parente1e62a59b1025056baf658f0ebfadc123d72557f (diff)
Change read marker to work on the comment id isntead of datetime
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Room.php')
-rw-r--r--lib/Room.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Room.php b/lib/Room.php
index de597bfb6..33bef6c21 100644
--- a/lib/Room.php
+++ b/lib/Room.php
@@ -1112,10 +1112,10 @@ class Room {
return (int) ($row['num_participants'] ?? 0);
}
- public function markUsersAsMentioned(array $userIds, \DateTime $time): void {
+ public function markUsersAsMentioned(array $userIds, int $messageId): void {
$query = $this->db->getQueryBuilder();
$query->update('talk_participants')
- ->set('last_mention', $query->createNamedParameter($time, 'datetime'))
+ ->set('last_mention_message', $query->createNamedParameter($messageId, IQueryBuilder::PARAM_INT))
->where($query->expr()->eq('room_id', $query->createNamedParameter($this->getId(), IQueryBuilder::PARAM_INT)))
->andWhere($query->expr()->in('user_id', $query->createNamedParameter($userIds, IQueryBuilder::PARAM_STR_ARRAY)));
$query->execute();