import logging
import util.coroutines as coroutines
+import util.misc as util_misc
_moduleLogger = logging.getLogger("gvoice.conversations")
conversations = list(self._backend.get_conversations())
conversations.sort()
for conversation in conversations:
- key = conversation.contactId, conversation.number
+ key = conversation.contactId, util_misc.strip_number(conversation.number)
try:
mergedConversations = self._conversations[key]
except KeyError:
mergedConversations.append_conversation(conversation)
isConversationUpdated = True
except RuntimeError, e:
- _moduleLogger.info("Skipping conversation for %r because '%s'" % (key, e))
+ if False:
+ _moduleLogger.info("Skipping conversation for %r because '%s'" % (key, e))
isConversationUpdated = False
if isConversationUpdated: