From d5d9c3794566b999bfd42398072c9f7e3177d1b9 Mon Sep 17 00:00:00 2001 From: Ivan Alejandro Date: Mon, 11 May 2015 18:04:29 -0300 Subject: [feat] adapt to new events api on common - Related: #6359 --- src/leap/mail/mail.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/leap/mail/mail.py') diff --git a/src/leap/mail/mail.py b/src/leap/mail/mail.py index 4fe08a6..1649d4a 100644 --- a/src/leap/mail/mail.py +++ b/src/leap/mail/mail.py @@ -27,8 +27,7 @@ import weakref from twisted.internet import defer from leap.common.check import leap_assert_type -from leap.common import events as leap_events -from leap.common.events.events_pb2 import IMAP_UNREAD_MAIL +from leap.common.events import emit, catalog from leap.common.mail import get_email_charset from leap.mail.adaptors.soledad import SoledadMailAdaptor @@ -654,7 +653,7 @@ class MessageCollection(object): :type unseen: int """ # TODO change name of the signal, independent from imap now. - leap_events.signal(IMAP_UNREAD_MAIL, str(unseen)) + emit(catalog.MAIL_UNREAD_MESSAGES, str(unseen)) def copy_msg(self, msg, new_mbox_uuid): """ -- cgit v1.2.3