Philipp Hörist pushed to branch master at gajim / gajim

Commits:

1 changed file:

Changes:

  • gajim/common/app.py
    ... ... @@ -483,6 +483,11 @@ def get_jid_from_account(account_name):
    483 483
         jid = name + '@' + hostname
    
    484 484
         return jid
    
    485 485
     
    
    486
    +def get_account_from_jid(jid):
    
    487
    +    for account in app.config.get_per('accounts'):
    
    488
    +        if jid == get_jid_from_account(account):
    
    489
    +            return jid
    
    490
    +
    
    486 491
     def get_our_jids():
    
    487 492
         """
    
    488 493
         Returns a list of the jids we use in our accounts