1
0
mirror of https://github.com/moparisthebest/kaiwa synced 2024-11-26 11:12:16 -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.timezoneOffset = res.timezoneOffset;
this.idleSince = res.idleSince; this.idleSince = res.idleSince;
} }
this.chatState = 'active';
} else { } else {
this.topResource = undefined; this.topResource = undefined;
this.chatState = 'gone'; this.chatState = 'gone';