FIX: PM participants list refreshing after inviting

When inviting users to a PM a small post is created showing that you
invited the user, but the actual list of participants never updated
until you refreshed the page or interacted with the private-message-map
widget triggering it to refresh. This change will trigger a refresh on
the private-message-map widget ensuring that the UI is updated with the
current list of participants.
This commit is contained in:
Blake Erickson 2020-08-06 14:52:58 -06:00
parent 7a1816ce23
commit 149801f99a

View File

@ -366,7 +366,7 @@ export default Component.extend({
this.get("inviteModel.details.allowed_users").pushObject(
EmberObject.create(result.user)
);
this.appEvents.trigger("post-stream:refresh");
this.appEvents.trigger("post-stream:refresh", { force: true });
} else if (
this.invitingToTopic &&
emailValid(this.emailOrUsername.trim()) &&