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


Commits:
a8720627 by Daniel Brötzmann at 2021-12-02T14:56:55+00:00
GroupchatRoster: Correctly get real jid for menu
- - - - -


1 changed file:

- gajim/gui_menu_builder.py


Changes:

=====================================
gajim/gui_menu_builder.py
=====================================
@@ -564,7 +564,9 @@ def build_workspaces_submenu(current_workspace_id: str, 
account: str,
 
 def get_groupchat_roster_menu(account, control_id, self_contact, contact):
     menu = Gtk.Menu()
-    real_jid = contact.real_jid.bare or ''
+    real_jid = ''
+    if contact.real_jid is not None:
+        real_jid = contact.real_jid.bare
 
     item = Gtk.MenuItem(label=_('Information'))
     action = f'win.contact-information-{control_id}::{contact.name}'



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/a8720627ce2c5a811c67ba7f8cf3630f607a4790

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/a8720627ce2c5a811c67ba7f8cf3630f607a4790
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
Commits@gajim.org
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to