Daniel Brötzmann pushed to branch master at gajim / gajim

Commits:

1 changed file:

Changes:

  • gajim/gui_interface.py
    ... ... @@ -76,6 +76,7 @@
    76 76
     from gajim.common.events import FileHashError
    
    77 77
     from gajim.common.events import FileProgress
    
    78 78
     from gajim.common.events import FileError
    
    79
    +from gajim.common.events import MucAdded
    
    79 80
     from gajim.common.zeroconf import connection_zeroconf
    
    80 81
     from gajim.common.helpers import ask_for_status_message
    
    81 82
     from gajim.common.structs import OutgoingMessage
    
    ... ... @@ -599,7 +600,7 @@ def __compare_hashes(account: str, file_props: FileProp) -> None:
    599 600
                 session.end_session()
    
    600 601
     
    
    601 602
         def send_httpupload(self,
    
    602
    -                        chat_control: ControlType, 
    
    603
    +                        chat_control: ControlType,
    
    603 604
                             path: Optional[str] = None
    
    604 605
                             ) -> None:
    
    605 606
             if path is not None:
    
    ... ... @@ -711,11 +712,11 @@ def start_chat_from_jid(account: str,
    711 712
             app.app.activate_action('start-chat', GLib.Variant('s', str(jid)))
    
    712 713
     
    
    713 714
         @staticmethod
    
    714
    -    def _on_muc_added(event):
    
    715
    -        if app.window.chat_exists(event.account, event.jid):
    
    715
    +    def _on_muc_added(event: MucAdded) -> None:
    
    716
    +        if app.window.chat_exists(event.account, JID.from_string(event.jid)):
    
    716 717
                 return
    
    717 718
     
    
    718
    -        app.window.add_group_chat(event.account, event.jid)
    
    719
    +        app.window.add_group_chat(event.account, JID.from_string(event.jid))
    
    719 720
     
    
    720 721
         @staticmethod
    
    721 722
         def create_account(account: str,