Update metro to v0.11.0 (#6245)

* Update metro to v0.11.0

* Fix `@AssistedInject` usages

Now the injected variables in the factories must match the names in the constructors

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
This commit is contained in:
renovate[bot] 2026-02-25 16:19:47 +01:00 committed by GitHub
parent fe4554703c
commit 89a6f5a7bf
11 changed files with 23 additions and 23 deletions

View file

@ -37,7 +37,7 @@ interface VoiceMessagePresenterModule {
@AssistedInject
class VoiceMessagePresenter(
voiceMessagePresenterFactory: VoiceMessagePresenterFactory,
@Assisted private val item: MediaItem.Voice,
@Assisted private val content: MediaItem.Voice,
) : Presenter<VoiceMessageState> {
@AssistedFactory
fun interface Factory : MediaItemPresenterFactory<MediaItem.Voice, VoiceMessageState> {
@ -45,10 +45,10 @@ class VoiceMessagePresenter(
}
private val presenter = voiceMessagePresenterFactory.createVoiceMessagePresenter(
eventId = item.eventId,
mediaSource = item.mediaSource,
mimeType = item.mediaInfo.mimeType,
filename = item.mediaInfo.filename,
eventId = content.eventId,
mediaSource = content.mediaSource,
mimeType = content.mediaInfo.mimeType,
filename = content.mediaInfo.filename,
// TODO Get the duration for the fallback?
duration = Duration.ZERO,
)