Skip to content
Snippets Groups Projects
Commit a420ade7 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

chatview: avoid to add message twice

if loadConversation occurs while printing new interactions

Change-Id: If273aaec873f2dd2d243773f2c792bf756322848
parent fb997546
Branches
No related tags found
No related merge requests found
...@@ -1977,6 +1977,8 @@ function addOrUpdateMessage(message_object, new_message, insert_after = true, me ...@@ -1977,6 +1977,8 @@ function addOrUpdateMessage(message_object, new_message, insert_after = true, me
var message_div = messages_div.querySelector("#message_" + message_id) var message_div = messages_div.querySelector("#message_" + message_id)
if (new_message) { if (new_message) {
if (message_div)
return;
message_div = buildNewMessage(message_object) message_div = buildNewMessage(message_object)
/* Show timestamp if either: /* Show timestamp if either:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment