mirror of
https://github.com/discourse/discourse.git
synced 2025-03-04 05:16:24 +08:00
FIX: Double reply in stream when inviting to a PM
This commit is contained in:
parent
a28816e9d8
commit
25dc5043e3
@ -170,7 +170,7 @@ export default Ember.Controller.extend(ModalFunctionality, {
|
|||||||
userInvitedController.set('totalInvites', invite_model.invites.length);
|
userInvitedController.set('totalInvites', invite_model.invites.length);
|
||||||
});
|
});
|
||||||
} else if (this.get('isMessage') && result && result.user) {
|
} 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) {
|
}).catch(function(e) {
|
||||||
if (e.jqXHR.responseJSON && e.jqXHR.responseJSON.errors) {
|
if (e.jqXHR.responseJSON && e.jqXHR.responseJSON.errors) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user