Use MatrixClientPeg::safeGet in src/components/views/* (#10987)
This commit is contained in:
committed by
GitHub
parent
4243847f4f
commit
280f6a9d93
@@ -60,8 +60,8 @@ export default class ErrorBoundary extends React.PureComponent<Props, IState> {
|
||||
private onClearCacheAndReload = (): void => {
|
||||
if (!PlatformPeg.get()) return;
|
||||
|
||||
MatrixClientPeg.get().stopClient();
|
||||
MatrixClientPeg.get()
|
||||
MatrixClientPeg.safeGet().stopClient();
|
||||
MatrixClientPeg.safeGet()
|
||||
.store.deleteAllData()
|
||||
.then(() => {
|
||||
PlatformPeg.get()?.reload();
|
||||
|
||||
Reference in New Issue
Block a user