forgetAbandonedGuest function

Future<void> forgetAbandonedGuest(
  1. Ref ref,
  2. String guestId
)

Drops what the server stated for a guest account being abandoned for an existing one.

The guest's local games stay: they are the device's own, and nothing about switching accounts is a decision to discard them.

Implementation

Future<void> forgetAbandonedGuest(Ref ref, String guestId) async {
  final database = await ref.read(replicaDatabaseProvider.future);
  await AccountReplica(database, guestId).resetReplicated();
}