Exemplo n.º 1
0
        protected async Task OnMouseOverMessageAsync(MessageViewModel message)
        {
            if (!message.IsRead && message.Author != Username)
            {
                await InstantMessager.MarkMessageAsReadAsync(message.Id, ChatId);

                message.IsRead = true;
            }
        }
Exemplo n.º 2
0
        public async Task OnMessageInViewportAsync(int boxIdx)
        {
            if (boxIdx == _messages.Count - 1)
            {
                await LoadMore();
            }

            if (!_messages[boxIdx].IsRead && _messages[boxIdx].Author != Username)
            {
                await InstantMessager.MarkMessageAsReadAsync(_messages[boxIdx].Id, ChatId);

                _messages[boxIdx].IsRead = true;
            }
        }