From: Ed Page Date: Fri, 25 Jun 2010 00:00:30 +0000 (-0500) Subject: With manually tracking read/unread, I don't think I need this anymore X-Git-Url: https://vcs.maemo.org/git/?p=theonering;a=commitdiff_plain;h=a2713ae4bb578c7a681599235ac9270148e393c5 With manually tracking read/unread, I don't think I need this anymore --- diff --git a/src/channel/text.py b/src/channel/text.py index 862c1ef..c3df7d2 100644 --- a/src/channel/text.py +++ b/src/channel/text.py @@ -39,8 +39,6 @@ class TextChannel(tp.ChannelTypeText): self.__callback ) - self._filter_out_reported = gvoice.conversations.FilterOutReported() - # The only reason there should be anything in the conversation is if # its new, so report it all try: @@ -138,17 +136,6 @@ class TextChannel(tp.ChannelTypeText): ) return - newConversations = self._filter_out_reported(newConversations) - newConversations = list(newConversations) - postReportedLen = len(newConversations) - if postReportedLen < postSelfLen: - self._conn.log_to_user(__name__, "Dropped %s messages due to already being reported" % (postSelfLen - postReportedLen)) - if not newConversations: - _moduleLogger.debug( - "New messages for %r have already been reported" % (self._contactKey, ) - ) - return - newConversations = gvoice.conversations.filter_out_read(newConversations) newConversations = list(newConversations) postReadLen = len(newConversations)