* feat(chat): add animated GIF rendering with tap-to-play animation Closes #721 * fix(#721): add missing GifImageThumbnail component and format ktlint * fix(analytics): resolve ktlint indentation error in itemsIndexed * feat(chat): add interactive play/pause toggle for animated GIFs * fix(chat): control GIF playback via Animatable start and stop
This commit is contained in:
32 files changed
+370
-118
No files matched your search
@@ -162,11 +162,21 @@ class BillingViewModel : ViewModel() {
|
||||
}
|
||||
val msg =
|
||||
when {
|
||||
resp.requires_action == true && resp.recovery_url != null ->
|
||||
resp.requires_action == true && resp.recovery_url != null -> {
|
||||
"Action required — open: ${resp.recovery_url}"
|
||||
resp.payment_failed == true -> resp.message ?: "Payment failed"
|
||||
resp.ok == true -> "Upgrade successful"
|
||||
else -> resp.message ?: "Upgrade requested"
|
||||
}
|
||||
|
||||
resp.payment_failed == true -> {
|
||||
resp.message ?: "Payment failed"
|
||||
}
|
||||
|
||||
resp.ok == true -> {
|
||||
"Upgrade successful"
|
||||
}
|
||||
|
||||
else -> {
|
||||
resp.message ?: "Upgrade requested"
|
||||
}
|
||||
}
|
||||
_uiState.update { it.copy(isActionInFlight = false, actionMessage = msg) }
|
||||
load()
|
||||
|
||||
Reference in new issue
Block a user