def new_conversation(self, contacts_uid): """ @type contacts_uid: list """ #TODO: check if no conversation like this one already exists c = aMSNConversation(self._core, self, None, contacts_uid) self._convs.append(c)
def onInviteConversation(self, conversation): print "new conv" contacts_id = [c.id for c in conversation.participants] contacts = [ContactView.getContact(cid) for cid in contacts_id] #TODO: What if the contact_manager has not build a view for that contact? c = aMSNConversation(self._core, self, conversation, contacts) self._convs.append(c)
def on_invite_conversation(self, conversation): """ @type conversation: L{amsn2.core.conversation.aMSNConversation} """ print "new conv" contacts_uid = [c.id for c in conversation.participants] #TODO: What if the contact_manager has not build a view for that contact? c = aMSNConversation(self._core, self, conversation, contacts_uid) self._convs.append(c)
def newConversation(self, contacts_uid): """ contacts_uid is a list of contact uid """ #TODO: check if no conversation like this one already exists c = aMSNConversation(self._core, self, None, contacts_uid) self._convs.append(c)
def onInviteConversation(self, conversation): print "new conv" contacts_uid = [c.id for c in conversation.participants] #TODO: What if the contact_manager has not build a view for that contact? c = aMSNConversation(self._core, self, conversation, contacts_uid) self._convs.append(c)