Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

continue uploading media after sending post #4662

Merged
merged 1 commit into from
Sep 10, 2024
Merged

Conversation

connyduck
Copy link
Collaborator

regression from #4599

https://pug.ninja/@motoridersd/113102603349423738

The problem is, MediaUploader is no longer a singleton, so the state is not correctly shared between ComposeActivity and SendStatusService. But it can't be a singleton, since MediaUploadApi (injected into MediaUploader) needs to be recreated on account change.
Let's share the state in the companion object instead.

@connyduck connyduck requested review from Tak and charlag September 9, 2024 17:04
@connyduck connyduck merged commit a9d6b60 into develop Sep 10, 2024
3 checks passed
@connyduck connyduck deleted the fix-uploading-media branch September 10, 2024 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants