Exemple #1
0
        private void ReceiveMessage(ToxEventArgs.FriendMessageEventArgs e)
        {
            // Here we make a very benign assumption that message_id stay being uint32_t in toxcore.
            var receivedMessage = new ReceivedMessageViewModel(e.Message, DateTime.Now, e.MessageType, _friendViewModel);

            StoreMessage(receivedMessage);
        }
 private async Task ReceiveMessage(ToxEventArgs.FriendMessageEventArgs e)
 {
     // Here we make a very benign assumption that message_id stay being uint32_t in toxcore.
     var receivedMessage = new ReceivedMessageViewModel(e.Message, DateTime.Now, e.MessageType, _friendViewModel);
     await StoreMessage(receivedMessage);
     await RecentMessagesGlobalViewModel.Instace.AddMessage(receivedMessage);
 }