Skip to content

Commit

Permalink
fix(core/send_override): saveable snap infinite duration
Browse files Browse the repository at this point in the history
  • Loading branch information
rhunk committed Aug 27, 2024
1 parent 7c5658b commit adfb581
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ class SendOverride : Feature("Send Override") {
)
Slider(
modifier = Modifier.fillMaxWidth(),
enabled = selectedType != "SAVEABLE_SNAP",
value = customDuration,
onValueChange = {
customDuration = it
Expand All @@ -355,7 +356,7 @@ class SendOverride : Feature("Send Override") {
}
Button(onClick = {
alertDialog.dismiss()
if (sendMedia(selectedType, convertDuration(customDuration))) {
if (sendMedia(selectedType, if (selectedType != "SAVEABLE_SNAP" ) convertDuration(customDuration) else null)) {
event.invokeOriginal()
}
}) {
Expand Down

0 comments on commit adfb581

Please sign in to comment.