mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-01-28 21:39:18 +01:00
Play sound effects before the server action for status
This commit is contained in:
parent
f6b987a18a
commit
4c7d0f3386
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user