Skip to content

Commit

Permalink
fix: use correct endpoint to unmute (#191)
Browse files Browse the repository at this point in the history
In `MutedUsersPage`, call `mute/delete` instead of `blocking/delete`
when a delete button for the muted user is tapped.
  • Loading branch information
poppingmoon authored May 26, 2024
1 parent b92e8e6 commit 2323d51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/provider/api/mutings_notifier_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class MutingsNotifier extends _$MutingsNotifier {
}

Future<void> 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(
Expand Down
2 changes: 1 addition & 1 deletion lib/provider/api/mutings_notifier_provider.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2323d51

Please sign in to comment.