mirror of https://github.com/Calamitous/iris.git
Remove automatic reply-to feature until we can make it work right
This commit is contained in:
parent
79bc357828
commit
13546edb82
8
iris.rb
8
iris.rb
|
@ -655,7 +655,7 @@ class Display
|
||||||
end
|
end
|
||||||
|
|
||||||
class Interface
|
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 = {
|
CMD_MAP = {
|
||||||
'?' => 'help',
|
'?' => 'help',
|
||||||
'c' => 'compose',
|
'c' => 'compose',
|
||||||
|
@ -745,7 +745,6 @@ class Interface
|
||||||
end
|
end
|
||||||
|
|
||||||
message = Corpus.unread_topics.first
|
message = Corpus.unread_topics.first
|
||||||
@reply_topic = message.hash
|
|
||||||
|
|
||||||
Display.say message.to_topic_display
|
Display.say message.to_topic_display
|
||||||
Display.say
|
Display.say
|
||||||
|
@ -753,9 +752,9 @@ class Interface
|
||||||
Corpus.mark_as_read([message.hash] + message.replies.map(&:hash))
|
Corpus.mark_as_read([message.hash] + message.replies.map(&:hash))
|
||||||
end
|
end
|
||||||
|
|
||||||
def reply(topic_id = @reply_topic)
|
def reply(topic_id)
|
||||||
unless 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
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -906,7 +905,6 @@ class Interface
|
||||||
# TODO: Paginate here
|
# TODO: Paginate here
|
||||||
if index >= 0 && index < Corpus.topics.length
|
if index >= 0 && index < Corpus.topics.length
|
||||||
msg = Corpus.topics[index]
|
msg = Corpus.topics[index]
|
||||||
@reply_topic = msg.hash
|
|
||||||
|
|
||||||
Display.say msg.to_topic_display
|
Display.say msg.to_topic_display
|
||||||
Display.say
|
Display.say
|
||||||
|
|
Loading…
Reference in New Issue