Fix focus check

This commit is contained in:
Lance Stout 2013-09-27 11:54:51 -07:00
parent 64e2f1ed5e
commit ea08b54e03
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ module.exports = HumanModel.define({
addMessage: function (message, notify) {
message.owner = me.jid.bare;
if (notify && (!this.activeContact || (this.activeContact && !me.hasFocus)) && message.from.bare === this.jid) {
if (notify && (!this.activeContact || (this.activeContact && !app.state.focused)) && message.from.bare === this.jid) {
this.unreadCount++;
app.notifier.show({
title: this.displayName,