* src/maemo/modest-msg-view-window.c:
authorJose Dapena Paz <jdapena@igalia.com>
Wed, 21 May 2008 15:39:12 +0000 (15:39 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Wed, 21 May 2008 15:39:12 +0000 (15:39 +0000)
* (msg_is_visible): consider also as non visible messages
  in send queue that we're sending (fixes NB#85745).

pmo-trunk-r4553

src/maemo/modest-msg-view-window.c

index a2144a3..3018a45 100644 (file)
@@ -1635,7 +1635,9 @@ static gboolean
 msg_is_visible (TnyHeader *header, gboolean check_outbox)
 {
        return (!(tny_header_get_flags(header) & TNY_HEADER_FLAG_DELETED)) &&
-               ( (!check_outbox) || (modest_tny_all_send_queues_get_msg_status (header) != MODEST_TNY_SEND_QUEUE_FAILED)) ;
+               ( (!check_outbox) || 
+                 ((modest_tny_all_send_queues_get_msg_status (header) != MODEST_TNY_SEND_QUEUE_FAILED) &&
+                  (modest_tny_all_send_queues_get_msg_status (header) != MODEST_TNY_SEND_QUEUE_SENDING))) ;
        
 }