aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/add_conversation/select_jid_fragment.vala
diff options
context:
space:
mode:
authorMiquel Lionel <lionel@les-miquelots.net>2023-09-17 13:14:43 +0200
committerMiquel Lionel <lionel@les-miquelots.net>2024-08-25 15:31:09 +0200
commit62cdea3a5e701c04f3a7fd9d6b5f48e28fef1f72 (patch)
treed6876d251ae148dbf80080823f51c142c0f9f8ad /main/src/ui/add_conversation/select_jid_fragment.vala
parent8be4f02723fc131d9275c1b70831f53ff4630a1a (diff)
downloaddino-62cdea3a5e701c04f3a7fd9d6b5f48e28fef1f72.tar.gz
dino-62cdea3a5e701c04f3a7fd9d6b5f48e28fef1f72.zip
Simplify talking to yourself (notes) on the UI
- clicking on the menu will multiple accounts will bring up a modified "start chat" windows
Diffstat (limited to 'main/src/ui/add_conversation/select_jid_fragment.vala')
-rw-r--r--main/src/ui/add_conversation/select_jid_fragment.vala6
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);