Commit ad7b7246 authored by mathieui's avatar mathieui
Browse files

Fix #3179 (/join completion broken)

parent d36ecbd7
......@@ -97,12 +97,13 @@ class CompletionCore:
relevant_rooms = []
bookmarks = {str(elem.jid): False for elem in self.core.bookmarks}
for tab in self.core.get_tabs(tabs.MucTab):
name =
if name in bookmarks and not tab.joined:
bookmarks[name] = True
relevant_rooms.extend(sorted(room[0] for room in bookmarks.items() if room[1]))
bookmarks = [str(elem.jid) for elem in self.core.bookmarks]
to_suggest = []
for bookmark in bookmarks:
tab = self.core.get_tab_by_name(bookmark, tabs.MucTab)
if not tab or (tab and not tab.joined):
if the_input.last_completion:
return Completion(the_input.new_completion, [], 1, quotify=True)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment