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.
regression from https://github.com/tuskyapp/Tusky/pull/4599
https://pug.ninja/@motoridersd/113102603349423738
The problem is,
MediaUploader
is no longer a singleton, so the state is not correctly shared betweenComposeActivity
andSendStatusService.
But it can't be a singleton, sinceMediaUploadApi
(injected intoMediaUploader
) needs to be recreated on account change. Let's share the state in the companion object instead.