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> ...@@ -924,6 +924,10 @@ your friend&apos;s SIP address or username.</translation>
<source>newVersionAvailable</source> <source>newVersionAvailable</source>
<translation>A new version (%1) of Linphone is available!</translation> <translation>A new version (%1) of Linphone is available!</translation>
</message> </message>
<message>
<source>newFileMessage</source>
<translation>New received attachment!</translation>
</message>
</context> </context>
<context> <context>
<name>OutgoingMessage</name> <name>OutgoingMessage</name>
......
...@@ -923,6 +923,10 @@ un chat ou ajouter un contact.</translation> ...@@ -923,6 +923,10 @@ un chat ou ajouter un contact.</translation>
<source>newVersionAvailable</source> <source>newVersionAvailable</source>
<translation>Une nouvelle version (%1) de Linphone est disponible !</translation> <translation>Une nouvelle version (%1) de Linphone est disponible !</translation>
</message> </message>
<message>
<source>newFileMessage</source>
<translation>Pièce jointe reçue !</translation>
</message>
</context> </context>
<context> <context>
<name>OutgoingMessage</name> <name>OutgoingMessage</name>
......
...@@ -231,7 +231,10 @@ void Notifier::notifyReceivedMessage (const shared_ptr<linphone::ChatMessage> &m ...@@ -231,7 +231,10 @@ void Notifier::notifyReceivedMessage (const shared_ptr<linphone::ChatMessage> &m
return; return;
QVariantMap map; 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["sipAddress"] = ::Utils::coreStringToAppString(message->getFromAddress()->asStringUriOnly());
map["window"].setValue(App::getInstance()->getMainWindow()); 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