setBlockedUserCrossSigningKey method

  1. @override
Future<void> setBlockedUserCrossSigningKey(
  1. bool blocked,
  2. String userId,
  3. String publicKey
)
override

Implementation

@override
Future<void> setBlockedUserCrossSigningKey(
    bool blocked, String userId, String publicKey) async {
  final raw = await _userCrossSigningKeysBox
      .get(TupleKey(userId, publicKey).toString());
  raw!['blocked'] = blocked;
  await _userCrossSigningKeysBox.put(
    TupleKey(userId, publicKey).toString(),
    raw,
  );
  return;
}