fix(src/components/notifier/Notifier): hide xml in notification for file message

This commit is contained in:
Ronan Abhamon 2017-06-08 13:43:01 +02:00
parent 065ced1f53
commit e7eb5d6a4f
3 changed files with 12 additions and 1 deletions

View file

@ -924,6 +924,10 @@ your friend&apos;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>

View file

@ -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>

View file

@ -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());