revokeDevice method

Future<void> revokeDevice(
  1. String localId,
  2. String deviceId
)

Revokes device deviceId from localId: rotates the group key, re-wraps it to every other device, and re-keys this database. Peers adopt the new key on sync; the revoked device can no longer read or write.

Implementation

Future<void> revokeDevice(String localId, String deviceId) =>
    _database(localId).revokeDevice(deviceId);