mirror of
https://github.com/discourse/discourse.git
synced 2025-03-03 22:39:57 +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);
|
||||
});
|
||||
} 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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user