mirror of
https://github.com/vector-im/element-call.git
synced 2024-11-15 00:04:59 +08:00
make error optional in ClientState
This commit is contained in:
parent
3727bfb67f
commit
4f36d149d7
@ -59,10 +59,10 @@ interface ClientState {
|
||||
isPasswordlessUser: boolean;
|
||||
client: MatrixClient;
|
||||
userName: string;
|
||||
error: Error;
|
||||
changePassword: (password: string) => Promise<void>;
|
||||
logout: () => void;
|
||||
setClient: (client: MatrixClient, session: Session) => void;
|
||||
error?: Error;
|
||||
}
|
||||
|
||||
const ClientContext = createContext<ClientState>(null);
|
||||
|
Loading…
Reference in New Issue
Block a user