Commit d48b8f14 authored by Albert Vaca Cintora's avatar Albert Vaca Cintora

Call notifications now show 'unknown number' instead of nothing when receiving a private call

parent ee7f6b0c
......@@ -34,15 +34,16 @@ KNotification* NotificationPackageInterface::createNotification(const QString& d
if (npType == "ringing") {
type = "callReceived";
icon = "call-start";
content = "Incoming call from " + np.get<QString>("phoneNumber");
QString number =
content = "Incoming call from " + np.get<QString>("phoneNumber","unknown number");
} else if (npType == "missedCall") {
type = "missedCall";
icon = "call-start";
content = "Missed call from " + np.get<QString>("phoneNumber");
content = "Missed call from " + np.get<QString>("phoneNumber","unknown number");
} else if (npType == "sms") {
type = "smsReceived";
icon = "mail-receive";
content = "SMS received from " + np.get<QString>("phoneNumber");
content = "SMS received from " + np.get<QString>("phoneNumber","unknown number");
} else if (npType == "battery") {
type = "battery100";
icon = "battery-100";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment