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

hide some menuitems in private chat context menu. Fixes #7603

parent 6d04df29
No related branches found
No related tags found
No related merge requests found
......@@ -381,6 +381,11 @@ control=None, gc_contact=None, is_anonymous=True):
if not control:
items_to_hide.append(convert_to_gc_menuitem)
# Hide items when it's a pm
if gc_contact:
items_to_hide += [rename_menuitem, edit_groups_menuitem,
subscription_menuitem, remove_from_roster_menuitem]
for item in items_to_hide:
item.set_no_show_all(True)
item.hide()
......
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