From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by bl2.djc.id.au (Postfix, from userid 1000) id E2C2B2C728D; Sat, 31 Oct 2026 20:01:12 +1100 (AEDT) Date: Sat, 31 Oct 2026 20:01:16 +1100 To: sup-commits@supmua.dev Subject: [sup.git] 04/04: clean up dead conditional in PollManager#poll_from MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Reply-To: Dan Callaghan In-Reply-To: <179343727252.62525.6154116323776963401@bl2.djc.id.au> References: <179343727252.62525.6154116323776963401@bl2.djc.id.au> Thread-Index: AQAAEjRWarHkiHxBQMWzVJUEI8076g== X-Git-Host: bl2.djc.id.au X-Git-Repo: sup.git X-Git-Refname: refs/heads/develop X-Git-Reftype: branch X-Git-Rev: 1cfa015ac59dda1303cd77382ca7548b397c6952 X-Git-NotificationType: diff X-Git-Multimail-Version: 1.7.dev Auto-Submitted: auto-generated Message-Id: <20261031090112.E2C2B2C728D@bl2.djc.id.au> From: Dan Callaghan List-Id: New commit on branch develop: https://supmua.dev/git/sup/commit/1cfa015ac59dda1303cd77382ca7548b397c6952.html commit 1cfa015ac59dda1303cd77382ca7548b397c6952 Author: Dan Callaghan AuthorDate: Sat Oct 31 19:35:43 2026 +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. --- lib/sup/poll.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/sup/poll.rb b/lib/sup/poll.rb index a07b2011..f4a45d48 100644 --- 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