diff options
author | wurstsalat <mailtrash@posteo.de> | 2023-04-16 17:33:59 +0300 |
---|---|---|
committer | wurstsalat <mailtrash@posteo.de> | 2023-04-16 17:33:59 +0300 |
commit | 6e3dec332d3ac7b73a69190d1f5b88c9e82823a2 (patch) | |
tree | 77e3b6e285c6a8eec1126c4c8569daa7960e2f9a | |
parent | 45219590f87036001bbc591a80ce8818fd0014d0 (diff) |
cfix: ChatBanner: Use jid_to_iri for QR code
-rw-r--r-- | gajim/gtk/chat_banner.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gajim/gtk/chat_banner.py b/gajim/gtk/chat_banner.py index a70f7283c..2b2294571 100644 --- a/gajim/gtk/chat_banner.py +++ b/gajim/gtk/chat_banner.py @@ -37,6 +37,7 @@ from gajim.common.i18n import _ from gajim.common.modules.contacts import BareContact from gajim.common.modules.contacts import GroupchatContact from gajim.common.modules.contacts import GroupchatParticipant +from gajim.common.util.text import jid_to_iri from gajim.gtk.builder import get_builder from gajim.gtk.groupchat_voice_requests_button import VoiceRequestsButton @@ -334,7 +335,7 @@ class ChatBanner(Gtk.Box, EventHelper): def _on_share_clicked(self, _button: Gtk.Button) -> None: # Generate QR code on demand (i.e. not when switching chats) assert self._contact is not None - text = f'xmpp:{self._contact.jid}' + text = jid_to_iri(str(self._contact.jid)) if self._contact.is_groupchat: text = f'{text}?join' self._ui.qr_code_image.set_from_pixbuf(generate_qr_code(text)) |