fix: Parse and restore poll when editing scheduled statuses (#994)

Previous code didn't deserialise the "poll" attribute so it was never
passed to the composer when editing scheduled statuses.

Fixes #991
This commit is contained in:
Nik Clayton 2024-10-10 19:43:48 +02:00 committed by GitHub
parent f3b11d0e81
commit fd0957d829
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -165,6 +165,7 @@ class ScheduledStatusActivity :
scheduledAt = item.scheduledAt,
sensitive = item.params.sensitive,
kind = ComposeOptions.ComposeKind.EDIT_SCHEDULED,
poll = item.params.poll,
),
)
startActivity(intent)

View File

@ -27,4 +27,5 @@ data class StatusParams(
val visibility: Status.Visibility,
@Json(name = "spoiler_text") val spoilerText: String,
@Json(name = "in_reply_to_id") val inReplyToId: String?,
val poll: NewPoll?,
)