useChatDirectLink method

  1. @override
Future<Chat> useChatDirectLink(
  1. ChatDirectLinkSlug slug
)
override

Uses the specified ChatDirectLink by the authenticated MyUser creating a new Chat-dialog or joining an existing Chat-group.

Implementation

@override
Future<Chat> useChatDirectLink(ChatDirectLinkSlug slug) async {
  Log.debug('useChatDirectLink($slug)', '$runtimeType');

  final response = await _graphQlProvider.useChatDirectLink(slug);
  return response.chat.toModel();
}