Don't respond to our own messages.

This commit is contained in:
Ian Gulliver
2015-12-27 21:42:30 -08:00
parent 67a229e309
commit 81dac3b750

View File

@@ -65,6 +65,9 @@ BabyStats.prototype.onChatReady_ = function(chat) {
* @private
*/
BabyStats.prototype.onMessage_ = function(e) {
if (e.detail.sender == this.cosmo_.currentProfile()) {
return;
}
this.handleMessage_(e.detail);
};