add flags IS_THREADS and IS_DISCUSSION to Thread to know how to display messages
This commit is contained in:
parent
fb5e8cfbaa
commit
912d3496c9
2 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue