Skip to content

Commit

Permalink
fix(federation): Respect setReadMarker=1 on proxied ChatController::r…
Browse files Browse the repository at this point in the history
…eceiveMessage()

Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Mar 13, 2024
1 parent 37f6f92 commit d94254c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Federation/Proxy/TalkV1/Controller/ChatController.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@ public function receiveMessages(
],
);

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);
Expand Down

0 comments on commit d94254c

Please sign in to comment.