diff options
author | Ivan Sein <ivan@nextcloud.com> | 2019-08-26 20:37:25 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2019-08-27 12:21:32 +0300 |
commit | 6fa784d3d0e80fbbae45287406ef74040bd7b862 (patch) | |
tree | 70cb8b9d596d260226a92032c81287aaedca169a /lib/Controller | |
parent | ad5ffb8eaf4be4efa18fcb1f53d4d7fbf7c2f8b5 (diff) |
Only update read marker when receiving new messages.
Signed-off-by: Ivan Sein <ivan@nextcloud.com>
Diffstat (limited to 'lib/Controller')
-rw-r--r-- | lib/Controller/ChatController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Controller/ChatController.php b/lib/Controller/ChatController.php index 293b5c9a0..cf8ebeca4 100644 --- a/lib/Controller/ChatController.php +++ b/lib/Controller/ChatController.php @@ -330,7 +330,7 @@ class ChatController extends AEnvironmentAwareController { $newLastKnown = end($comments); if ($newLastKnown instanceof IComment) { $response->addHeader('X-Chat-Last-Given', $newLastKnown->getId()); - if ($setReadMarker === 1) { + if ($setReadMarker === 1 && $lookIntoFuture) { $this->participant->setLastReadMessage((int) $newLastKnown->getId()); } } |