hideChat method
- ChatId id
Marks the specified Chat as hidden for the authenticated MyUser.
Implementation
Future<void> hideChat(ChatId id) {
Log.debug('hideChat($id)', '$runtimeType');
final Chat? chat = chats[id]?.chat.value;
if (chat != null) {
router.removeWhere((e) => chat.isRoute(e, me));
}
return _chatRepository.hideChat(id);
}