ability to post a message to a cached thread

This commit is contained in:
Roger Philibert 2014-05-10 10:07:14 +02:00 committed by Romain Bignon
commit c48c67875d

View file

@ -363,6 +363,10 @@ class Boobmsg(ReplApplication):
# It's an original message
thread_id = receiver
parent_id = None
try:
thread_id = self.threads[int(thread_id) - 1].id
except (IndexError,ValueError):
pass
thread = Thread(thread_id)
message = Message(thread,