Fix disabled join groupchat menu

When there are no bookmarks on the server the join groupchat menu
was disabled, preventing the user to open the join groupchat dialog
This commit is contained in:
Philipp Hörist 2018-12-10 22:24:52 +01:00
parent 6e30d3af64
commit 4e814dabcf
1 changed files with 2 additions and 4 deletions

View File

@ -714,10 +714,8 @@ def get_groupchat_menu(control_id, account, jid):
def get_bookmarks_menu(account, rebuild=False):
con = app.connections[account]
boomarks = con.get_module('Bookmarks').get_sorted_bookmarks(
short_name=True)
if not boomarks:
return None
boomarks = con.get_module('Bookmarks').get_sorted_bookmarks(short_name=True)
menu = Gio.Menu()
# Build Join Groupchat