works with adopteunmec via https

This commit is contained in:
Romain Bignon 2014-10-06 17:37:52 +02:00
commit 1f95e7631f
2 changed files with 31 additions and 16 deletions

View file

@ -263,7 +263,10 @@ class AuMModule(Module, CapMessages, CapMessagesPost, CapDating, CapChat, CapCon
continue
slut = self._get_slut(thread['who']['id'])
if parse_dt(thread['date']) > slut['lastmsg'] or thread['status'] != slut['status']:
t = self.get_thread(thread['who']['id'], contacts, get_profiles=True)
try:
t = self.get_thread(thread['who']['id'], contacts, get_profiles=True)
except BrowserUnavailable:
continue
for m in t.iter_all_messages():
if m.flags & m.IS_UNREAD:
yield m