From 48856c31f893815f3d3731717219d17db83dfc12 Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Tue, 16 May 2017 13:48:56 +0100 Subject: [PATCH] Dispatch password_changed when SetPasswordDialog finished --- src/components/views/globals/PasswordNagBar.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/views/globals/PasswordNagBar.js b/src/components/views/globals/PasswordNagBar.js index a42706c3..b44950ad 100644 --- a/src/components/views/globals/PasswordNagBar.js +++ b/src/components/views/globals/PasswordNagBar.js @@ -25,7 +25,10 @@ export default React.createClass({ const SetPasswordDialog = sdk.getComponent('dialogs.SetPasswordDialog'); Modal.createDialog(SetPasswordDialog, { onFinished: () => { - //TODO: Notify SessionStore of changed password: dispatch password_changed + // Notify SessionStore that the user's password was changed + dis.dispatch({ + action: 'password_changed', + }); } }); },