mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 14:16:16 -04:00
Show info from message sender when is in only one conversation
This commit is contained in:
parent
dcaa4c0458
commit
93d778a577
1 changed files with 6 additions and 4 deletions
|
@ -41,10 +41,12 @@ QtObject
|
|||
"unread conversations")
|
||||
notificationsBridge.notify(
|
||||
qsTr("New message!"),
|
||||
qsTr("Unread messages in %1 %2").arg(convCnt).arg(
|
||||
convCnt > 1 ?
|
||||
qsTr("conversations") : qsTr("conversation")
|
||||
)
|
||||
(convCnt > 1) ?
|
||||
qsTr("Unread messages in %1 conversations").arg(convCnt):
|
||||
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)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue