Skip to content

Commit

Permalink
fix #90 don't dismiss failed message action
Browse files Browse the repository at this point in the history
Signed-off-by: Basler182 <[email protected]>
  • Loading branch information
Basler182 committed Oct 27, 2024
1 parent 03e2fd7 commit dab61a4
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,12 @@ class BluetoothViewModel @Inject internal constructor(
}
}

is MessagesAction.VideoSectionAction -> {
handleVideoSectionAction(messagesAction).onFailure {
return // on failure, we don't want to dismiss the message
}
}

is MessagesAction.MeasurementsAction -> {
appScreenEvents.emit(AppScreenEvents.Event.DoNewMeasurement)
}
Expand All @@ -248,12 +254,6 @@ class BluetoothViewModel @Inject internal constructor(
)
)
}

is MessagesAction.VideoSectionAction -> {
handleVideoSectionAction(messagesAction).onFailure {
return // on failure, we don't want to dismiss the message
}
}
}
if (isDismissible) {
messageRepository.completeMessage(messageId = messageId)
Expand Down

0 comments on commit dab61a4

Please sign in to comment.