You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
v5.4.0
New
Added right-to-left layout support across the UI Kit. Set the direction for the whole kit with UIKitSettings.set(layoutDirection:) at initialization, or change it at runtime with CometChatUIKit.set(layoutDirection:). Without a setting, the UI Kit follows the app's direction.
Added set(layoutDirection:) to individual components, so a single screen can use a different direction from the rest of the UI Kit.
Added full mirroring of every component in right-to-left layouts. This covers conversation, user and group lists, the message header, message bubbles, the message composer and its attachment tray, voice recorder and rich text toolbar, context menus and action sheets, reactions, polls, search, calls, call logs, AI assistant views and the notification feed.
Added per-message text direction, so each message's text follows its own language. An English message stays left to right in an Arabic chat, and an Arabic message stays right to left in an English chat.
Enhancements
Improved how names, digits and dates sit inside messages. They are now kept separate from the surrounding text with Unicode directional isolates (U+2068 and U+2069), and digits and dates follow the UI Kit's locale. Text the UI Kit builds, such as the last message preview from getLastConversationMessage, can contain these characters.
Updated the "last seen" date in the message header to use each language's own date and time format instead of a fixed English pattern. In English it now reads "Oct 27 at 9:03 AM" instead of "27 Oct at 9:03 AM", and British English shows 24-hour time.
Updated directional icons, such as back, send, reply in thread and call direction arrows, to mirror in right-to-left layouts.
Kept audio and video players and their playback controls left to right in right-to-left layouts, matching platform conventions.
Updated the message composer so a paragraph's direction follows the first language typed rather than the active keyboard. Switching keyboards no longer flips a line that already has text.
Added VoiceOver labels, traits and hints to the AI assistant's suggestion chips.
Fixes
Fixed untranslated text in all 18 supported languages. Previously, some labels, alerts, the date picker, the voice recorder, ban, kick and unban confirmations and the incoming call type appeared in English or as raw keys.
Fixed call log times showing Latin "am"/"pm" in Arabic.
Fixed AI replies streaming in other chats stopping when a chat was closed or reopened.
Fixed AI reply text staying in memory after a chat was closed partway through a reply.
Fixed a voice note recorded and sent while offline showing the "Available when online" placeholder instead of the voice note.
Fixed a just-sent voice note not playing on a device, with its timer stuck at 00:00, when offline support was enabled.
Fixed the "Not sent yet" and "Not sent. Tap to retry" captions not appearing, or being cut off, under messages that hadn't been sent yet.
Fixed the Retry/Delete long-press menu of an unsent message running off the screen edge in right-to-left layouts.