1
0
mirror of https://github.com/moparisthebest/kaiwa synced 2024-11-26 03:02:25 -05:00

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

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';