@@ -198,12 +198,6 @@ private val LocalReadCountEnabled = compositionLocalOf<Boolean> {
198198 " Make sure to wrap all usages of Stream components in a ChatTheme." ,
199199 )
200200}
201- private val LocalMessageDateSeparatorTheme = compositionLocalOf<MessageDateSeparatorTheme > {
202- error(" No MessageDateSeparatorTheme provided! Make sure to wrap all usages of Stream components in a ChatTheme." )
203- }
204- private val LocalMessageUnreadSeparatorTheme = compositionLocalOf<MessageUnreadSeparatorTheme > {
205- error(" No MessageUnreadSeparatorTheme provided! Make sure to wrap all usages of Stream components in a ChatTheme." )
206- }
207201private val LocalMessageComposerTheme = compositionLocalOf<MessageComposerTheme > {
208202 error(" No MessageComposerTheme provided! Make sure to wrap all usages of Stream components in a ChatTheme." )
209203}
@@ -284,13 +278,10 @@ private val LocalChatConfig = compositionLocalOf<ChatConfig> {
284278 * @param messageAlignmentProvider [MessageAlignmentProvider] Used to provide message alignment for the given message.
285279 * @param messageOptionsTheme [MessageOptionsTheme] Theme for the message option list in the selected message menu.
286280 * For theming the reaction option list in the same menu, use [reactionOptionsTheme].
287- * @param messageOptionsUserReactionAlignment Alignment of the user reaction inside the message options.
288281 * @param videoThumbnailsEnabled Dictates whether video thumbnails will be displayed inside video previews.
289282 * @param streamCdnImageResizing Sets the strategy for resizing images hosted on Stream's CDN. Disabled by default,
290283 * set [StreamCdnImageResizing.imageResizingEnabled] to true if you wish to enable resizing images. Note that resizing
291284 * applies only to images hosted on Stream's CDN which contain the original height (oh) and width (ow) query parameters.
292- * @param messageDateSeparatorTheme Theme of the message date separator.
293- * @param messageUnreadSeparatorTheme Theme of the message unread separator.
294285 * @param messageComposerTheme Theme of the message composer.
295286 * @param attachmentPickerTheme Theme of the attachment picker.
296287 * @param streamMediaRecorder Used for recording audio messages.
@@ -349,14 +340,6 @@ public fun ChatTheme(
349340 videoThumbnailsEnabled : Boolean = true,
350341 streamCdnImageResizing : StreamCdnImageResizing = StreamCdnImageResizing .defaultStreamCdnImageResizing(),
351342 readCountEnabled : Boolean = true,
352- messageDateSeparatorTheme : MessageDateSeparatorTheme = MessageDateSeparatorTheme .defaultTheme(
353- typography = typography,
354- colors = colors,
355- ),
356- messageUnreadSeparatorTheme : MessageUnreadSeparatorTheme = MessageUnreadSeparatorTheme .defaultTheme(
357- typography = typography,
358- colors = colors,
359- ),
360343 messageComposerTheme : MessageComposerTheme = MessageComposerTheme .defaultTheme(
361344 isInDarkMode = isInDarkMode,
362345 typography = typography,
@@ -404,8 +387,6 @@ public fun ChatTheme(
404387 LocalMessagePreviewFormatter provides messagePreviewFormatter,
405388 LocalMessageTextFormatter provides messageTextFormatter,
406389 LocalSearchResultNameFormatter provides searchResultNameFormatter,
407- LocalMessageDateSeparatorTheme provides messageDateSeparatorTheme,
408- LocalMessageUnreadSeparatorTheme provides messageUnreadSeparatorTheme,
409390 LocalMessageComposerTheme provides messageComposerTheme,
410391 LocalAttachmentPickerTheme provides attachmentPickerTheme,
411392 LocalStreamImageLoader provides imageLoaderFactory.imageLoader(LocalContext .current.applicationContext),
@@ -666,22 +647,6 @@ public object ChatTheme {
666647 @ReadOnlyComposable
667648 get() = LocalReadCountEnabled .current
668649
669- /* *
670- * Retrieves the current [MessageDateSeparatorTheme] at the call site's position in the hierarchy.
671- */
672- public val messageDateSeparatorTheme: MessageDateSeparatorTheme
673- @Composable
674- @ReadOnlyComposable
675- get() = LocalMessageDateSeparatorTheme .current
676-
677- /* *
678- * Retrieves the current [MessageUnreadSeparatorTheme] at the call site's position in the hierarchy.
679- */
680- public val messageUnreadSeparatorTheme: MessageUnreadSeparatorTheme
681- @Composable
682- @ReadOnlyComposable
683- get() = LocalMessageUnreadSeparatorTheme .current
684-
685650 /* *
686651 * Retrieves the current [MessageComposerTheme] at the call site's position in the hierarchy.
687652 */
0 commit comments