예제 #1
0
 /// <summary>
 /// Go to the next unread message.
 /// </summary>
 private void GoToNextUnread(InboxConversation conversation)
 {
     if (conversation != null && conversation.UnreadCount > 0)
     {
         conversation.MarkRead();
     }
     FoldersTree.NextUnread(FolderOptions.NextUnread);
 }
예제 #2
0
 /// <summary>
 /// Mark a conversation as read if we previously has unread messages. This also triggers
 /// a server update and redraws the inbox list item to remove the unread count badge.
 /// </summary>
 /// <param name="conversation">Conversation to mark read</param>
 private static void MarkConversationAsRead(InboxConversation conversation)
 {
     if (conversation.UnreadCount > 0)
     {
         conversation.MarkRead();
     }
     else
     {
         conversation.MarkUnread();
     }
 }