Skip to content

v7.2.4

Latest

Choose a tag to compare

@PrajwalDhuleCC PrajwalDhuleCC released this 09 Oct 06:39
fa45c9c

New

  • Added CometChatLocalize.getAvailableLanguages(), returning the language codes that have at least one registered translation.
  • Added CometChatLocalize.hasTranslation(key, language?), reporting whether a key resolves in that language or the fallback. Useful because lookup is an exact match with no base-language step, so registering fr and selecting fr-ca renders in English silently.

Enhancements

  • Added theme defaults for --cometchat-audios-bubble-max-width, --cometchat-files-bubble-max-width and --cometchat-poll-bubble-max-width, plus a new --cometchat-videos-bubble-single-tile-min-width. These previously existed only as inline var() fallbacks and could not be overridden.

Fixes

  • Fixed attachments failing with INVALID_MEDIA_OBJECT when the UI Kit renders inside an iframe. The SDK validates files with instanceof Blob against its own realm; sendMediaMessage now re-wraps a file from another realm, covering the picker, drag-and-drop, paste and voice notes.
  • Fixed audio, file and poll bubbles overflowing their row and clipping the download and option controls below 480px. Card floors are dropped and ceilings become percentages at that width; audio, poll and the single video tile keep a 200px floor.
  • Fixed the reply preview rendering poll questions and custom message text unescaped through dangerouslySetInnerHTML. Non-text labels are now escaped for &, < and >.
  • Fixed CometChatMessageComposer rendering an attachment button that opened an empty menu when all four attachment types were disabled. The button and its wrapper are now hidden; custom attachmentOptions are unaffected.
  • Fixed pin, save and thread subscription options appearing on outgoing messages in CometChatAIAssistantChat, where they do not apply. Regular conversations are unchanged.