correctly set the 'receivers' field

This commit is contained in:
Romain Bignon 2010-12-08 12:19:37 +01:00
commit c836e3c1ec

View file

@ -166,7 +166,6 @@ class Monboob(ReplApplication):
content = content.split(u'\n-- \n')[0] content = content.split(u'\n-- \n')[0]
parent_id = None parent_id = None
receivers = None
if reply_to is None: if reply_to is None:
# This is a new message # This is a new message
if '.' in to: if '.' in to:
@ -201,7 +200,7 @@ class Monboob(ReplApplication):
0, 0,
title=title, title=title,
sender=sender, sender=sender,
receivers=receivers, receivers=[to],
parent=Message(thread, parent_id) if parent_id else None, parent=Message(thread, parent_id) if parent_id else None,
content=content) content=content)
try: try: