fix: Don't prompt to discard/save unedited scheduled posts (#1034)
Previous code didn't send the language to ComposeActivity when editing a scheduled status so it always appeared to be dirty. This prompted the user to save/discard changes when backing out, even if they hadn't made any changes. Fix this by collecting the language code when fetching scheduled posts and passing it in `ComposeOptions`.
This commit is contained in:
parent
51769773d1
commit
8fe2850229
|
@ -166,6 +166,7 @@ class ScheduledStatusActivity :
|
|||
sensitive = item.params.sensitive,
|
||||
kind = ComposeOptions.ComposeKind.EDIT_SCHEDULED,
|
||||
poll = item.params.poll,
|
||||
language = item.params.language,
|
||||
),
|
||||
)
|
||||
startActivity(intent)
|
||||
|
|
|
@ -28,4 +28,5 @@ data class StatusParams(
|
|||
@Json(name = "spoiler_text") val spoilerText: String,
|
||||
@Json(name = "in_reply_to_id") val inReplyToId: String?,
|
||||
val poll: NewPoll?,
|
||||
val language: String? = null,
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue