@@ -24,7 +24,6 @@ public struct FavoritesFeature: Reducer, Sendable {
2424 // MARK: - Localizations
2525
2626 public enum Localization {
27- static let actionCompleted = LocalizedStringResource ( " Action completed " , bundle: . module)
2827 static let markAsReadSuccess = LocalizedStringResource ( " Marked as read " , bundle: . module)
2928 static let notifyTypeChanged = LocalizedStringResource ( " Notify type changed " , bundle: . module)
3029 static let sortFiltersChanged = LocalizedStringResource ( " Sort filters are changed " , bundle: . module)
@@ -214,8 +213,7 @@ public struct FavoritesFeature: Reducer, Sendable {
214213 . run { send in
215214 let request = SetFavoriteRequest ( id: id, action: . delete, type: isForum ? . forum : . topic)
216215 let status = try await apiClient. setFavorite ( request)
217- let actionCompleted = ToastMessage ( text: Localization . actionCompleted, haptic: . success)
218- await toastClient. showToast ( status ? actionCompleted : . whoopsSomethingWentWrong)
216+ await toastClient. showToast ( status ? . actionCompleted : . whoopsSomethingWentWrong)
219217 } ,
220218
221219 . send( . internal( . refresh) )
@@ -226,8 +224,7 @@ public struct FavoritesFeature: Reducer, Sendable {
226224 . run { send in
227225 let request = SetFavoriteRequest ( id: id, action: pin ? . pin : . unpin, type: isForum ? . forum : . topic)
228226 let status = try await apiClient. setFavorite ( request)
229- let actionCompleted = ToastMessage ( text: Localization . actionCompleted, haptic: . success)
230- await toastClient. showToast ( status ? actionCompleted : . whoopsSomethingWentWrong)
227+ await toastClient. showToast ( status ? . actionCompleted : . whoopsSomethingWentWrong)
231228 } ,
232229
233230 . send( . internal( . refresh) )
@@ -237,8 +234,7 @@ public struct FavoritesFeature: Reducer, Sendable {
237234 return . concatenate(
238235 . run { [ id, isForum] send in
239236 let status = try await apiClient. markRead ( id: id, isTopic: !isForum)
240- let actionCompleted = ToastMessage ( text: Localization . actionCompleted, haptic: . success)
241- await toastClient. showToast ( status ? actionCompleted : . whoopsSomethingWentWrong)
237+ await toastClient. showToast ( status ? . actionCompleted : . whoopsSomethingWentWrong)
242238 } ,
243239
244240 . send( . internal( . refresh) )
0 commit comments