FIX: Double reply in stream when inviting to a PM

This commit is contained in:
Robin Ward 2016-03-09 11:55:02 -05:00
parent a28816e9d8
commit 25dc5043e3
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ export default Ember.Controller.extend(ModalFunctionality, {
userInvitedController.set('totalInvites', invite_model.invites.length);
});
} else if (this.get('isMessage') && result && result.user) {
this.get('model.details.allowed_users').pushObject(result.user);
this.get('model.details.allowed_users').pushObject(Ember.Object.create(result.user));
}
}).catch(function(e) {
if (e.jqXHR.responseJSON && e.jqXHR.responseJSON.errors) {