mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-26 18:21:00 +00:00
Play sound effects before the server action for status
This commit is contained in:
parent
f6b987a18a
commit
4c7d0f3386
1 changed files with 4 additions and 4 deletions
|
@ -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…
Reference in a new issue