deleteChatDirectLink method
override
Deletes the current ChatDirectLink of the authenticated MyUser.
Implementation
@override
Future<void> deleteChatDirectLink() async {
Log.debug('deleteChatDirectLink()', '$runtimeType');
final ChatDirectLink? link = myUser.value?.chatDirectLink;
myUser.update((u) => u?.chatDirectLink = null);
try {
await _graphQlProvider.deleteUserDirectLink();
} catch (_) {
myUser.update((u) => u?.chatDirectLink = link);
rethrow;
}
}