From 62cdea3a5e701c04f3a7fd9d6b5f48e28fef1f72 Mon Sep 17 00:00:00 2001 From: Miquel Lionel Date: Sun, 17 Sep 2023 13:14:43 +0200 Subject: Simplify talking to yourself (notes) on the UI - clicking on the menu will multiple accounts will bring up a modified "start chat" windows --- main/src/ui/add_conversation/select_jid_fragment.vala | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'main/src/ui/add_conversation/select_jid_fragment.vala') 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 accounts) { + public SelectJidFragment(StreamInteractor stream_interactor, ListBox list, Gee.List 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); -- cgit v1.2.3-70-g09d2