Commit 88baa541 authored by Thibaut Frain's avatar Thibaut Frain

fix bug: message from others contact was also display in the current chatbox

parent 6ab46856
......@@ -107,6 +107,8 @@
_id: "chatbox_history",
datas: JSON.stringify(this.props.talks)
});
displayMessage(message);
if (this.props.current_contact_jid === from) {
displayMessage(message);
}
});
})($, rJS, Handlebars);
\ No newline at end of file
......@@ -156,7 +156,9 @@
"datas": JSON.stringify(this.props.talks)
});
displayMessage(message);
if (this.props.current_contact_jid === from) {
displayMessage(message);
}
});
}($, rJS, Handlebars));
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