X-Git-Url: http://git.maemo.org/git/?p=theonering;a=blobdiff_plain;f=src%2Fchannel%2Ftext.py;fp=src%2Fchannel%2Ftext.py;h=f4a95896ebb6690d30704a9620b51e99c5da61b4;hp=c3df7d2775b7efc19ebe4eb4d726415c5e5f0cc2;hb=1efc4f7ce81e252e1f956a4dc6864e6c3423be27;hpb=8a3c64d3bc33f8f00cd126e25e6e96643ac11c93 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, )