From 81dac3b750fa077cfc5518187438f9885a927a96 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Sun, 27 Dec 2015 21:42:30 -0800 Subject: [PATCH] Don't respond to our own messages. --- static/babystats.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/static/babystats.js b/static/babystats.js index bb3cc7d..b1e0ab9 100644 --- a/static/babystats.js +++ b/static/babystats.js @@ -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); };