isCached method

Future<bool> isCached()

Implementation

Future<bool> isCached() async {
  await client.accountDataLoading;
  if (!enabled) {
    return false;
  }
  return (await encryption.ssss
              .getCached(EventTypes.CrossSigningSelfSigning)) !=
          null &&
      (await encryption.ssss.getCached(EventTypes.CrossSigningUserSigning)) !=
          null;
}