X-Git-Url: http://git.maemo.org/git/?p=theonering;a=blobdiff_plain;f=src%2Fgvoice%2Fconversations.py;fp=src%2Fgvoice%2Fconversations.py;h=7fbe1ca637146aed4ddd3216d825b76761b00463;hp=e5d71fe2d5e0a8ff3b1011fe42e5b20531d0ee98;hb=b9ad2ac3c7c44c94b107932c533edcc08e6be95b;hpb=dfe2766d6f331f8bc229d5b04963f80277d96458 diff --git a/src/gvoice/conversations.py b/src/gvoice/conversations.py index e5d71fe..7fbe1ca 100644 --- a/src/gvoice/conversations.py +++ b/src/gvoice/conversations.py @@ -115,6 +115,11 @@ class MergedConversations(object): self._remove_repeats(similarConversation, newConversation) similarExist = True if similarExist: + # Hack to reduce a race window with GV marking messages as read + # because it thinks we replied when really we replied to the + # previous message. Clients of this code are expected to handle + # this gracefully. Other race conditions may exist but clients are + # responsible for them if newConversation.messages: newConversation.isRead = False else: