aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/contact_details
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2024-12-24 16:02:13 +0100
committerfiaxh <git@lightrise.org>2025-01-12 19:35:58 +0100
commit5ee322cbd987d36497522b82b876659e1d19da43 (patch)
treec22d0bdbf92b30207b64ec74e925af4263ce91fc /main/src/ui/contact_details
parentd78ec0562288fa4ed7d414d2269c00b7b8c2c588 (diff)
downloaddino-5ee322cbd987d36497522b82b876659e1d19da43.tar.gz
dino-5ee322cbd987d36497522b82b876659e1d19da43.zip
Contact details dialog: Add encryption tab
Diffstat (limited to 'main/src/ui/contact_details')
-rw-r--r--main/src/ui/contact_details/permissions_provider.vala5
-rw-r--r--main/src/ui/contact_details/settings_provider.vala5
2 files changed, 10 insertions, 0 deletions
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;
+ }
}
}