Resolve display names in mentions in real time (#3051)

* Resolve display names in mentions in real time

* Use `LocalRoomMemberProfilesCache` to avoid having to implement `TextMessagePresenter`

* Also use local composition provider for `MentionSpanProvider`
This commit is contained in:
Jorge Martin Espinosa
2024-06-21 11:57:36 +02:00
committed by GitHub
parent 981dad71a3
commit 310a7fc229
24 changed files with 431 additions and 142 deletions
+7 -1
View File
@@ -222,7 +222,13 @@ Compose:
CompositionLocalAllowlist:
active: true
# You can optionally define a list of CompositionLocals that are allowed here
allowedCompositionLocals: LocalCompoundColors, LocalSnackbarDispatcher, LocalCameraPositionState, LocalTimelineItemPresenterFactories
allowedCompositionLocals:
- LocalCompoundColors
- LocalSnackbarDispatcher
- LocalCameraPositionState
- LocalTimelineItemPresenterFactories
- LocalRoomMemberProfilesCache
- LocalMentionSpanProvider
CompositionLocalNaming:
active: true
ContentEmitterReturningValues: