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:
parent
e3230184f0
commit
0c68056753
1 changed files with 1 additions and 1 deletions
|
|
@ -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 }
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue