chatview: use displayName for files

Change-Id: I2046429f0a0ceeae0fda9a7746f802b416863008
GitLab: jami-client-qt#455
parent 029c10c9
......@@ -1322,7 +1322,11 @@ function updateFileInteraction(message_div, message_object, forceTypeToFile = fa
}
message_div.querySelector(".full").innerText = message_text
message_div.querySelector(".filename").innerText = message_text.split("/").pop()
var displayName = message_object["displayName"]
if (!displayName || displayName === "") {
displayName = message_text.split("/").pop() // If non swarm displayName will be not set, we can take the path
}
message_div.querySelector(".filename").innerText = displayName
updateProgressBar(message_div.querySelector(".message_progress_bar"), message_object)
......
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