Commit e7eb5d6a authored by Ronan Abhamon's avatar Ronan Abhamon

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

parent 065ced1f
......@@ -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>
......
......@@ -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());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment