Philipp Hörist pushed to branch master at gajim / gajim
Commits:
8cd29729 by Philipp Hörist at 2022-10-25T22:37:55+02:00
imprv: StartChat: Recognize input of xmpp uris
- - - - -
1 changed file:
- gajim/gtk/start_chat.py
Changes:
=====================================
gajim/gtk/start_chat.py
=====================================
@@ -549,6 +549,12 @@ def _on_search_changed(self, search_entry:
Gtk.SearchEntry) -> None:
return
search_text = search_entry.get_text()
+ if search_text.startswith('xmpp:'):
+ search_text = search_text.removeprefix('xmpp:')
+ search_text = search_text.removesuffix('?join')
+ search_entry.set_text(search_text)
+ return
+
if '@' in search_text:
try:
validate_jid(search_text)
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/8cd2972934d8af3cd65061cddf0012b16d03197f
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/8cd2972934d8af3cd65061cddf0012b16d03197f
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits