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:
authorIvan Sein <ivan@nextcloud.com>2019-08-26 20:37:25 +0300
committerJoas Schilling <coding@schilljs.com>2019-08-27 12:21:32 +0300
commit6fa784d3d0e80fbbae45287406ef74040bd7b862 (patch)
tree70cb8b9d596d260226a92032c81287aaedca169a /lib/Controller
parentad5ffb8eaf4be4efa18fcb1f53d4d7fbf7c2f8b5 (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.php2
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());
}
}