Skip to content
Snippets Groups Projects
Commit bb4459ca authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

show only rooms where user can be invited to in invite to submenu. Fixes #7212

parent 7c5fe335
No related branches found
No related tags found
No related merge requests found
......@@ -125,6 +125,8 @@ def build_invite_submenu(invite_menuitem, list_, ignore_rooms=[]):
for gc_control in gajim.interface.msg_win_mgr.get_controls(
message_control.TYPE_GC) + minimized_controls:
acct = gc_control.account
if acct not in connected_accounts:
continue
room_jid = gc_control.room_jid
if room_jid in ignore_rooms:
continue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment