show only rooms where user can be invited to in invite to submenu. Fixes #7212
This commit is contained in:
parent
7c5fe335bb
commit
bb4459ca2b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue