favoriteChat method

Future<void> favoriteChat(
  1. ChatId id, [
  2. ChatFavoritePosition? position
])

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

Implementation

Future<void> favoriteChat(ChatId id, [ChatFavoritePosition? position]) async {
  Log.debug('favoriteChat($id, $position)', '$runtimeType');
  await _chatRepository.favoriteChat(id, position);
}