remove method

  1. @override
Future<ChatResult<void>> remove(
  1. String contactUserId
)
override

Removes a user from the contact list.

One-sided removal; does NOT remove the underlying DM room (use block if you want messages to stop too). Idempotent. Backend emits contact_removed so other devices stay in sync.

Implementation

@override
Future<ChatResult<void>> remove(String contactUserId) async {
  _client._contacts.remove(contactUserId);
  return const ChatSuccess(null);
}