mirror of
https://github.com/discourse/discourse.git
synced 2026-09-05 04:40:41 -05:00
FIX: Double reply in stream when inviting to a PM
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user