delete method
Deletes a user permanently.
Use for hard account deletion flows (GDPR right-to-erasure or admin tools). Irreversible — the backend tombstones messages but removes the profile record; managed users belonging to the deleted parent are cascaded out too.
Implementation
@override
Future<ChatResult<void>> delete(String userId) async {
if (!_client._users.containsKey(userId)) {
return const ChatFailureResult(NotFoundFailure());
}
_client._users.remove(userId);
return const ChatSuccess(null);
}