[geary/gnumdk/stable: 1/2] testing




commit b6961136dc1e5f91f97d70a9ad46076fff419f51
Author: Cédric Bellegarde <cedric bellegarde adishatz org>
Date:   Wed Oct 19 15:55:22 2022 +0200

    testing

 .../conversation-viewer/conversation-list-box.vala | 35 ++--------------------
 1 file changed, 2 insertions(+), 33 deletions(-)
---
diff --git a/src/client/conversation-viewer/conversation-list-box.vala 
b/src/client/conversation-viewer/conversation-list-box.vala
index 6688e2718..20c860ec9 100644
--- a/src/client/conversation-viewer/conversation-list-box.vala
+++ b/src/client/conversation-viewer/conversation-list-box.vala
@@ -1244,9 +1244,6 @@ public class ConversationListBox : Gtk.ListBox, Geary.BaseInterface {
     private void check_mark_read() {
         Gee.List<Geary.EmailIdentifier> email_ids =
             new Gee.LinkedList<Geary.EmailIdentifier>();
-        Gtk.Adjustment adj = get_adjustment();
-        int top_bound = (int) adj.value;
-        int bottom_bound = top_bound + (int) adj.page_size;
 
         this.foreach((child) => {
             // Don't bother with not-yet-loaded emails since the
@@ -1254,36 +1251,8 @@ public class ConversationListBox : Gtk.ListBox, Geary.BaseInterface {
             // of emails further down the conversation.
             EmailRow? row = child as EmailRow;
             ConversationEmail? view = (row != null) ? row.view : null;
-            Geary.Email? email = (view != null) ? view.email : null;
-            if (row != null &&
-                row.is_expanded &&
-                view.message_body_state == COMPLETED &&
-                !view.is_manually_read &&
-                email.is_unread().is_certain()) {
-                ConversationMessage conversation_message = view.primary_message;
-                 int body_top = 0;
-                 int body_left = 0;
-                 conversation_message.web_view_translate_coordinates(
-                     this,
-                     0, 0,
-                     out body_left, out body_top
-                 );
-
-                 int body_height = conversation_message.web_view_get_allocated_height();
-                 int body_bottom = body_top + body_height;
-
-                 // Only mark the email as read if it's actually visible
-                 if (body_height > 0 &&
-                     body_bottom > top_bound &&
-                     body_top + MARK_READ_PADDING < bottom_bound) {
-                     email_ids.add(view.email.id);
-
-                     // Since it can take some time for the new flags
-                     // to round-trip back to our signal handlers,
-                     // mark as manually read here
-                     view.is_manually_read = true;
-                 }
-             }
+            if (row != null)
+                email_ids.add(row.view.email.id);
         });
 
         if (email_ids.size > 0) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]