Show info from message sender when is in only one conversation

This commit is contained in:
Angela Mazzurco 2017-07-31 16:11:21 +02:00
parent dcaa4c0458
commit 93d778a577

View File

@ -41,10 +41,12 @@ QtObject
"unread conversations") "unread conversations")
notificationsBridge.notify( notificationsBridge.notify(
qsTr("New message!"), qsTr("New message!"),
qsTr("Unread messages in %1 %2").arg(convCnt).arg( (convCnt > 1) ?
convCnt > 1 ? qsTr("Unread messages in %1 conversations").arg(convCnt):
qsTr("conversations") : qsTr("conversation") qsTr("%1 Unread %2 from %3")
) .arg(json.data[0].unread_count)
.arg(json.data[0].unread_count > 1 ? "messages" : "message")
.arg(json.data[0].remote_author_name)
) )
} }
} }