Commit ea8140fc authored by Ming Rui Zhang's avatar Ming Rui Zhang

chatview: change sender image for typing indicator when changing conversation

Change-Id: I2b00bb8a96ff5595ba93dc198af52a1f03f9139e
parent 9964d9b9
......@@ -2181,6 +2181,14 @@ function setSenderImage(set_sender_image_object)
invite_style.id = invite_sender_image_id
invite_style.innerHTML = "." + invite_sender_image_id + " {content: url(data:image/png;base64," + sender_image + ");height: 48px; width: 48px;}"
document.head.appendChild(invite_style)
if (use_qt) {
var typing_indicator_container_div = document.getElementById("typing_indicator_container")
var sender_image_span = typing_indicator_container_div.querySelector(".sender_image_cell")
if (sender_image_span) {
sender_image_span.childNodes[0].setAttribute("class", "sender_image " + sender_image_id)
}
}
}
/**
......
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