From 66adeda5603aa5a1a29f027bfe6a8536c488ac97 Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Thu, 22 Jan 2015 14:02:28 -0400 Subject: Fix recent/unseen notifications --- src/leap/mail/imap/mailbox.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/leap/mail/imap/mailbox.py') diff --git a/src/leap/mail/imap/mailbox.py b/src/leap/mail/imap/mailbox.py index 045636e..c826e86 100644 --- a/src/leap/mail/imap/mailbox.py +++ b/src/leap/mail/imap/mailbox.py @@ -714,13 +714,10 @@ class IMAPMailbox(object): :param result: ignored """ - d = self._get_unseen_deferred() + d = defer.maybeDeferred(self.getUnseenCount) d.addCallback(self.__cb_signal_unread_to_ui) return result - def _get_unseen_deferred(self): - return defer.maybeDeferred(self.getUnseenCount) - def __cb_signal_unread_to_ui(self, unseen): """ Send the unread signal to UI. -- cgit v1.2.3