Call notifications now show 'unknown number' instead of nothing when receiving a private call
This commit is contained in:
parent
ee7f6b0c6d
commit
d48b8f145b
1 changed files with 4 additions and 3 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue