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