From: Ed Page Date: Sat, 23 Jan 2010 20:12:45 +0000 (-0600) Subject: Modifying the way isRead is handled to reduce false positives X-Git-Url: http://git.maemo.org/git/?p=theonering;a=commitdiff_plain;h=cabd3fec6c1f3670028c2ebf70764a25504d7e9e Modifying the way isRead is handled to reduce false positives --- diff --git a/src/channel/text.py b/src/channel/text.py index 77584bd..bac40b9 100644 --- a/src/channel/text.py +++ b/src/channel/text.py @@ -132,6 +132,8 @@ class TextChannel(tp.ChannelTypeText): for newMessage in messages: formattedMessage = self._format_message(newMessage) self._report_new_message(formattedMessage) + for conv in newConversations: + conv.isRead = True def _filter_out_reported(self, conversations): return ( diff --git a/src/gvoice/conversations.py b/src/gvoice/conversations.py index 384fc4e..f29f5e6 100644 --- a/src/gvoice/conversations.py +++ b/src/gvoice/conversations.py @@ -145,7 +145,7 @@ class MergedConversations(object): return similarConversations def _update_previous_related_conversation(self, relatedConversation, newConversation): - for commonField in ("isRead", "isSpam", "isTrash", "isArchived"): + for commonField in ("isSpam", "isTrash", "isArchived"): newValue = getattr(newConversation, commonField) setattr(relatedConversation, commonField, newValue)