Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
MessageSectionEventProcessor.prototype.observeThreadSelected = function () {
this.addDisposable(modelRouter
.getEventObservable("threadSelected", esp.EventStage.commited)
.observe(function (model, event) {
this._updateMessages(model);
model.messageSection.threadName = event.threadName;
model.messageSection.hasChanges = true;
}.bind(this))
);
};
ThreadSectionEventProcessor.prototype.observeThreadSelected = function () {
this.addDisposable(modelRouter
.getEventObservable("threadSelected", esp.EventStage.commited)
.observe(function (model) {
model.threadSection.threadsById[model.selectedThreadId].isRead = true;
this._updateActiveFlags(model);
this._updateUnreadCount(model);
model.threadSection.hasChanges = true;
}.bind(this))
);
};