Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hörist <philipp@hoerist.com>2023-10-29 13:06:35 +0300
committerPhilipp Hörist <philipp@hoerist.com>2023-10-29 13:07:53 +0300
commit079f4a629abc000936dd22fa0d6c030696b6dcde (patch)
tree45b57765b6684d46bbd8cbf51b2451ad6022a662
parent74be6b5e2c70599692b851e687b54f7b36f1c9c0 (diff)
imprv: StartChat: Better discover MUC services
-rw-r--r--gajim/gtk/start_chat.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/gajim/gtk/start_chat.py b/gajim/gtk/start_chat.py
index ff97f99f3..d115b31c7 100644
--- a/gajim/gtk/start_chat.py
+++ b/gajim/gtk/start_chat.py
@@ -416,7 +416,10 @@ class StartChatDialog(Gtk.ApplicationWindow):
self._show_error_page(_('This address is not reachable.'))
return
- if result.is_muc:
+ if result.is_muc and not result.jid.is_domain:
+ # This is mostly a fix for the MUC protocol, there is no
+ # way to differentiate between a MUC service and room.
+ # Except the MUC XEP defines rooms should have a localpart.
row.update_chat_type(groupchat=True)
else:
row.update_chat_type()