From 7407950c753486857edd1907ee232c803973d2e9 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Mon, 8 Apr 2019 12:49:14 -0600 Subject: [PATCH] Always return a client from onRegistered Fixes https://github.com/vector-im/riot-web/issues/9406 The return value of onRegistered eventually ends up in the pusher setup, which means we were passing undefined through the stack. --- src/components/structures/MatrixChat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/structures/MatrixChat.js b/src/components/structures/MatrixChat.js index 19ac145c08..88782a0344 100644 --- a/src/components/structures/MatrixChat.js +++ b/src/components/structures/MatrixChat.js @@ -1772,7 +1772,7 @@ export default React.createClass({ hasCancelButton: false, }); - return; + return MatrixClientPeg.get(); } } return Lifecycle.setLoggedIn(credentials);