add flags IS_THREADS and IS_DISCUSSION to Thread to know how to display messages

This commit is contained in:
Romain Bignon 2010-11-28 11:34:12 +01:00
commit 912d3496c9
2 changed files with 6 additions and 0 deletions

View file

@ -107,6 +107,7 @@ class AuMBackend(BaseBackend, ICapMessages, ICapMessagesPost, ICapDating, ICapCh
self.report_spam(contact.get_id(), contact.get_suppr_id())
continue
thread = Thread(contact.get_id())
thread.flags = Thread.IS_DISCUSSION
thread.title = 'Discussion with %s' % contact.get_name()
yield thread
@ -123,6 +124,7 @@ class AuMBackend(BaseBackend, ICapMessages, ICapMessagesPost, ICapDating, ICapCh
if not thread:
thread = Thread(id)
thread.flags = Thread.IS_DISCUSSION
full = False
else:
full = True