aboutsummaryrefslogtreecommitdiff
path: root/plugins/omemo/src/own_notifications.vala
diff options
context:
space:
mode:
authorSamuel Hand <samuel.hand@openmailbox.org>2018-08-12 12:16:42 +0100
committerSamuel Hand <samuel.hand@openmailbox.org>2018-08-12 12:16:42 +0100
commit380e5edc5108d549d2faa0b3b5819a7c2ee03bd8 (patch)
treeb70209b0479eea543b8706427b2f2cc39d97a734 /plugins/omemo/src/own_notifications.vala
parentc59faad5bf62b9e9a124a6e330745885c993ea21 (diff)
downloaddino-380e5edc5108d549d2faa0b3b5819a7c2ee03bd8.tar.gz
dino-380e5edc5108d549d2faa0b3b5819a7c2ee03bd8.zip
Change own-notifcation wording and add a default action
Diffstat (limited to 'plugins/omemo/src/own_notifications.vala')
-rw-r--r--plugins/omemo/src/own_notifications.vala5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/omemo/src/own_notifications.vala b/plugins/omemo/src/own_notifications.vala
index 862ff33a..5c96f8d5 100644
--- a/plugins/omemo/src/own_notifications.vala
+++ b/plugins/omemo/src/own_notifications.vala
@@ -33,8 +33,9 @@ public class OwnNotifications {
}
private void display_notification() {
- Notification notification = new Notification(_("Trust decision required"));
- notification.set_body(_("A new OMEMO device has been added for the account %s").printf("$(account.jid.bare_jid)"));
+ Notification notification = new Notification(_("OMEMO trust decision required"));
+ notification.set_default_action_and_target_value("app.own-keys", new Variant.int32(account.id));
+ notification.set_body(_("Did you add a new device for account %s").printf(@"$(account.bare_jid.to_string())"));
plugin.app.send_notification(account.id.to_string()+"-new-device", notification);
}
}