Skip to content

v6.4.0

Choose a tag to compare

@ashfaqcometchat ashfaqcometchat released this 01 Dec 10:29
· 3 commits to v6 since this release
7abd97e

v6.4.0

New

  • Added full right-to-left (RTL) support to the Kotlin and Jetpack Compose UI Kits. Every component mirrors its layout, icons and alignment when the app runs in an RTL language such as Arabic, Hebrew, Persian or Urdu.
  • Added the CometChatLayoutDirection setting (AUTO, LTR, RTL), which controls the kit's direction independently of the app's language. Set it for the whole kit with UIKitSettingsBuilder.setLayoutDirection(...) or CometChatUIKit.setLayoutDirection(...), or per component with the optional layoutDirection parameter in Compose and setCometChatLayoutDirection(...) or app:cometchatLayoutDirection in Views. Existing Compose calls, and libraries compiled against 6.3.0, keep working without changes.
  • Added translated group action messages in all 19 supported languages, covering members joining, leaving, being added, removed or banned, or given a new role. The logged-in user appears as "You".

Enhancements

  • Improved number display so that dates, times, counts, file sizes, recorder timers and media durations use the app language's own digits, including Arabic-Indic digits for Arabic and Devanagari digits for Hindi.
  • Improved mixed-direction text so that names, numbers, links and English words inside an RTL sentence keep their own reading order, and code blocks always read left to right.
  • Improved list rows so that a mirrored row keeps each text in its own direction, and kit labels sit at the row's start.
  • Updated the file bubble subtitle to show the sent date and the file size.
  • Kept audio and video players, logos and flags left to right in RTL layouts, matching platform conventions.
  • Translated the remaining English text across both kits, including the notification feed, call screens, last-seen status, member scope badges, the Change Role sheet and dialog labels, and refined the Arabic wording.
  • Updated CometChatLocalize.setLocale(...) to change only the language. Layout direction now comes only from the layout-direction setting or the app.

Fixes

  • Fixed opening a search result in the Compose message list, which jumped to the matching message and then scrolled on to the newest message.
  • Fixed edited long text messages collapsing into a narrow bubble.
  • Fixed missed calls not being styled as missed in the call bubble.
  • Fixed a crash in the Views media recorder.
  • Fixed poll questions, poll options, menus, search, the search field hint, the Conversation Summary title, the composer preview strip and empty-field hints appearing on the wrong side in RTL layouts.
  • Fixed the sender name prefix in Compose conversation and saved-message rows touching the message text in RTL layouts.
  • Fixed dates and times staying in English after the app language was switched to Arabic.
  • Fixed a crash when the device locale could not be resolved while choosing digits.
  • Fixed TalkBack not reading the Compose kit snackbar.
  • Fixed offline notices and download messages appearing as system toasts instead of kit snackbars that follow the component's layout direction.

Deprecations

  • Deprecated CometChatLocalize.isRtl(context), which reports the app's direction rather than the kit's resolved direction. Read the view's or composition's direction instead (View.layoutDirection, LocalLayoutDirection). It will be removed in the next major version.

Breaking Changes

  • Renamed the left/right parameters to start/end on the Views kit spacing setters: setBubbleMargin, setLeftBubbleMargin and setRightBubbleMargin (CometChatMessageList, CometChatThreadHeader), setDatePadding (CometChatDate), setMessagePadding (CometChatMessageBubble) and setTextViewMargin (CometChatTextBubble, now startMargin/endMargin). The values now apply to the start and end edges, so they swap sides in RTL layouts. Calls that pass these values by position keep compiling.