use setter in topic-tracking-state or else get assertion error

This commit is contained in:
Neil Lalonde 2015-09-11 11:38:25 -04:00
parent 4b43edee91
commit 637b110e76

View File

@ -174,8 +174,8 @@ const TopicTrackingState = Discourse.Model.extend({
if (filter === "new") {
list.topics.splice(i, 1);
} else {
list.topics[i].unseen = false;
list.topics[i].dont_sync = true;
list.topics[i].set('unseen', false);
list.topics[i].set('dont_sync', true);
}
}
}