diff options
Diffstat (limited to 'main/src/ui/add_conversation/select_jid_fragment.vala')
-rw-r--r-- | main/src/ui/add_conversation/select_jid_fragment.vala | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/main/src/ui/add_conversation/select_jid_fragment.vala b/main/src/ui/add_conversation/select_jid_fragment.vala index e0682e29..7a1dc747 100644 --- a/main/src/ui/add_conversation/select_jid_fragment.vala +++ b/main/src/ui/add_conversation/select_jid_fragment.vala @@ -28,11 +28,15 @@ public class SelectJidFragment : Gtk.Box { private ListBox list; private string[]? filter_values; - public SelectJidFragment(StreamInteractor stream_interactor, ListBox list, Gee.List<Account> accounts) { + public SelectJidFragment(StreamInteractor stream_interactor, ListBox list, Gee.List<Account> accounts, bool notes_mode = false) { this.stream_interactor = stream_interactor; this.list = list; this.accounts = accounts; + if (notes_mode) { + add_button.visible = false; + remove_button.visible = false; + } list.activate_on_single_click = false; list.vexpand = true; box.append(list); |