private void OnMessageAck(JsonMessageAck arg) { var channel = Channels.GetChannel(arg.ChannelId); if (channel is IMessageChannel messageChannel) { messageChannel.LastReadMessageId = arg.MessageId; } // TODO: Channel registration MessageAck?.Invoke(this, new MessageAck(arg, this)); }
internal MessageAck(JsonMessageAck jsonMessageAck, QuarrelClient context) : base(context) { ChannelId = jsonMessageAck.ChannelId; MessageId = jsonMessageAck.MessageId; }