From 13546edb82936074a2eef002f1fbfa4a8e29894b Mon Sep 17 00:00:00 2001 From: Eric Budd Date: Sun, 24 Oct 2021 14:36:56 -0500 Subject: [PATCH] Remove automatic reply-to feature until we can make it work right --- iris.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/iris.rb b/iris.rb index 7c5c18f..7c3ab2d 100755 --- a/iris.rb +++ b/iris.rb @@ -655,7 +655,7 @@ class Display end class Interface - ONE_SHOTS = %w{ compose delete edit freshen help info mark_all_read mark_read next quit reply reset_display topics unread } + ONE_SHOTS = %w{ compose delete edit freshen help info mark_all_read mark_read next quit reset_display topics unread } CMD_MAP = { '?' => 'help', 'c' => 'compose', @@ -745,7 +745,6 @@ class Interface end message = Corpus.unread_topics.first - @reply_topic = message.hash Display.say message.to_topic_display Display.say @@ -753,9 +752,9 @@ class Interface Corpus.mark_as_read([message.hash] + message.replies.map(&:hash)) end - def reply(topic_id = @reply_topic) + def reply(topic_id) unless topic_id - Display.say "I can't reply to nothing! Include a topic ID or view a topic to reply to." + Display.say "I can't reply to nothing! Include a topic ID to reply to." return end @@ -906,7 +905,6 @@ class Interface # TODO: Paginate here if index >= 0 && index < Corpus.topics.length msg = Corpus.topics[index] - @reply_topic = msg.hash Display.say msg.to_topic_display Display.say