public void HandleUnreadMessage(SignalMessage message)
 {
     if (ApplicationView.GetForCurrentView().Id == App.MainViewId)
     {
         NotificationsUtils.Notify(message);
     }
 }
 private void CheckNotification(SignalConversation conversation)
 {
     if (ApplicationView.GetForCurrentView().Id == App.MainViewId)
     {
         if (conversation.UnreadCount == 0)
         {
             NotificationsUtils.Withdraw(conversation.ThreadId);
         }
     }
 }
Ejemplo n.º 3
0
 private void Handle_SignalMessageEvent(object sender, SignalMessageEventArgs e)
 {
     if (e.MessageType == Lib.Events.SignalPipeMessageType.NormalMessage)
     {
         NotificationsUtils.Notify(e.Message);
     }
     else if (e.MessageType == Lib.Events.SignalPipeMessageType.PipeEmptyMessage)
     {
         Logger.LogInformation("Background task has drained the pipe");
         ResetEvent.Set();
     }
 }