mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Keep the child state in AttachmentsPreviewPresenter up to date (#6039)
This makes the `handleEvents` function capture the reference and be able to check the updated state, unblocking the media sending flow
This commit is contained in:
committed by
GitHub
parent
2c6e2c6c89
commit
eda0aa87ce
+1
-1
@@ -98,7 +98,7 @@ class AttachmentsPreviewPresenter(
|
|||||||
val mediaOptimizationSelectorPresenter = remember {
|
val mediaOptimizationSelectorPresenter = remember {
|
||||||
mediaOptimizationSelectorPresenterFactory.create(mediaAttachment.localMedia)
|
mediaOptimizationSelectorPresenterFactory.create(mediaAttachment.localMedia)
|
||||||
}
|
}
|
||||||
val mediaOptimizationSelectorState = mediaOptimizationSelectorPresenter.present()
|
val mediaOptimizationSelectorState by rememberUpdatedState(mediaOptimizationSelectorPresenter.present())
|
||||||
|
|
||||||
val observableSendState = snapshotFlow { sendActionState.value }
|
val observableSendState = snapshotFlow { sendActionState.value }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user