Skip to content
Snippets Groups Projects
Commit 036a7176 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

GroupchatInvite: Only load contacts when showing the page

Fixes #10055
parent 549c3c92
No related branches found
No related tags found
No related merge requests found
......@@ -511,7 +511,7 @@ def _on_information(self, _action, _param):
self._show_page('muc-info')
def _on_invite(self, _action, _param):
self._invite_box.update()
self._invite_box.load_contacts()
self._show_page('invite')
def _on_invite_ready(self, _, invitable):
......
......@@ -54,8 +54,6 @@ def __init__(self, room_jid):
self._new_contact_row_visible = False
self._room_jid = room_jid
self.update()
self._ui.search_entry.connect('search-changed',
self._on_search_changed)
self._ui.search_entry.connect('next-match',
......@@ -254,7 +252,7 @@ def _sort_func(row1, row2, _user_data):
return locale.strcoll(name1.lower(), name2.lower())
def update(self):
def load_contacts(self):
self._ui.contacts_listbox.foreach(self._ui.contacts_listbox.remove)
self._ui.invitees_listbox.foreach(self._ui.invitees_listbox.remove)
self._accounts = app.get_enabled_accounts_with_labels()
......
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