summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2024-03-13 13:56:28 +0100
committerJoas Schilling <coding@schilljs.com>2024-03-13 13:56:28 +0100
commitd94254ccfa000e546c1b9e4fad43cd86dbb979e0 (patch)
treebd4f206d5d18d751adf88fad71563fcf23911857 /lib
parent37f6f927e68f1fbfd8be40bed0e6aa89dbe22fef (diff)
fix(federation): Respect setReadMarker=1 on proxied ChatController::receiveMessage()
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Federation/Proxy/TalkV1/Controller/ChatController.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Federation/Proxy/TalkV1/Controller/ChatController.php b/lib/Federation/Proxy/TalkV1/Controller/ChatController.php
index 4aee7fabc..366c4bd55 100644
--- a/lib/Federation/Proxy/TalkV1/Controller/ChatController.php
+++ b/lib/Federation/Proxy/TalkV1/Controller/ChatController.php
@@ -172,6 +172,10 @@ class ChatController {
],
);
+ if ($lookIntoFuture && $setReadMarker) {
+ $this->participantService->updateUnreadInfoForProxyParticipant($participant, 0, false, false);
+ }
+
if ($proxy->getStatusCode() === Http::STATUS_NOT_MODIFIED) {
if ($lookIntoFuture && $this->proxyCacheMessages instanceof ICache) {
$cacheData = $this->proxyCacheMessages->get($cacheKey);