feat(inbox): automatically mark inbox items read when reading or viewing conversation
This commit is contained in:
parent
dcccc67d3e
commit
0de9c40337
6 changed files with 145 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue