Daniel Brötzmann pushed to branch master at gajim / gajim
Commits: 203e63d4 by wurstsalat at 2022-01-08T00:01:00+01:00 GUI Interface: Typing
- - - - -
1 changed file:
- gajim/gui_interface.py
Changes:
===================================== gajim/gui_interface.py ===================================== @@ -76,6 +76,7 @@ from gajim.common.events import FileHashError from gajim.common.events import FileProgress from gajim.common.events import FileError +from gajim.common.events import MucAdded from gajim.common.zeroconf import connection_zeroconf from gajim.common.helpers import ask_for_status_message from gajim.common.structs import OutgoingMessage @@ -599,7 +600,7 @@ def __compare_hashes(account: str, file_props: FileProp) -> None: session.end_session()
def send_httpupload(self, - chat_control: ControlType, + chat_control: ControlType, path: Optional[str] = None ) -> None: if path is not None: @@ -711,11 +712,11 @@ def start_chat_from_jid(account: str, app.app.activate_action('start-chat', GLib.Variant('s', str(jid)))
@staticmethod - def _on_muc_added(event): - if app.window.chat_exists(event.account, event.jid): + def _on_muc_added(event: MucAdded) -> None: + if app.window.chat_exists(event.account, JID.from_string(event.jid)): return
- app.window.add_group_chat(event.account, event.jid) + app.window.add_group_chat(event.account, JID.from_string(event.jid))
@staticmethod def create_account(account: str,
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/203e63d4a2756126cd49922a49cbd9814...