aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/notifier_gnotifications.vala
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2022-02-08 17:45:57 +0100
committerfiaxh <git@lightrise.org>2022-02-08 17:52:30 +0100
commit408406e652bf7450d91661dcdd38be767c7faacd (patch)
treee79a69e673daa54c9bd95d26831c781a0861d86a /main/src/ui/notifier_gnotifications.vala
parent3088879a7b35fede494ca3a8b961a0142f36593a (diff)
downloaddino-408406e652bf7450d91661dcdd38be767c7faacd.tar.gz
dino-408406e652bf7450d91661dcdd38be767c7faacd.zip
Let call notification say if it's a group call
Diffstat (limited to 'main/src/ui/notifier_gnotifications.vala')
-rw-r--r--main/src/ui/notifier_gnotifications.vala7
1 files changed, 5 insertions, 2 deletions
diff --git a/main/src/ui/notifier_gnotifications.vala b/main/src/ui/notifier_gnotifications.vala
index 665d47c4..d569a358 100644
--- a/main/src/ui/notifier_gnotifications.vala
+++ b/main/src/ui/notifier_gnotifications.vala
@@ -65,9 +65,12 @@ namespace Dino.Ui {
}
}
- public async void notify_call(Call call, Conversation conversation, bool video, string conversation_display_name) {
+ public async void notify_call(Call call, Conversation conversation, bool video, bool multiparty, string conversation_display_name) {
Notification notification = new Notification(conversation_display_name);
- string body = _("Incoming call");
+ string body = video ? _("Incoming video call") : _("Incoming call");
+ if (multiparty) {
+ body = video ? _("Incoming video group call") : _("Incoming group call");
+ }
notification.set_body(body);
notification.set_urgent(true);