private async void OnMessageSeen(SeenNotification notification) { var changed = await messageRepository.UpdateMessageStatusAsync(notification.MessageToken, MessageStatus.Seen); await messagingService.MessageSeenStatusAcknowledge(new MessageSeenStatusAcknowledgeRequest { Messages = new List<Guid> { notification.EventId }}); if (changed) { MessageStatusChanged(this, new MessageStatusEventArgs { MessageToken = notification.MessageToken, Status = MessageStatus.Seen }); } }
private static async void MessagingServiceOnSeenNotification(SeenNotification notification) { Out.WriteLine(" opponent saw your message"); await messagingService.MessageSeenStatusAcknowledge( new MessageSeenStatusAcknowledgeRequest { Messages = new List<Guid> { notification.EventId } }); }