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:
parent
f3b11d0e81
commit
fd0957d829
|
@ -165,6 +165,7 @@ class ScheduledStatusActivity :
|
|||
scheduledAt = item.scheduledAt,
|
||||
sensitive = item.params.sensitive,
|
||||
kind = ComposeOptions.ComposeKind.EDIT_SCHEDULED,
|
||||
poll = item.params.poll,
|
||||
),
|
||||
)
|
||||
startActivity(intent)
|
||||
|
|
|
@ -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?,
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue