Reset chat state on resource change.

This commit is contained in:
Lance Stout 2013-09-17 12:18:08 -07:00
parent 3cd8f551ce
commit 3d9acf49d9
1 changed files with 1 additions and 0 deletions

View File

@ -145,6 +145,7 @@ module.exports = HumanModel.define({
this.timezoneOffset = res.timezoneOffset;
this.idleSince = res.idleSince;
}
this.chatState = 'active';
} else {
this.topResource = undefined;
this.chatState = 'gone';