diff options
author | Joas Schilling <coding@schilljs.com> | 2018-08-31 11:37:22 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2019-07-24 16:14:00 +0300 |
commit | 54692ebac3e55846ee91291f81e0d9192a06a138 (patch) | |
tree | a150c8e5916461f6f766c24c7c834f4f4d1041b0 /lib/Room.php | |
parent | e1e62a59b1025056baf658f0ebfadc123d72557f (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.php | 4 |
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(); |