def addHandle(self, doId, message): if doId == localAvatar.doId: return handle = self.handleDict.get(doId) if not handle: handle = TalkHandle(doId, message) self.handleDict[doId] = handle else: handle.addMessageInfo(message)
def addHandle(self, doId, message): if doId == localAvatar.doId: return handle = self.handleDict.get(doId) if not handle: handle = TalkHandle(doId, message) self.handleDict[doId] = handle else: handle.addMessageInfo(message)