From 2323d515cc2c0d132e203277548fe3feac8b135a Mon Sep 17 00:00:00 2001 From: poppingmoon <63451158+poppingmoon@users.noreply.github.com> Date: Sun, 26 May 2024 06:01:30 +0000 Subject: [PATCH] fix: use correct endpoint to unmute (#191) In `MutedUsersPage`, call `mute/delete` instead of `blocking/delete` when a delete button for the muted user is tapped. --- lib/provider/api/mutings_notifier_provider.dart | 2 +- lib/provider/api/mutings_notifier_provider.g.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/provider/api/mutings_notifier_provider.dart b/lib/provider/api/mutings_notifier_provider.dart index c4cb4a68..ff4d1602 100644 --- a/lib/provider/api/mutings_notifier_provider.dart +++ b/lib/provider/api/mutings_notifier_provider.dart @@ -40,7 +40,7 @@ class MutingsNotifier extends _$MutingsNotifier { } Future delete(String userId) async { - await _misskey.blocking.delete(BlockDeleteRequest(userId: userId)); + await _misskey.mute.delete(MuteDeleteRequest(userId: userId)); final value = state.valueOrNull; if (value != null) { state = AsyncValue.data( diff --git a/lib/provider/api/mutings_notifier_provider.g.dart b/lib/provider/api/mutings_notifier_provider.g.dart index 2f6c852f..0d3249df 100644 --- a/lib/provider/api/mutings_notifier_provider.g.dart +++ b/lib/provider/api/mutings_notifier_provider.g.dart @@ -6,7 +6,7 @@ part of 'mutings_notifier_provider.dart'; // RiverpodGenerator // ************************************************************************** -String _$mutingsNotifierHash() => r'a19972d00e7ebed464f2415fdc5280a0c938a561'; +String _$mutingsNotifierHash() => r'92fc7ab2e0152e40bcf4e285375c58ece0b1aa29'; /// Copied from Dart SDK class _SystemHash {