mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-23 08:50:58 +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))
|
HapticManager.shared.fireHaptic(of: .notification(.success))
|
||||||
switch action {
|
switch action {
|
||||||
case .respond:
|
case .respond:
|
||||||
viewModel.routerPath.presentedSheet = .replyToStatusEditor(status: viewModel.localStatus ?? viewModel.status)
|
|
||||||
SoundEffectManager.shared.playSound(of: .share)
|
SoundEffectManager.shared.playSound(of: .share)
|
||||||
|
viewModel.routerPath.presentedSheet = .replyToStatusEditor(status: viewModel.localStatus ?? viewModel.status)
|
||||||
case .favorite:
|
case .favorite:
|
||||||
await statusDataController.toggleFavorite(remoteStatus: viewModel.localStatusId)
|
|
||||||
SoundEffectManager.shared.playSound(of: .favorite)
|
SoundEffectManager.shared.playSound(of: .favorite)
|
||||||
|
await statusDataController.toggleFavorite(remoteStatus: viewModel.localStatusId)
|
||||||
case .bookmark:
|
case .bookmark:
|
||||||
await statusDataController.toggleBookmark(remoteStatus: viewModel.localStatusId)
|
|
||||||
SoundEffectManager.shared.playSound(of: .bookmark)
|
SoundEffectManager.shared.playSound(of: .bookmark)
|
||||||
|
await statusDataController.toggleBookmark(remoteStatus: viewModel.localStatusId)
|
||||||
case .boost:
|
case .boost:
|
||||||
await statusDataController.toggleReblog(remoteStatus: viewModel.localStatusId)
|
|
||||||
SoundEffectManager.shared.playSound(of: .boost)
|
SoundEffectManager.shared.playSound(of: .boost)
|
||||||
|
await statusDataController.toggleReblog(remoteStatus: viewModel.localStatusId)
|
||||||
default:
|
default:
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue