- Timestamp:
- Dec 13, 2013 1:28:16 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/pjsua2/pjsip-apps/src/pygui/account.py
r4686 r4690 52 52 self.deleting = False 53 53 54 """ 55 def findBuddy2(self, uri): 56 # TODO: proper URI comparison 57 for bud in self.buddyList: 58 if bud.cfg.uri in uri or uri in bud.cfg.uri: 59 return bud 60 return None 61 """ 62 63 def findChat(self, uri_str, call_inst = None): 54 def findChat(self, uri_str): 64 55 uri = ch.ParseSipUri(uri_str) 65 56 if not uri: return None 66 57 67 58 for chat in self.chatList: 68 if chat.isUriParticipant(uri): 69 if call_inst and chat.isCallRegistered(call_inst): 70 return chat 71 elif not call_inst and chat.isPrivate(): 72 return chat 59 if chat.isUriParticipant(uri) and chat.isPrivate(): 60 return chat 73 61 return None 74 62
Note: See TracChangeset
for help on using the changeset viewer.