Merge pull request #4356 from acshi/datapayloadarchetype

data.archetype should be data.payload.archetype in topic_tracking_state.js.es6
This commit is contained in:
Régis Hanol 2016-08-01 14:10:51 +02:00 committed by GitHub
commit 0fa458c5a7

View file

@ -103,7 +103,7 @@ const TopicTrackingState = Discourse.Model.extend({
notify(data) { notify(data) {
if (!this.newIncoming) { return; } if (!this.newIncoming) { return; }
if (data.archetype === "private_message") { return; } if (data.payload && data.payload.archetype === "private_message") { return; }
const filter = this.get("filter"); const filter = this.get("filter");
const filterCategory = this.get("filterCategory"); const filterCategory = this.get("filterCategory");