sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 1cfa015ac59dda1303cd77382ca7548b397c6952
parent 8335e911073a02f2aedb4790540f70d6df81fb58
Author: Dan Callaghan <djc@djc.id.au>
Date:   Sat, 31 Oct 2026 19:35:43 +1100

clean up dead conditional in PollManager#poll_from

The scenario this comment and conditional was originally trying to
address in commit 5688027 was solved by the introduction of
handle_updated_update. We can just drop it.

Fixes #170.

Diffstat:
M lib/sup/poll.rb | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/lib/sup/poll.rb b/lib/sup/poll.rb
@@ -219,12 +219,9 @@ EOS
               Index.sync_message m, true
             end
 
-            ## We need to add or unhide the message when it either did not exist
-            ## before at all or when it was updated. We do *not* add/unhide when
-            ## the same message was found at a different location
             if old_m
               UpdateManager.relay self, :updated, m
-            elsif !old_m or not old_m.locations.member? m.location
+            else
               UpdateManager.relay self, :added, m
             end
           when :delete