Handle SDKContextClass client initialisation internally (#34146)
* Handle SDKContextClass `client` initialisation internally Rather than via MatrixChat - this is predominantly for Lifecycle tests as they don't use a MatrixChat and it doesn't make much sense for this component to own this state. * Fix tests
This commit is contained in:
@@ -1521,7 +1521,6 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
|
||||
* Handle an {@link Action.OnLoggedIn} action (i.e, we now have a client with working credentials).
|
||||
*/
|
||||
private onLoggedIn(): void {
|
||||
this.stores.client = MatrixClientPeg.safeGet();
|
||||
StorageManager.tryPersistStorage();
|
||||
|
||||
// If we're loading the app for the first time, we can now transition to a splash screen while we wait for the
|
||||
|
||||
Reference in New Issue
Block a user