From 1efc4f7ce81e252e1f956a4dc6864e6c3423be27 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Fri, 25 Jun 2010 20:09:31 -0500 Subject: [PATCH] Fixing a bug on text channel creation / reporting --- src/channel/text.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/channel/text.py b/src/channel/text.py index c3df7d2..f4a9589 100644 --- a/src/channel/text.py +++ b/src/channel/text.py @@ -139,8 +139,8 @@ class TextChannel(tp.ChannelTypeText): newConversations = gvoice.conversations.filter_out_read(newConversations) newConversations = list(newConversations) postReadLen = len(newConversations) - if postReadLen < postReportedLen: - self._conn.log_to_user(__name__, "Dropped %s messages due to already being read" % (postReportedLen - postReadLen)) + if postReadLen < postSelfLen: + self._conn.log_to_user(__name__, "Dropped %s messages due to already being read" % (postSelfLen- postReadLen)) if not newConversations: _moduleLogger.debug( "New messages for %r have already been read externally" % (self._contactKey, ) -- 1.7.9.5