From 4c7d0f33863bb870c1a53092d68e5b64970e91b8 Mon Sep 17 00:00:00 2001 From: Thomas Ricouard Date: Wed, 8 Mar 2023 19:02:12 +0100 Subject: [PATCH] Play sound effects before the server action for status --- .../Status/Row/Subviews/StatusRowActionsView.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Packages/Status/Sources/Status/Row/Subviews/StatusRowActionsView.swift b/Packages/Status/Sources/Status/Row/Subviews/StatusRowActionsView.swift index 7e0f06ec..5c788750 100644 --- a/Packages/Status/Sources/Status/Row/Subviews/StatusRowActionsView.swift +++ b/Packages/Status/Sources/Status/Row/Subviews/StatusRowActionsView.swift @@ -162,17 +162,17 @@ struct StatusRowActionsView: View { HapticManager.shared.fireHaptic(of: .notification(.success)) switch action { case .respond: - viewModel.routerPath.presentedSheet = .replyToStatusEditor(status: viewModel.localStatus ?? viewModel.status) SoundEffectManager.shared.playSound(of: .share) + viewModel.routerPath.presentedSheet = .replyToStatusEditor(status: viewModel.localStatus ?? viewModel.status) case .favorite: - await statusDataController.toggleFavorite(remoteStatus: viewModel.localStatusId) SoundEffectManager.shared.playSound(of: .favorite) + await statusDataController.toggleFavorite(remoteStatus: viewModel.localStatusId) case .bookmark: - await statusDataController.toggleBookmark(remoteStatus: viewModel.localStatusId) SoundEffectManager.shared.playSound(of: .bookmark) + await statusDataController.toggleBookmark(remoteStatus: viewModel.localStatusId) case .boost: - await statusDataController.toggleReblog(remoteStatus: viewModel.localStatusId) SoundEffectManager.shared.playSound(of: .boost) + await statusDataController.toggleReblog(remoteStatus: viewModel.localStatusId) default: break }