mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-29 01:16:20 -05:00
Show info from message sender when is in only one conversation
This commit is contained in:
parent
dcaa4c0458
commit
93d778a577
@ -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…
Reference in New Issue
Block a user