mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-29 01:39:19 +00:00
fix(src/components/notifier/Notifier): hide xml in notification for file message
This commit is contained in:
parent
065ced1f53
commit
e7eb5d6a4f
3 changed files with 12 additions and 1 deletions
|
|
@ -924,6 +924,10 @@ your friend's SIP address or username.</translation>
|
|||
<source>newVersionAvailable</source>
|
||||
<translation>A new version (%1) of Linphone is available!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>newFileMessage</source>
|
||||
<translation>New received attachment!</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>OutgoingMessage</name>
|
||||
|
|
|
|||
|
|
@ -923,6 +923,10 @@ un chat ou ajouter un contact.</translation>
|
|||
<source>newVersionAvailable</source>
|
||||
<translation>Une nouvelle version (%1) de Linphone est disponible !</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>newFileMessage</source>
|
||||
<translation>Pièce jointe reçue !</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>OutgoingMessage</name>
|
||||
|
|
|
|||
|
|
@ -231,7 +231,10 @@ void Notifier::notifyReceivedMessage (const shared_ptr<linphone::ChatMessage> &m
|
|||
return;
|
||||
|
||||
QVariantMap map;
|
||||
map["message"] = ::Utils::coreStringToAppString(message->getText());
|
||||
map["message"] = message->getFileTransferInformation()
|
||||
? tr("newFileMessage")
|
||||
: ::Utils::coreStringToAppString(message->getText());
|
||||
|
||||
map["sipAddress"] = ::Utils::coreStringToAppString(message->getFromAddress()->asStringUriOnly());
|
||||
map["window"].setValue(App::getInstance()->getMainWindow());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue