Commit 4f868983 authored by Ming Rui Zhang's avatar Ming Rui Zhang Committed by Sébastien Blin

interaction: remove hard coded phone character

Change-Id: Icafdd008e848e5e15d2f35d5e1178d9a5e8f59ff
parent 80445198
......@@ -103,23 +103,21 @@ getCallInteractionString(const QString& authorUri,
{
if (duration < 0) {
if (authorUri.isEmpty()) {
return "📞 " + QObject::tr("Outgoing call");
return QObject::tr("Outgoing call");
} else {
return "📞 " + QObject::tr("Incoming call");
return QObject::tr("Incoming call");
}
} else if (authorUri.isEmpty()) {
if (duration) {
return "📞 " + QObject::tr("Outgoing call")
+ " - " + getFormattedCallDuration(duration);
return QObject::tr("Outgoing call") + " - " + getFormattedCallDuration(duration);
} else {
return "🕽 " + QObject::tr("Missed outgoing call");
return QObject::tr("Missed outgoing call");
}
} else {
if (duration) {
return "📞 " + QObject::tr("Incoming call")
+ " - " + getFormattedCallDuration(duration);
return QObject::tr("Incoming call") + " - " + getFormattedCallDuration(duration);
} else {
return "🕽 " + QObject::tr("Missed incoming call");
return QObject::tr("Missed incoming call");
}
}
}
......
......@@ -1417,9 +1417,12 @@ function updateCallInteraction(message_div, message_object) {
const message_text = message_object["text"]
const message_direction = message_object["direction"]
const missed = message_text.indexOf("🕽") !== -1
const message_duration = message_object["duration"]
const message_sender = message_object["sender"]
message_div.querySelector(".text").innerText = message_text.substring(2)
const missed = message_duration === 0 ? true : false
message_div.querySelector(".text").innerText = message_text
var left_buttons = message_div.querySelector(".left_buttons")
left_buttons.innerHTML = ""
......
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