unfavoriteContact method

Future<void> unfavoriteContact(
  1. ChatContactId id
)

Removes the specified ChatContact identified by its id from the favorites.

Implementation

Future<void> unfavoriteContact(ChatContactId id) async {
  try {
    await _contactService.unfavoriteChatContact(id);
  } on UnfavoriteChatContactException catch (e) {
    MessagePopup.error(e);
  } catch (e) {
    MessagePopup.error(e);
    rethrow;
  }
}