favoriteChatContact method

Future<void> favoriteChatContact(
  1. ChatContactId id, [
  2. ChatContactFavoritePosition? position
])

Marks the specified ChatContact as favorited for the authenticated MyUser and sets its position in the favorites list.

Implementation

Future<void> favoriteChatContact(
  ChatContactId id, [
  ChatContactFavoritePosition? position,
]) async {
  Log.debug('favoriteChatContact($id, $position)', '$runtimeType');
  await _contactRepository.favoriteChatContact(id, position);
}