Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Need to be combined with setLastMessage and delayed
Currently there are 142 queries when adding a group with 70 users
instead of 1 query updating both values at the end.

Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Feb 25, 2022
commit 8c12796b0d276bce3c7fbddc1416dc803925094b
1 change: 1 addition & 0 deletions lib/Room.php
Original file line number Diff line number Diff line change
Expand Up @@ -768,6 +768,7 @@ public function setPassword(string $password): bool {
* @return bool
*/
public function setLastActivity(\DateTime $now): bool {
// FIXME combine with setLastMessage and delay in case of multiple system messages
$update = $this->db->getQueryBuilder();
$update->update('talk_rooms')
->set('last_activity', $update->createNamedParameter($now, 'datetime'))
Expand Down