Handoff media upload (#2947)
* handoff media upload to SendStatusService * fix bugd * improve code * don't check processing state when upload returned 200
This commit is contained in:
parent
9cf949fc2e
commit
abca91a420
7 changed files with 204 additions and 118 deletions
|
@ -86,10 +86,7 @@ class SendStatusBroadcastReceiver : BroadcastReceiver() {
|
|||
warningText = spoiler,
|
||||
visibility = visibility.serverString(),
|
||||
sensitive = false,
|
||||
mediaIds = emptyList(),
|
||||
mediaUris = emptyList(),
|
||||
mediaDescriptions = emptyList(),
|
||||
mediaFocus = emptyList(),
|
||||
media = emptyList(),
|
||||
scheduledAt = null,
|
||||
inReplyToId = citedStatusId,
|
||||
poll = null,
|
||||
|
@ -99,7 +96,6 @@ class SendStatusBroadcastReceiver : BroadcastReceiver() {
|
|||
draftId = -1,
|
||||
idempotencyKey = randomAlphanumericString(16),
|
||||
retries = 0,
|
||||
mediaProcessed = mutableListOf(),
|
||||
language = null,
|
||||
statusId = null,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue