From 5ee322cbd987d36497522b82b876659e1d19da43 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Tue, 24 Dec 2024 16:02:13 +0100 Subject: Contact details dialog: Add encryption tab --- main/src/ui/contact_details/permissions_provider.vala | 5 +++++ main/src/ui/contact_details/settings_provider.vala | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'main/src/ui/contact_details') diff --git a/main/src/ui/contact_details/permissions_provider.vala b/main/src/ui/contact_details/permissions_provider.vala index c7ea4a1c..a0ca4d13 100644 --- a/main/src/ui/contact_details/permissions_provider.vala +++ b/main/src/ui/contact_details/permissions_provider.vala @@ -6,6 +6,7 @@ namespace Dino.Ui.ContactDetails { public class PermissionsProvider : Plugins.ContactDetailsProvider, Object { public string id { get { return "permissions"; } } + public string tab { get { return "about"; } } private StreamInteractor stream_interactor; @@ -25,6 +26,10 @@ public class PermissionsProvider : Plugins.ContactDetailsProvider, Object { contact_details.add("Permissions", _("Request permission to send messages"), "", voice_request); } } + + public Object? get_widget(Conversation conversation) { + return null; + } } } diff --git a/main/src/ui/contact_details/settings_provider.vala b/main/src/ui/contact_details/settings_provider.vala index 6a680f64..c6b87652 100644 --- a/main/src/ui/contact_details/settings_provider.vala +++ b/main/src/ui/contact_details/settings_provider.vala @@ -6,6 +6,7 @@ namespace Dino.Ui.ContactDetails { public class SettingsProvider : Plugins.ContactDetailsProvider, Object { public string id { get { return "chat_settings"; } } + public string tab { get { return "about"; } } private StreamInteractor stream_interactor; @@ -69,6 +70,10 @@ public class SettingsProvider : Plugins.ContactDetailsProvider, Object { combobox.append("off", _("Off")); return combobox; } + + public Object? get_widget(Conversation conversation) { + return null; + } } } -- cgit v1.2.3-70-g09d2