Added a comment

Ubuntu's Unity doesn't support persistent notifications and it shows a
popup dialog instead :/
This commit is contained in:
Albert Vaca 2017-02-08 14:59:34 +01:00
parent bc0b182708
commit 5f0173f469

View file

@ -72,13 +72,13 @@ KNotification* TelephonyPlugin::createNotification(const NetworkPackage& np)
type = QStringLiteral("missedCall");
icon = QStringLiteral("call-start");
content = i18n("Missed call from %1", contactName);
flags |= KNotification::Persistent;
flags |= KNotification::Persistent; //Note that in Unity this generates a message box!
} else if (event == QLatin1String("sms")) {
type = QStringLiteral("smsReceived");
icon = QStringLiteral("mail-receive");
QString messageBody = np.get<QString>(QStringLiteral("messageBody"), QLatin1String(""));
content = i18n("SMS from %1<br>%2", contactName, messageBody);
flags |= KNotification::Persistent;
flags |= KNotification::Persistent; //Note that in Unity this generates a message box!
} else if (event == QLatin1String("talking")) {
return nullptr;
} else {