set the Thread.title attribute
This commit is contained in:
parent
05e28f9b52
commit
3ff5b31f4a
1 changed files with 6 additions and 1 deletions
|
|
@ -97,6 +97,7 @@ class AuMBackend(BaseBackend, ICapMessages, ICapMessagesPost, ICapDating, ICapCh
|
|||
if not contact.get_id():
|
||||
continue
|
||||
thread = Thread(contact.get_id())
|
||||
thread.title = 'Discussion with %s' % contact.get_name()
|
||||
yield thread
|
||||
|
||||
def get_thread(self, id, profiles=None):
|
||||
|
|
@ -141,6 +142,9 @@ class AuMBackend(BaseBackend, ICapMessages, ICapMessagesPost, ICapDating, ICapCh
|
|||
else:
|
||||
flags |= Message.IS_ACCUSED
|
||||
|
||||
if not thread.title:
|
||||
thread.title = mail.title
|
||||
|
||||
msg = Message(thread=thread,
|
||||
id=mail.message_id,
|
||||
title=mail.title,
|
||||
|
|
@ -192,9 +196,10 @@ class AuMBackend(BaseBackend, ICapMessages, ICapMessagesPost, ICapDating, ICapCh
|
|||
profile = self.browser.get_profile(ids[new_baskets])
|
||||
|
||||
thread = Thread(profile.get_id())
|
||||
thread.title = 'Basket of %s' % profile.get_name()
|
||||
thread.root = Message(thread=thread,
|
||||
id=self.MAGIC_ID_BASKET,
|
||||
title='Basket of %s' % profile.get_name(),
|
||||
title=thread.title,
|
||||
sender=profile.get_name(),
|
||||
receiver=self.browser.get_my_name(),
|
||||
date=None, # now
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue