From 149801f99ad8afe068eea53cb45bebfe0763d8d6 Mon Sep 17 00:00:00 2001 From: Blake Erickson Date: Thu, 6 Aug 2020 14:52:58 -0600 Subject: [PATCH] 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. --- app/assets/javascripts/discourse/app/components/invite-panel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/app/components/invite-panel.js b/app/assets/javascripts/discourse/app/components/invite-panel.js index 0866fbfac79..42308e2c7a3 100644 --- a/app/assets/javascripts/discourse/app/components/invite-panel.js +++ b/app/assets/javascripts/discourse/app/components/invite-panel.js @@ -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()) &&