unblock method

Future<void> unblock()

Removes the user from the blocklist of the authenticated MyUser.

Implementation

Future<void> unblock() async {
  blocklistStatus.value = RxStatus.loading();
  try {
    await _userService.unblockUser(id);
  } on UnblockUserException catch (e) {
    MessagePopup.error(e);
  } catch (e) {
    MessagePopup.error('err_data_transfer'.l10n);
    rethrow;
  } finally {
    blocklistStatus.value = RxStatus.empty();
  }
}