reset method

Future<void> reset()

Forget the current user and start a fresh session (e.g. on logout). Also clears the persisted identity so the next launch starts anonymous.

Implementation

Future<void> reset() async {
  await sessions.reset();
  // Drop back to the anonymous device room so a logged-out device no longer
  // rings for the previous user.
  if (config.voiceEnabled) await voice.rebindIdentity();
}