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:
parent
6e30d3af64
commit
4e814dabcf
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue