some polish

This commit is contained in:
Blue 2022-04-26 23:08:25 +03:00
parent e58213b294
commit 2fcc432aef
Signed by untrusted user: blue
GPG key ID: 9B203B252A63EE38
2 changed files with 3 additions and 2 deletions

View file

@ -220,7 +220,7 @@ void Application::notify(const QString& account, const Shared::Message& msg)
args << QString("mail-message"); //TODO should here better be unknown user icon?
}
if (msg.getType() == Shared::Message::groupChat) {
args << msg.getFromResource() + " from " + name;
args << msg.getFromResource() + tr(" from ") + name;
} else {
args << name;
}
@ -239,6 +239,7 @@ void Application::notify(const QString& account, const Shared::Message& msg)
args << QVariantMap({
{"desktop-entry", qApp->desktopFileName()},
{"category", QString("message")},
{"urgency", 1},
// {"sound-file", "/path/to/macaw/squawk"},
{"sound-name", QString("message-new-instant")}
});