feat(inbox): automatically mark inbox items read when reading or viewing conversation

This commit is contained in:
tyuXX 2026-10-31 16:28:58 +03:00
parent dcccc67d3e
commit 0de9c40337
6 changed files with 145 additions and 4 deletions

View file

@ -740,6 +740,7 @@ public class ChatClientConnection : IDisposable
public Task JoinChannelAsync(string channelId)
{
_state.MarkChannelInboxItemsReadLocally(channelId);
var envelope = NetworkEnvelope.Create(MessageTypes.JoinChannel, new JoinChannelPacket { ChannelId = channelId });
return SendEnvelopeAsync(envelope);
}