Bugfix, show status updates on the correct chatbox.

This commit is contained in:
JC Brand 2012-07-29 00:04:00 +02:00
parent ae9e8634e3
commit 3428b355c7

View File

@ -380,7 +380,9 @@ xmppchat.ChatBoxView = Backbone.View.extend({
}
}
} else if (_.has(changed.changes, 'status')) {
this.$el.find('p.user-custom-message').text(item.get('status'));
if (item.get('jid') === this.model.get('jid')) {
this.$el.find('p.user-custom-message').text(item.get('status'));
}
}
}, this);
},