Ignore:
Timestamp:
Dec 13, 2013 1:28:16 AM (11 years ago)
Author:
nanang
Message:

Re #1708: Cleanup few chat stuffs in Python GUI.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/pjsua2/pjsip-apps/src/pygui/account.py

    r4686 r4690  
    5252                self.deleting = False 
    5353 
    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): 
    6455                uri = ch.ParseSipUri(uri_str) 
    6556                if not uri: return None 
    6657                         
    6758                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 
    7361                return None 
    7462         
Note: See TracChangeset for help on using the changeset viewer.