@cometchat/chat-uikit-react-native 4.3.10 → 4.3.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (558) hide show
  1. package/lib/AI/AIAssistBot/AIAssistBotView.js +4 -4
  2. package/lib/AI/AIAssistBot/AIAssistBotView.js.map +1 -1
  3. package/lib/CometChatAddMembers/CometChatAddMembers.js +22 -13
  4. package/lib/CometChatAddMembers/CometChatAddMembers.js.map +1 -1
  5. package/lib/CometChatBannedMembers/CometChatBannedMembers.d.ts +3 -0
  6. package/lib/CometChatBannedMembers/CometChatBannedMembers.js.map +1 -1
  7. package/lib/CometChatConversations/CometChatConversations.js +151 -25
  8. package/lib/CometChatConversations/CometChatConversations.js.map +1 -1
  9. package/lib/CometChatConversations/ConversationsConfiguration.js +15 -5
  10. package/lib/CometChatConversations/ConversationsConfiguration.js.map +1 -1
  11. package/lib/CometChatDetails/CometChatDetails.js +13 -9
  12. package/lib/CometChatDetails/CometChatDetails.js.map +1 -1
  13. package/lib/CometChatDetails/listners.js +41 -19
  14. package/lib/CometChatDetails/listners.js.map +1 -1
  15. package/lib/CometChatGroupMembers/CometChatGroupMembers.js +24 -7
  16. package/lib/CometChatGroupMembers/CometChatGroupMembers.js.map +1 -1
  17. package/lib/CometChatGroupMembers/GroupMemberConfiguration.js +14 -2
  18. package/lib/CometChatGroupMembers/GroupMemberConfiguration.js.map +1 -1
  19. package/lib/CometChatGroupsWithMessages/CometChatGroupsWithMessages.js +2 -2
  20. package/lib/CometChatGroupsWithMessages/CometChatGroupsWithMessages.js.map +1 -1
  21. package/lib/CometChatMessageComposer/CometChatMessageComposer.js +14 -6
  22. package/lib/CometChatMessageComposer/CometChatMessageComposer.js.map +1 -1
  23. package/lib/CometChatMessageHeader/CometChatMessageHeader.js +4 -9
  24. package/lib/CometChatMessageHeader/CometChatMessageHeader.js.map +1 -1
  25. package/lib/CometChatMessageList/CometChatMessageList.js +92 -58
  26. package/lib/CometChatMessageList/CometChatMessageList.js.map +1 -1
  27. package/lib/CometChatMessageList/MessageListConfiguration.js +7 -1
  28. package/lib/CometChatMessageList/MessageListConfiguration.js.map +1 -1
  29. package/lib/CometChatMessages/CometChatMessages.js +1 -1
  30. package/lib/CometChatTransferOwnership/CometChatTransferOwnership.js +1 -1
  31. package/lib/CometChatTransferOwnership/CometChatTransferOwnership.js.map +1 -1
  32. package/lib/CometChatUsers/CometChatUsers.js +2 -2
  33. package/lib/CometChatUsers/CometChatUsers.js.map +1 -1
  34. package/lib/CometChatUsersWithMessages/CometChatUsersWithMessages.js +2 -2
  35. package/lib/CometChatUsersWithMessages/CometChatUsersWithMessages.js.map +1 -1
  36. package/lib/calls/CallEvents.d.ts +1 -1
  37. package/lib/calls/CallEvents.js +1 -1
  38. package/lib/calls/CallEvents.js.map +1 -1
  39. package/lib/calls/CallingExtentionDecorator.d.ts +3 -2
  40. package/lib/calls/CallingExtentionDecorator.js +1 -1
  41. package/lib/calls/CallingExtentionDecorator.js.map +1 -1
  42. package/lib/calls/CometChatCallButtons/CometChatCallButtons.js +5 -2
  43. package/lib/calls/CometChatCallButtons/CometChatCallButtons.js.map +1 -1
  44. package/lib/calls/CometChatCallLogs/CometChatCallLogs.js +1 -1
  45. package/lib/calls/CometChatCallLogs/CometChatCallLogs.js.map +1 -1
  46. package/lib/calls/CometChatIncomingCall/CometChatIncomingCall.js +1 -1
  47. package/lib/calls/CometChatIncomingCall/CometChatIncomingCall.js.map +1 -1
  48. package/lib/calls/CometChatOutgoingCall/CometChatOutgoingCall.js +2 -2
  49. package/lib/calls/CometChatOutgoingCall/CometChatOutgoingCall.js.map +1 -1
  50. package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.d.ts +1 -1
  51. package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.js +3 -0
  52. package/lib/extensions/CollaborativeDocument/CollaborativeDocumentExtensionDecorator.js.map +1 -1
  53. package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.d.ts +1 -1
  54. package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.js +3 -0
  55. package/lib/extensions/CollaborativeWhiteboard/CollaborativeWhiteboardExtensionDecorator.js.map +1 -1
  56. package/lib/extensions/LinkPreview/LinkPreviewExtentionDecorator.js.map +1 -1
  57. package/lib/extensions/MessageTranslation/MessageTranslationDecorator.js.map +1 -1
  58. package/lib/extensions/Polls/PollsDecorator.d.ts +1 -2
  59. package/lib/extensions/Polls/PollsDecorator.js +7 -10
  60. package/lib/extensions/Polls/PollsDecorator.js.map +1 -1
  61. package/lib/extensions/SmartReplies/SmartRepliesDecorator.js +2 -2
  62. package/lib/extensions/SmartReplies/SmartRepliesDecorator.js.map +1 -1
  63. package/lib/extensions/Stickers/StickersExtensionDecorator.d.ts +1 -1
  64. package/lib/extensions/Stickers/StickersExtensionDecorator.js +7 -1
  65. package/lib/extensions/Stickers/StickersExtensionDecorator.js.map +1 -1
  66. package/lib/extensions/TextModeration/TextModerationExtensionDecorator.d.ts +1 -1
  67. package/lib/extensions/TextModeration/TextModerationExtensionDecorator.js.map +1 -1
  68. package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.js +1 -1
  69. package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.js.map +1 -1
  70. package/lib/index.d.ts +2 -2
  71. package/lib/index.js +4 -2
  72. package/lib/index.js.map +1 -1
  73. package/lib/shared/CometChatUiKit/CometChatUIKit.d.ts +4 -2
  74. package/lib/shared/CometChatUiKit/CometChatUIKit.js +27 -10
  75. package/lib/shared/CometChatUiKit/CometChatUIKit.js.map +1 -1
  76. package/lib/shared/CometChatUiKit/UIKitSettings.d.ts +4 -3
  77. package/lib/shared/CometChatUiKit/UIKitSettings.js +3 -2
  78. package/lib/shared/CometChatUiKit/UIKitSettings.js.map +1 -1
  79. package/lib/shared/base/Types.d.ts +8 -0
  80. package/lib/shared/base/index.d.ts +2 -2
  81. package/lib/shared/base/index.js.map +1 -1
  82. package/lib/shared/constants/UIKitConstants.d.ts +2 -10
  83. package/lib/shared/constants/UIKitConstants.js +2 -2
  84. package/lib/shared/constants/UIKitConstants.js.map +1 -1
  85. package/lib/shared/events/CometChatUIEventHandler/CometChatUIEventHandler.js +3 -0
  86. package/lib/shared/events/CometChatUIEventHandler/CometChatUIEventHandler.js.map +1 -1
  87. package/lib/shared/events/CometChatUIEventHandler/Listener.d.ts +3 -3
  88. package/lib/shared/events/CometChatUIEventHandler/Listener.js +4 -4
  89. package/lib/shared/events/CometChatUIEventHandler/Listener.js.map +1 -1
  90. package/lib/shared/formatters/CometChatMentionsFormatter/CometChatMentionsFormatter.js +3 -1
  91. package/lib/shared/formatters/CometChatMentionsFormatter/CometChatMentionsFormatter.js.map +1 -1
  92. package/lib/shared/formatters/CometChatTextFormatter.js.map +1 -1
  93. package/lib/shared/framework/DataSourceDecorator.d.ts +2 -3
  94. package/lib/shared/framework/DataSourceDecorator.js.map +1 -1
  95. package/lib/shared/framework/MessageDataSource.js +38 -16
  96. package/lib/shared/framework/MessageDataSource.js.map +1 -1
  97. package/lib/shared/index.d.ts +4 -4
  98. package/lib/shared/index.js +3 -3
  99. package/lib/shared/index.js.map +1 -1
  100. package/lib/shared/libs/VideoPlayer/Video.js +4 -5
  101. package/lib/shared/libs/VideoPlayer/Video.js.map +1 -1
  102. package/lib/shared/modals/CometChatMessageTemplate.js +8 -1
  103. package/lib/shared/modals/CometChatMessageTemplate.js.map +1 -1
  104. package/lib/shared/modals/InteractiveData/InteractiveElements/index.d.ts +1 -0
  105. package/lib/shared/modals/InteractiveData/InteractiveElements/index.js +1 -0
  106. package/lib/shared/modals/InteractiveData/InteractiveElements/index.js.map +1 -1
  107. package/lib/shared/modals/InteractiveData/InteractiveEntities/ElementEntity.js +1 -2
  108. package/lib/shared/modals/InteractiveData/InteractiveEntities/ElementEntity.js.map +1 -1
  109. package/lib/shared/modals/InteractiveData/index.d.ts +1 -1
  110. package/lib/shared/modals/InteractiveData/index.js +1 -1
  111. package/lib/shared/modals/InteractiveData/index.js.map +1 -1
  112. package/lib/shared/modals/index.d.ts +2 -2
  113. package/lib/shared/modals/index.js +2 -2
  114. package/lib/shared/modals/index.js.map +1 -1
  115. package/lib/shared/resources/CometChatLocalize/CometChatLocalize.d.ts +28 -0
  116. package/lib/shared/resources/CometChatLocalize/resources/ar/translation.json +3 -1
  117. package/lib/shared/resources/CometChatLocalize/resources/de/translation.json +3 -1
  118. package/lib/shared/resources/CometChatLocalize/resources/en/translation.json +3 -1
  119. package/lib/shared/resources/CometChatLocalize/resources/es/translation.json +3 -1
  120. package/lib/shared/resources/CometChatLocalize/resources/fr/translation.json +3 -1
  121. package/lib/shared/resources/CometChatLocalize/resources/hi/translation.json +3 -1
  122. package/lib/shared/resources/CometChatLocalize/resources/hu/translation.json +3 -1
  123. package/lib/shared/resources/CometChatLocalize/resources/lt/translation.json +3 -1
  124. package/lib/shared/resources/CometChatLocalize/resources/ms/translation.json +3 -1
  125. package/lib/shared/resources/CometChatLocalize/resources/pt/translation.json +3 -1
  126. package/lib/shared/resources/CometChatLocalize/resources/ru/translation.json +3 -1
  127. package/lib/shared/resources/CometChatLocalize/resources/sv/translation.json +3 -1
  128. package/lib/shared/resources/CometChatLocalize/resources/zh/translation.json +3 -1
  129. package/lib/shared/resources/CometChatLocalize/resources/zh-tw/translation.json +3 -1
  130. package/lib/shared/utils/CometChatMessageHelper/index.d.ts +1 -0
  131. package/lib/shared/utils/CometChatMessageHelper/index.js +3 -0
  132. package/lib/shared/utils/CometChatMessageHelper/index.js.map +1 -1
  133. package/lib/shared/utils/MessageUtils.d.ts +1 -1
  134. package/lib/shared/utils/MessageUtils.js +6 -1
  135. package/lib/shared/utils/MessageUtils.js.map +1 -1
  136. package/lib/shared/utils/PermissionUtil.js +1 -1
  137. package/lib/shared/utils/PermissionUtil.js.map +1 -1
  138. package/lib/shared/views/CometChatDateTimePicker/CometChatDateTimePicker.d.ts +1 -1
  139. package/lib/shared/views/CometChatDateTimePicker/CometChatDateTimePicker.js.map +1 -1
  140. package/lib/shared/views/CometChatFormBubble/CometChatFormBubble.js +2 -3
  141. package/lib/shared/views/CometChatFormBubble/CometChatFormBubble.js.map +1 -1
  142. package/lib/shared/views/CometChatList/CometChatList.js +37 -18
  143. package/lib/shared/views/CometChatList/CometChatList.js.map +1 -1
  144. package/lib/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.js +19 -4
  145. package/lib/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.js.map +1 -1
  146. package/lib/shared/views/CometChatMessageBubble/CometChatMessageBubble.js.map +1 -1
  147. package/lib/shared/views/CometChatReactions/CometChatReactions.d.ts +1 -1
  148. package/lib/shared/views/CometChatSchedulerBubble/CometChatSchedulerBubble.d.ts +1 -1
  149. package/lib/shared/views/CometChatSchedulerBubble/CometChatSchedulerBubble.js +3 -5
  150. package/lib/shared/views/CometChatSchedulerBubble/CometChatSchedulerBubble.js.map +1 -1
  151. package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.js +1 -1
  152. package/lib/shared/views/CometChatVideoBubble/CometChatVideoBubble.js.map +1 -1
  153. package/lib/shared/views/index.d.ts +2 -1
  154. package/lib/shared/views/index.js +2 -1
  155. package/lib/shared/views/index.js.map +1 -1
  156. package/package.json +1 -1
  157. package/src/AI/AIAssistBot/AIAssistBotView.tsx +4 -4
  158. package/src/CometChatAddMembers/CometChatAddMembers.tsx +30 -20
  159. package/src/CometChatConversations/CometChatConversations.tsx +14 -12
  160. package/src/CometChatDetails/listners.ts +56 -35
  161. package/src/CometChatGroupMembers/CometChatGroupMembers.tsx +5 -5
  162. package/src/CometChatMessageComposer/CometChatMessageComposer.tsx +4 -3
  163. package/src/CometChatMessageHeader/CometChatMessageHeader.tsx +41 -50
  164. package/src/CometChatMessageList/CometChatMessageList.tsx +55 -35
  165. package/src/CometChatUsers/CometChatUsers.tsx +2 -2
  166. package/src/calls/CometChatCallButtons/CometChatCallButtons.tsx +2 -1
  167. package/src/calls/CometChatCallLogs/CometChatCallLogs.tsx +6 -6
  168. package/src/extensions/SmartReplies/SmartRepliesDecorator.tsx +2 -1
  169. package/src/extensions/Stickers/StickersExtensionDecorator.tsx +2 -1
  170. package/src/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.tsx +6 -6
  171. package/src/extensions/ThumbnailGeneration/resources/index.ts +2 -2
  172. package/src/shared/CometChatUiKit/CometChatUIKit.ts +8 -8
  173. package/src/shared/resources/CometChatLocalize/resources/ar/translation.json +3 -2
  174. package/src/shared/resources/CometChatLocalize/resources/de/translation.json +3 -1
  175. package/src/shared/resources/CometChatLocalize/resources/en/translation.json +3 -1
  176. package/src/shared/resources/CometChatLocalize/resources/es/translation.json +3 -1
  177. package/src/shared/resources/CometChatLocalize/resources/fr/translation.json +3 -1
  178. package/src/shared/resources/CometChatLocalize/resources/hi/translation.json +3 -1
  179. package/src/shared/resources/CometChatLocalize/resources/hu/translation.json +3 -1
  180. package/src/shared/resources/CometChatLocalize/resources/lt/translation.json +3 -1
  181. package/src/shared/resources/CometChatLocalize/resources/ms/translation.json +3 -1
  182. package/src/shared/resources/CometChatLocalize/resources/pt/translation.json +3 -2
  183. package/src/shared/resources/CometChatLocalize/resources/ru/translation.json +3 -1
  184. package/src/shared/resources/CometChatLocalize/resources/sv/translation.json +3 -1
  185. package/src/shared/resources/CometChatLocalize/resources/zh/translation.json +3 -1
  186. package/src/shared/resources/CometChatLocalize/resources/zh-tw/translation.json +3 -1
  187. package/src/shared/utils/CometChatMessageHelper/index.ts +4 -0
  188. package/src/shared/utils/MessageUtils.tsx +14 -5
  189. package/src/shared/utils/PermissionUtil.ts +1 -1
  190. package/src/shared/views/CometChatImageBubble/CometChatImageBubble.tsx +10 -3
  191. package/src/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.tsx +20 -4
  192. package/src/shared/views/CometChatVideoBubble/CometChatVideoBubble.tsx +8 -1
  193. package/src/shared/views/CometChatVideoBubble/VideoBubbleStyle.ts +1 -1
  194. package/lib/AI/AIAssistBot/resources/CloseIcon.png +0 -0
  195. package/lib/AI/AIConversationSummary/resources/close.png +0 -0
  196. package/lib/AI/resources/ai-empty.png +0 -0
  197. package/lib/AI/resources/ai-error.png +0 -0
  198. package/lib/AI/resources/spineer.png +0 -0
  199. package/lib/CometChatAddMembers/AddMembersConfiguration.d.ts +0 -43
  200. package/lib/CometChatBannedMembers/BannedMembersConfiguration.d.ts +0 -46
  201. package/lib/CometChatBannedMembers/resources/clear.png +0 -0
  202. package/lib/CometChatContacts/Header.d.ts +0 -31
  203. package/lib/CometChatConversations/CometChatConversations.d.ts +0 -199
  204. package/lib/CometChatConversations/ConversationsConfiguration.d.ts +0 -96
  205. package/lib/CometChatConversations/resources/back.png +0 -0
  206. package/lib/CometChatConversations/resources/blue-double-tick-icon.png +0 -0
  207. package/lib/CometChatConversations/resources/close.png +0 -0
  208. package/lib/CometChatConversations/resources/delete.png +0 -0
  209. package/lib/CometChatConversations/resources/error.png +0 -0
  210. package/lib/CometChatConversations/resources/grey-double-tick-icon.png +0 -0
  211. package/lib/CometChatConversations/resources/grey-tick-icon.png +0 -0
  212. package/lib/CometChatConversations/resources/new.png +0 -0
  213. package/lib/CometChatConversations/resources/password.png +0 -0
  214. package/lib/CometChatConversations/resources/private.png +0 -0
  215. package/lib/CometChatConversations/resources/rightTick.png +0 -0
  216. package/lib/CometChatConversations/resources/sending.png +0 -0
  217. package/lib/CometChatConversations/resources/spineer.png +0 -0
  218. package/lib/CometChatConversationsWithMessages/resources/start.png +0 -0
  219. package/lib/CometChatCreateGroup/resources/close.png +0 -0
  220. package/lib/CometChatCreateGroup/resources/rightTick.png +0 -0
  221. package/lib/CometChatCreateGroup/resources/warning.png +0 -0
  222. package/lib/CometChatDetails/CometChatDetails.d.ts +0 -281
  223. package/lib/CometChatDetails/DetailsConfiguration.d.ts +0 -36
  224. package/lib/CometChatDetails/resources/Back.png +0 -0
  225. package/lib/CometChatDetails/resources/close.png +0 -0
  226. package/lib/CometChatDetails/resources/password.png +0 -0
  227. package/lib/CometChatDetails/resources/private.png +0 -0
  228. package/lib/CometChatDetails/resources/right-arrow.png +0 -0
  229. package/lib/CometChatGroupMembers/CometChatGroupMembers.d.ts +0 -96
  230. package/lib/CometChatGroupMembers/GroupMemberConfiguration.d.ts +0 -63
  231. package/lib/CometChatGroupMembers/resources/banIcon.png +0 -0
  232. package/lib/CometChatGroupMembers/resources/check.png +0 -0
  233. package/lib/CometChatGroupMembers/resources/downArrowIcon.png +0 -0
  234. package/lib/CometChatGroupMembers/resources/kickIcon.png +0 -0
  235. package/lib/CometChatGroupMembers/resources/rightTick.png +0 -0
  236. package/lib/CometChatGroups/CometChatGroups.d.ts +0 -141
  237. package/lib/CometChatGroups/GroupsConfiguration.d.ts +0 -74
  238. package/lib/CometChatGroups/resources/back.png +0 -0
  239. package/lib/CometChatGroups/resources/check.png +0 -0
  240. package/lib/CometChatGroups/resources/close.png +0 -0
  241. package/lib/CometChatGroups/resources/create.png +0 -0
  242. package/lib/CometChatGroups/resources/more.png +0 -0
  243. package/lib/CometChatGroups/resources/password.png +0 -0
  244. package/lib/CometChatGroups/resources/private.png +0 -0
  245. package/lib/CometChatGroups/resources/rightTick.png +0 -0
  246. package/lib/CometChatGroups/resources/search.png +0 -0
  247. package/lib/CometChatGroups/resources/spineer.png +0 -0
  248. package/lib/CometChatGroupsWithMessages/resources/write.png +0 -0
  249. package/lib/CometChatJoinProtectedGroup/resources/close.png +0 -0
  250. package/lib/CometChatJoinProtectedGroup/resources/rightTick.png +0 -0
  251. package/lib/CometChatMessageComposer/CometChatMessageComposer.d.ts +0 -269
  252. package/lib/CometChatMessageComposer/MessageComposerConfiguration.d.ts +0 -47
  253. package/lib/CometChatMessageComposer/resources/Info.png +0 -0
  254. package/lib/CometChatMessageComposer/resources/ai.png +0 -0
  255. package/lib/CometChatMessageComposer/resources/circle_add.png +0 -0
  256. package/lib/CometChatMessageComposer/resources/close.png +0 -0
  257. package/lib/CometChatMessageComposer/resources/emoji.png +0 -0
  258. package/lib/CometChatMessageComposer/resources/heart.png +0 -0
  259. package/lib/CometChatMessageComposer/resources/image.png +0 -0
  260. package/lib/CometChatMessageComposer/resources/microphone.png +0 -0
  261. package/lib/CometChatMessageComposer/resources/send_message.png +0 -0
  262. package/lib/CometChatMessageComposer/resources/stickers.png +0 -0
  263. package/lib/CometChatMessageHeader/CometChatMessageHeader.d.ts +0 -150
  264. package/lib/CometChatMessageHeader/MessageHeaderConfiguration.d.ts +0 -37
  265. package/lib/CometChatMessageHeader/resources/Back.png +0 -0
  266. package/lib/CometChatMessageHeader/resources/password.png +0 -0
  267. package/lib/CometChatMessageHeader/resources/private.png +0 -0
  268. package/lib/CometChatMessageInformation/CometChatMessageInformation.d.ts +0 -36
  269. package/lib/CometChatMessageInformation/resources/Spineer.png +0 -0
  270. package/lib/CometChatMessageList/CometChatMessageList.d.ts +0 -75
  271. package/lib/CometChatMessageList/MessageListConfiguration.d.ts +0 -101
  272. package/lib/CometChatMessageList/resources/back.png +0 -0
  273. package/lib/CometChatMessageList/resources/close.png +0 -0
  274. package/lib/CometChatMessageList/resources/downArrowIcon.png +0 -0
  275. package/lib/CometChatMessageList/resources/leftarrowcurve.png +0 -0
  276. package/lib/CometChatMessageList/resources/rightArrowIcon.png +0 -0
  277. package/lib/CometChatMessageList/resources/rightarrowcurve.png +0 -0
  278. package/lib/CometChatMessageList/resources/spineer.png +0 -0
  279. package/lib/CometChatMessages/CometChatMessages.d.ts +0 -42
  280. package/lib/CometChatMessages/MessagesConfiguration.d.ts +0 -69
  281. package/lib/CometChatMessages/resources/info.png +0 -0
  282. package/lib/CometChatTabs/TabItems.d.ts +0 -11
  283. package/lib/CometChatThreadedMessages/CometChatThreadedMessages.d.ts +0 -90
  284. package/lib/CometChatThreadedMessages/ThreadedMessagesConfiguration.d.ts +0 -18
  285. package/lib/CometChatThreadedMessages/resources/Back.png +0 -0
  286. package/lib/CometChatThreadedMessages/resources/close.png +0 -0
  287. package/lib/CometChatThreadedMessages/resources/more.png +0 -0
  288. package/lib/CometChatThreadedMessages/resources/password.png +0 -0
  289. package/lib/CometChatThreadedMessages/resources/private.png +0 -0
  290. package/lib/CometChatThreadedMessages/resources/right-arrow.png +0 -0
  291. package/lib/CometChatTransferOwnership/TransferOwnershipConfiguration.d.ts +0 -41
  292. package/lib/CometChatUsers/CometChatUsers.d.ts +0 -69
  293. package/lib/CometChatUsers/UsersConfiguration.d.ts +0 -43
  294. package/lib/calls/CometChatCallBubble/resources/avatar.png +0 -0
  295. package/lib/calls/CometChatCallBubble/resources/incomingaudiocall.png +0 -0
  296. package/lib/calls/CometChatCallBubble/resources/incomingvideocall.png +0 -0
  297. package/lib/calls/CometChatCallButtons/resources/Call.png +0 -0
  298. package/lib/calls/CometChatCallButtons/resources/Video.png +0 -0
  299. package/lib/calls/CometChatCallDetails/CallDetailsConfiguration.d.ts +0 -54
  300. package/lib/calls/CometChatCallDetails/CallDetailsConfiguration.js +0 -31
  301. package/lib/calls/CometChatCallDetails/CallDetailsConfiguration.js.map +0 -1
  302. package/lib/calls/CometChatCallDetails/CallDetailsStyle.d.ts +0 -20
  303. package/lib/calls/CometChatCallDetails/CallDetailsStyle.js +0 -27
  304. package/lib/calls/CometChatCallDetails/CallDetailsStyle.js.map +0 -1
  305. package/lib/calls/CometChatCallDetails/CometChatCallDetails.d.ts +0 -1
  306. package/lib/calls/CometChatCallDetails/CometChatCallDetails.js +0 -137
  307. package/lib/calls/CometChatCallDetails/CometChatCallDetails.js.map +0 -1
  308. package/lib/calls/CometChatCallDetails/index.d.ts +0 -3
  309. package/lib/calls/CometChatCallDetails/index.js +0 -4
  310. package/lib/calls/CometChatCallDetails/index.js.map +0 -1
  311. package/lib/calls/CometChatCallDetails/resources/index.d.ts +0 -2
  312. package/lib/calls/CometChatCallDetails/resources/index.js +0 -3
  313. package/lib/calls/CometChatCallDetails/resources/index.js.map +0 -1
  314. package/lib/calls/CometChatCallDetails/style.d.ts +0 -12
  315. package/lib/calls/CometChatCallDetails/style.js +0 -14
  316. package/lib/calls/CometChatCallDetails/style.js.map +0 -1
  317. package/lib/calls/CometChatCallHistory/CallHistoryConfiguration.d.ts +0 -86
  318. package/lib/calls/CometChatCallHistory/CallHistoryConfiguration.js +0 -39
  319. package/lib/calls/CometChatCallHistory/CallHistoryConfiguration.js.map +0 -1
  320. package/lib/calls/CometChatCallHistory/CallHistoryStyle.d.ts +0 -13
  321. package/lib/calls/CometChatCallHistory/CallHistoryStyle.js +0 -20
  322. package/lib/calls/CometChatCallHistory/CallHistoryStyle.js.map +0 -1
  323. package/lib/calls/CometChatCallHistory/CometChatCallHistory.d.ts +0 -1
  324. package/lib/calls/CometChatCallHistory/CometChatCallHistory.js +0 -250
  325. package/lib/calls/CometChatCallHistory/CometChatCallHistory.js.map +0 -1
  326. package/lib/calls/CometChatCallHistory/index.d.ts +0 -3
  327. package/lib/calls/CometChatCallHistory/index.js +0 -4
  328. package/lib/calls/CometChatCallHistory/index.js.map +0 -1
  329. package/lib/calls/CometChatCallHistory/resources/index.d.ts +0 -8
  330. package/lib/calls/CometChatCallHistory/resources/index.js +0 -9
  331. package/lib/calls/CometChatCallHistory/resources/index.js.map +0 -1
  332. package/lib/calls/CometChatCallHistory/style.d.ts +0 -21
  333. package/lib/calls/CometChatCallHistory/style.js +0 -23
  334. package/lib/calls/CometChatCallHistory/style.js.map +0 -1
  335. package/lib/calls/CometChatCallHistoryWithDetails/CometChatCallHistoryWithDetails.d.ts +0 -1
  336. package/lib/calls/CometChatCallHistoryWithDetails/CometChatCallHistoryWithDetails.js +0 -30
  337. package/lib/calls/CometChatCallHistoryWithDetails/CometChatCallHistoryWithDetails.js.map +0 -1
  338. package/lib/calls/CometChatCallHistoryWithDetails/HistoryWithDetailsConfiguration.d.ts +0 -6
  339. package/lib/calls/CometChatCallHistoryWithDetails/HistoryWithDetailsConfiguration.js +0 -2
  340. package/lib/calls/CometChatCallHistoryWithDetails/HistoryWithDetailsConfiguration.js.map +0 -1
  341. package/lib/calls/CometChatCallHistoryWithDetails/HistoryWithDetailsStyle.d.ts +0 -2
  342. package/lib/calls/CometChatCallHistoryWithDetails/HistoryWithDetailsStyle.js +0 -2
  343. package/lib/calls/CometChatCallHistoryWithDetails/HistoryWithDetailsStyle.js.map +0 -1
  344. package/lib/calls/CometChatCallHistoryWithDetails/index.d.ts +0 -3
  345. package/lib/calls/CometChatCallHistoryWithDetails/index.js +0 -2
  346. package/lib/calls/CometChatCallHistoryWithDetails/index.js.map +0 -1
  347. package/lib/calls/CometChatCallHistoryWithDetails/style.d.ts +0 -8
  348. package/lib/calls/CometChatCallHistoryWithDetails/style.js +0 -10
  349. package/lib/calls/CometChatCallHistoryWithDetails/style.js.map +0 -1
  350. package/lib/calls/CometChatCallLogDetails/resources/CloseIcon.png +0 -0
  351. package/lib/calls/CometChatCallLogHistory/resources/Back.png +0 -0
  352. package/lib/calls/CometChatCallLogHistory/resources/Call.png +0 -0
  353. package/lib/calls/CometChatCallLogHistory/resources/Info.png +0 -0
  354. package/lib/calls/CometChatCallLogHistory/resources/Selection.png +0 -0
  355. package/lib/calls/CometChatCallLogHistory/resources/Spineer.png +0 -0
  356. package/lib/calls/CometChatCallLogHistory/resources/Video.png +0 -0
  357. package/lib/calls/CometChatCallLogHistory/resources/check.png +0 -0
  358. package/lib/calls/CometChatCallLogHistory/resources/incomingcall.png +0 -0
  359. package/lib/calls/CometChatCallLogHistory/resources/incomingvideo.png +0 -0
  360. package/lib/calls/CometChatCallLogHistory/resources/missedcall.png +0 -0
  361. package/lib/calls/CometChatCallLogHistory/resources/missedvideo.png +0 -0
  362. package/lib/calls/CometChatCallLogHistory/resources/outgoingcall.png +0 -0
  363. package/lib/calls/CometChatCallLogHistory/resources/outgoingvideo.png +0 -0
  364. package/lib/calls/CometChatCallLogParticipants/resources/Back.png +0 -0
  365. package/lib/calls/CometChatCallLogRecordings/resources/Back.png +0 -0
  366. package/lib/calls/CometChatCallLogRecordings/resources/download.png +0 -0
  367. package/lib/calls/CometChatCallLogs/resources/Back.png +0 -0
  368. package/lib/calls/CometChatCallLogs/resources/Info.png +0 -0
  369. package/lib/calls/CometChatCallLogs/resources/Selection.png +0 -0
  370. package/lib/calls/CometChatCallLogs/resources/Spinner.png +0 -0
  371. package/lib/calls/CometChatCallLogs/resources/check.png +0 -0
  372. package/lib/calls/CometChatCallLogs/resources/incomingcall.png +0 -0
  373. package/lib/calls/CometChatCallLogs/resources/incomingvideo.png +0 -0
  374. package/lib/calls/CometChatCallLogs/resources/missedcall.png +0 -0
  375. package/lib/calls/CometChatCallLogs/resources/missedvideo.png +0 -0
  376. package/lib/calls/CometChatCallLogs/resources/outgoingcall.png +0 -0
  377. package/lib/calls/CometChatCallLogs/resources/outgoingvideo.png +0 -0
  378. package/lib/calls/CometChatIncomingCall/CometChatIncomingCall.d.ts +0 -21
  379. package/lib/calls/CometChatIncomingCall/resources/Call.png +0 -0
  380. package/lib/calls/CometChatIncomingCall/resources/close.png +0 -0
  381. package/lib/calls/CometChatIncomingCall/resources/incomingaudiocall.png +0 -0
  382. package/lib/calls/CometChatIncomingCall/resources/incomingvideocall.png +0 -0
  383. package/lib/calls/CometChatOutgoingCall/resources/Close.png +0 -0
  384. package/lib/calls/resources/Call.png +0 -0
  385. package/lib/calls/resources/Video.png +0 -0
  386. package/lib/calls/resources/nextarrow.png +0 -0
  387. package/lib/extensions/CollaborativeBubble/resources/whiteboard.png +0 -0
  388. package/lib/extensions/CollaborativeDocument/resources/collaborative_document.png +0 -0
  389. package/lib/extensions/CollaborativeDocument/resources/collaborative_document_2x.png +0 -0
  390. package/lib/extensions/CollaborativeWhiteboard/resources/collaborative_whiteboard.png +0 -0
  391. package/lib/extensions/CollaborativeWhiteboard/resources/whiteboard.png +0 -0
  392. package/lib/extensions/ImageModeration/ImageModerationDecorator.d.ts +0 -13
  393. package/lib/extensions/ImageModeration/resources/unsafe.png +0 -0
  394. package/lib/extensions/LinkPreview/LinkPreviewBubble.d.ts +0 -12
  395. package/lib/extensions/LinkPreview/LinkPreviewExtentionDecorator.d.ts +0 -13
  396. package/lib/extensions/LinkPreview/resources/defaultImage.png +0 -0
  397. package/lib/extensions/MessageTranslation/MessageTranslationDecorator.d.ts +0 -21
  398. package/lib/extensions/MessageTranslation/resources/translate.png +0 -0
  399. package/lib/extensions/Polls/resources/close.png +0 -0
  400. package/lib/extensions/Polls/resources/document.png +0 -0
  401. package/lib/extensions/Polls/resources/kickIcon.png +0 -0
  402. package/lib/extensions/Polls/resources/rightTick.png +0 -0
  403. package/lib/extensions/Polls/resources/warning.png +0 -0
  404. package/lib/extensions/Reactions/CometChatMessageReactions/CometChatMessageReactions.d.ts +0 -22
  405. package/lib/extensions/Reactions/CometChatMessageReactions/CometChatMessageReactions.js +0 -203
  406. package/lib/extensions/Reactions/CometChatMessageReactions/CometChatMessageReactions.js.map +0 -1
  407. package/lib/extensions/Reactions/CometChatMessageReactions/index.d.ts +0 -2
  408. package/lib/extensions/Reactions/CometChatMessageReactions/index.js +0 -3
  409. package/lib/extensions/Reactions/CometChatMessageReactions/index.js.map +0 -1
  410. package/lib/extensions/Reactions/CometChatMessageReactions/style.d.ts +0 -40
  411. package/lib/extensions/Reactions/CometChatMessageReactions/style.js +0 -42
  412. package/lib/extensions/Reactions/CometChatMessageReactions/style.js.map +0 -1
  413. package/lib/extensions/Reactions/ReactionsDecorator.d.ts +0 -23
  414. package/lib/extensions/Reactions/ReactionsDecorator.js +0 -113
  415. package/lib/extensions/Reactions/ReactionsDecorator.js.map +0 -1
  416. package/lib/extensions/Reactions/ReactionsExtension.d.ts +0 -14
  417. package/lib/extensions/Reactions/ReactionsExtension.js +0 -28
  418. package/lib/extensions/Reactions/ReactionsExtension.js.map +0 -1
  419. package/lib/extensions/Reactions/index.d.ts +0 -3
  420. package/lib/extensions/Reactions/index.js +0 -4
  421. package/lib/extensions/Reactions/index.js.map +0 -1
  422. package/lib/extensions/Reactions/resources/index.d.ts +0 -3
  423. package/lib/extensions/Reactions/resources/index.js +0 -3
  424. package/lib/extensions/Reactions/resources/index.js.map +0 -1
  425. package/lib/extensions/SmartReplies/resources/close.png +0 -0
  426. package/lib/extensions/Stickers/resources/Stickers.png +0 -0
  427. package/lib/extensions/ThumbnailGeneration/ThumbnailGenerationDecorator.d.ts +0 -16
  428. package/lib/extensions/ThumbnailGeneration/resources/empty.png +0 -0
  429. package/lib/shared/assets/images/Back.png +0 -0
  430. package/lib/shared/assets/images/BackArrow.png +0 -0
  431. package/lib/shared/assets/images/blue-double-tick-icon.png +0 -0
  432. package/lib/shared/assets/images/calendar.png +0 -0
  433. package/lib/shared/assets/images/checkmark.png +0 -0
  434. package/lib/shared/assets/images/clock-alert.png +0 -0
  435. package/lib/shared/assets/images/clock.png +0 -0
  436. package/lib/shared/assets/images/earth.png +0 -0
  437. package/lib/shared/assets/images/empty-slot.png +0 -0
  438. package/lib/shared/assets/images/error.png +0 -0
  439. package/lib/shared/assets/images/forwardArrow.png +0 -0
  440. package/lib/shared/assets/images/grey-double-tick-icon.png +0 -0
  441. package/lib/shared/assets/images/grey-tick-icon.png +0 -0
  442. package/lib/shared/assets/images/sending.png +0 -0
  443. package/lib/shared/framework/DataSource.d.ts +0 -49
  444. package/lib/shared/framework/MessageDataSource.d.ts +0 -72
  445. package/lib/shared/framework/resources/audio-file.png +0 -0
  446. package/lib/shared/framework/resources/circle_add.png +0 -0
  447. package/lib/shared/framework/resources/copy.png +0 -0
  448. package/lib/shared/framework/resources/delete.png +0 -0
  449. package/lib/shared/framework/resources/edit.png +0 -0
  450. package/lib/shared/framework/resources/emoji.png +0 -0
  451. package/lib/shared/framework/resources/file_upload.png +0 -0
  452. package/lib/shared/framework/resources/forward.png +0 -0
  453. package/lib/shared/framework/resources/heart.png +0 -0
  454. package/lib/shared/framework/resources/image.png +0 -0
  455. package/lib/shared/framework/resources/info.png +0 -0
  456. package/lib/shared/framework/resources/location.png +0 -0
  457. package/lib/shared/framework/resources/messageInPrivate.png +0 -0
  458. package/lib/shared/framework/resources/microphone.png +0 -0
  459. package/lib/shared/framework/resources/pause.png +0 -0
  460. package/lib/shared/framework/resources/play.png +0 -0
  461. package/lib/shared/framework/resources/reply.png +0 -0
  462. package/lib/shared/framework/resources/send_message.png +0 -0
  463. package/lib/shared/framework/resources/share.png +0 -0
  464. package/lib/shared/framework/resources/stop_player.png +0 -0
  465. package/lib/shared/framework/resources/thread.png +0 -0
  466. package/lib/shared/framework/resources/video_upload.png +0 -0
  467. package/lib/shared/helper/types/index.d.ts +0 -19
  468. package/lib/shared/libs/CometChatCalendar/Icons/BackArrow.png +0 -0
  469. package/lib/shared/libs/CometChatCalendar/Icons/chevron-left-16.png +0 -0
  470. package/lib/shared/libs/VideoPlayerControls/assets/img/back.png +0 -0
  471. package/lib/shared/libs/VideoPlayerControls/assets/img/bottom-vignette.png +0 -0
  472. package/lib/shared/libs/VideoPlayerControls/assets/img/bottom-vignette@2x.png +0 -0
  473. package/lib/shared/libs/VideoPlayerControls/assets/img/bottom-vignette@3x.png +0 -0
  474. package/lib/shared/libs/VideoPlayerControls/assets/img/error-icon.png +0 -0
  475. package/lib/shared/libs/VideoPlayerControls/assets/img/error-icon@2x.png +0 -0
  476. package/lib/shared/libs/VideoPlayerControls/assets/img/error-icon@3x.png +0 -0
  477. package/lib/shared/libs/VideoPlayerControls/assets/img/expand.png +0 -0
  478. package/lib/shared/libs/VideoPlayerControls/assets/img/expand@2x.png +0 -0
  479. package/lib/shared/libs/VideoPlayerControls/assets/img/expand@3x.png +0 -0
  480. package/lib/shared/libs/VideoPlayerControls/assets/img/forward.png +0 -0
  481. package/lib/shared/libs/VideoPlayerControls/assets/img/forward@2x.png +0 -0
  482. package/lib/shared/libs/VideoPlayerControls/assets/img/forward@3x.png +0 -0
  483. package/lib/shared/libs/VideoPlayerControls/assets/img/loader-icon.png +0 -0
  484. package/lib/shared/libs/VideoPlayerControls/assets/img/loader-icon@2x.png +0 -0
  485. package/lib/shared/libs/VideoPlayerControls/assets/img/loader-icon@3x.png +0 -0
  486. package/lib/shared/libs/VideoPlayerControls/assets/img/pause.png +0 -0
  487. package/lib/shared/libs/VideoPlayerControls/assets/img/pause@2x.png +0 -0
  488. package/lib/shared/libs/VideoPlayerControls/assets/img/pause@3x.png +0 -0
  489. package/lib/shared/libs/VideoPlayerControls/assets/img/play.png +0 -0
  490. package/lib/shared/libs/VideoPlayerControls/assets/img/play@2x.png +0 -0
  491. package/lib/shared/libs/VideoPlayerControls/assets/img/play@3x.png +0 -0
  492. package/lib/shared/libs/VideoPlayerControls/assets/img/rewind.png +0 -0
  493. package/lib/shared/libs/VideoPlayerControls/assets/img/rewind@2x.png +0 -0
  494. package/lib/shared/libs/VideoPlayerControls/assets/img/rewind@3x.png +0 -0
  495. package/lib/shared/libs/VideoPlayerControls/assets/img/shrink.png +0 -0
  496. package/lib/shared/libs/VideoPlayerControls/assets/img/shrink@2x.png +0 -0
  497. package/lib/shared/libs/VideoPlayerControls/assets/img/shrink@3x.png +0 -0
  498. package/lib/shared/libs/VideoPlayerControls/assets/img/top-vignette.png +0 -0
  499. package/lib/shared/libs/VideoPlayerControls/assets/img/top-vignette@2x.png +0 -0
  500. package/lib/shared/libs/VideoPlayerControls/assets/img/top-vignette@3x.png +0 -0
  501. package/lib/shared/libs/VideoPlayerControls/assets/img/volume.png +0 -0
  502. package/lib/shared/libs/VideoPlayerControls/assets/img/volume@2x.png +0 -0
  503. package/lib/shared/libs/VideoPlayerControls/assets/img/volume@3x.png +0 -0
  504. package/lib/shared/modals/CometChatDetailsOption.d.ts +0 -18
  505. package/lib/shared/modals/CometChatMessageOption.d.ts +0 -13
  506. package/lib/shared/modals/CometChatMessageTemplate.d.ts +0 -24
  507. package/lib/shared/resources/CometChatSoundManager/resources/incomingcall.wav +0 -0
  508. package/lib/shared/resources/CometChatSoundManager/resources/incomingmessage.wav +0 -0
  509. package/lib/shared/resources/CometChatSoundManager/resources/incomingothermessage.wav +0 -0
  510. package/lib/shared/resources/CometChatSoundManager/resources/outgoingcall.wav +0 -0
  511. package/lib/shared/resources/CometChatSoundManager/resources/outgoingmessage.wav +0 -0
  512. package/lib/shared/utils/CometChatLiveReactions/resources/heart.png +0 -0
  513. package/lib/shared/utils/CometChatMessagePreview/resources/close.png +0 -0
  514. package/lib/shared/utils/DetailsUtils/resources/Back.png +0 -0
  515. package/lib/shared/utils/DetailsUtils/resources/banIcon.png +0 -0
  516. package/lib/shared/utils/DetailsUtils/resources/close.png +0 -0
  517. package/lib/shared/utils/DetailsUtils/resources/kickIcon.png +0 -0
  518. package/lib/shared/utils/DetailsUtils/resources/password.png +0 -0
  519. package/lib/shared/utils/DetailsUtils/resources/private.png +0 -0
  520. package/lib/shared/utils/DetailsUtils/resources/right-arrow.png +0 -0
  521. package/lib/shared/views/CometChatAICard/resources/errormessage.png +0 -0
  522. package/lib/shared/views/CometChatAICard/resources/nomessage.png +0 -0
  523. package/lib/shared/views/CometChatActionSheet/resources/grid.png +0 -0
  524. package/lib/shared/views/CometChatActionSheet/resources/list.png +0 -0
  525. package/lib/shared/views/CometChatAudioBubble/resources/pause.png +0 -0
  526. package/lib/shared/views/CometChatAudioBubble/resources/play.png +0 -0
  527. package/lib/shared/views/CometChatAvatar/resources/default.jpg +0 -0
  528. package/lib/shared/views/CometChatCard/CometChatCard.d.ts +0 -15
  529. package/lib/shared/views/CometChatDropDown/resources/downArrowIcon.png +0 -0
  530. package/lib/shared/views/CometChatEmojiKeyboard/resources/activity.png +0 -0
  531. package/lib/shared/views/CometChatEmojiKeyboard/resources/animals.png +0 -0
  532. package/lib/shared/views/CometChatEmojiKeyboard/resources/flags.png +0 -0
  533. package/lib/shared/views/CometChatEmojiKeyboard/resources/food.png +0 -0
  534. package/lib/shared/views/CometChatEmojiKeyboard/resources/objects.png +0 -0
  535. package/lib/shared/views/CometChatEmojiKeyboard/resources/smileys.png +0 -0
  536. package/lib/shared/views/CometChatEmojiKeyboard/resources/symbols.png +0 -0
  537. package/lib/shared/views/CometChatEmojiKeyboard/resources/travel.png +0 -0
  538. package/lib/shared/views/CometChatFileBubble/resources/download.png +0 -0
  539. package/lib/shared/views/CometChatFileBubble/resources/file_upload.png +0 -0
  540. package/lib/shared/views/CometChatImageBubble/assets/spineer.png +0 -0
  541. package/lib/shared/views/CometChatImageViewerModal/resources/Back.png +0 -0
  542. package/lib/shared/views/CometChatList/CometChatList.d.ts +0 -86
  543. package/lib/shared/views/CometChatList/resources/Back.png +0 -0
  544. package/lib/shared/views/CometChatList/resources/Search.png +0 -0
  545. package/lib/shared/views/CometChatList/resources/Spinner.png +0 -0
  546. package/lib/shared/views/CometChatList/resources/check.png +0 -0
  547. package/lib/shared/views/CometChatList/resources/checkmark.png +0 -0
  548. package/lib/shared/views/CometChatMessageBubble/CometChatMessageBubble.d.ts +0 -21
  549. package/lib/shared/views/CometChatPanel/resources/CloseIcon.png +0 -0
  550. package/lib/shared/views/CometChatQuickReactions/resources/AddReactions.png +0 -0
  551. package/lib/shared/views/CometChatReactionList/resources/Spineer.png +0 -0
  552. package/lib/shared/views/CometChatReceipt/resources/blue-double-tick-icon.png +0 -0
  553. package/lib/shared/views/CometChatReceipt/resources/error.png +0 -0
  554. package/lib/shared/views/CometChatReceipt/resources/grey-double-tick-icon.png +0 -0
  555. package/lib/shared/views/CometChatReceipt/resources/grey-tick-icon.png +0 -0
  556. package/lib/shared/views/CometChatReceipt/resources/sending.png +0 -0
  557. package/lib/shared/views/CometChatVideoBubble/resources/play.png +0 -0
  558. /package/{lib/shared/views/CometChatVideoBubble → src/extensions/ThumbnailGeneration}/resources/default_image.png +0 -0
@@ -209,6 +209,10 @@ export const CometChatMessageList = memo(forwardRef<
209
209
  let _updatedCustomRequestBuilder = _defaultRequestBuilder;
210
210
  if (messageRequestBuilder) {
211
211
  _updatedCustomRequestBuilder = messageRequestBuilder;
212
+ if (user)
213
+ _updatedCustomRequestBuilder = _updatedCustomRequestBuilder.setUID(user["uid"])
214
+ if (group)
215
+ _updatedCustomRequestBuilder = _updatedCustomRequestBuilder.setGUID(group["guid"])
212
216
  } else {
213
217
  _updatedCustomRequestBuilder.hideReplies(true);
214
218
  if (user)
@@ -431,7 +435,6 @@ export const CometChatMessageList = memo(forwardRef<
431
435
  messagesRequest.build()
432
436
  .fetchNext()
433
437
  .then(updatedMessages => {
434
- if (!updatedMessages.length) return;
435
438
  let tmpList = [...messagesList];
436
439
  for (let i = 0; i < updatedMessages.length; i++) {
437
440
  let condition = (msg) => msg.getId() == updatedMessages[i]?.actionOn.getId()
@@ -468,7 +471,7 @@ export const CometChatMessageList = memo(forwardRef<
468
471
  cleanUpdatedList.shift();
469
472
  }
470
473
  }
471
- let tmpList = [...cleanUpdatedList, ...newMessages.reverse()];
474
+ let tmpList = [...cleanUpdatedList, ...newMessages];
472
475
  tmpList = tmpList.map((item: CometChat.BaseMessage, index) => {
473
476
  if (item.getCategory() === MessageCategoryConstants.interactive) {
474
477
  return InteractiveMessageUtils.convertInteractiveMessage(item);
@@ -485,10 +488,11 @@ export const CometChatMessageList = memo(forwardRef<
485
488
  }
486
489
  messagesContentListRef.current = tmpList;
487
490
  setMessagesList(tmpList);
488
- markMessageAsRead(tmpList[0]);
491
+ bottomHandler(tmpList[tmpList.length - 1], true);
489
492
  if (newMessages.length === 30) {
490
493
  getNewMessages(tmpList);
491
494
  }
495
+ newRequestBuilder.setMessageId(undefined)
492
496
  })
493
497
  .catch(e => console.log("error while fetching updated msgs", e))
494
498
  }
@@ -671,8 +675,8 @@ export const CometChatMessageList = memo(forwardRef<
671
675
  }
672
676
  if (checkSameConversation(baseMessage) || checkMessageInSameConversation(baseMessage) || messageToSameConversation(baseMessage)) {
673
677
  //need to add
674
- if (baseMessage.getParentMessageId()) {
675
- if (baseMessage.getParentMessageId() == parseInt(parentMessageId)) {
678
+ if (newMessage.getParentMessageId()) {
679
+ if (newMessage.getParentMessageId() == parseInt(parentMessageId)) {
676
680
  // add to list
677
681
  messagesContentListRef.current = [...messagesContentListRef.current, newMessage];
678
682
  inProgressMessages.current = [...inProgressMessages.current, newMessage]
@@ -696,30 +700,40 @@ export const CometChatMessageList = memo(forwardRef<
696
700
  inProgressMessages.current = [...inProgressMessages.current, newMessage]
697
701
  setMessagesList(prev => [...prev, newMessage]);
698
702
  }
699
- // if scroll is not at bottom
700
- if (!scrollToBottomOnNewMessages && currentScrollPosition.current.y && (Math.round(currentScrollPosition.current.y) <= currentScrollPosition.current.scrollViewHeight)) {
701
- if ((parentMessageId && newMessage.parentMessageId == parseInt(parentMessageId)) || (!parentMessageId && !newMessage.parentMessageId && (baseMessage.getSender()?.getUid() || baseMessage?.['sender']?.['uid']) == loggedInUser.current?.['uid'])) {
702
- scrollToBottom();
703
- return;
704
- }
705
- CometChat.markAsDelivered(newMessage);
706
- if (baseMessage?.getReceiverType() == ReceiverTypeConstants.user) {
707
- CometChatUIEventHandler.emitMessageEvent(MessageEvents.ccMessageDelivered, { message: newMessage });
708
- }
709
- if (isNearBottom()) {
710
- scrollToBottom();
711
- } else if ((!parentMessageId && !(newMessage.parentMessageId)) || (parentMessageId && newMessage.parentMessageId == parseInt(parentMessageId))) {
712
- setUnreadCount(unreadCount + 1);
713
- }
714
- } else {
703
+ bottomHandler(newMessage, isReceived);
704
+ }
705
+
706
+ playNotificationSound(newMessage);
707
+ }
708
+
709
+ const bottomHandler = (newMessage: CometChat.BaseMessage, isReceived?: boolean) => {
710
+
711
+ // if scroll is not at bottom
712
+ if (!scrollToBottomOnNewMessages && currentScrollPosition.current.y && (Math.round(currentScrollPosition.current.y) <= currentScrollPosition.current.scrollViewHeight)) {
713
+ if ((parentMessageId && newMessage.parentMessageId == parseInt(parentMessageId)) || (!parentMessageId && !newMessage.parentMessageId && (newMessage.getSender()?.getUid() || newMessage?.['sender']?.['uid']) == loggedInUser.current?.['uid'])) {
714
+ scrollToBottom();
715
+ return;
716
+ }
717
+ CometChat.markAsDelivered(newMessage);
718
+ if (newMessage?.getReceiverType() == ReceiverTypeConstants.user) {
719
+ CometChatUIEventHandler.emitMessageEvent(MessageEvents.ccMessageDelivered, { message: newMessage });
720
+ }
721
+ if (isNearBottom()) {
715
722
  scrollToBottom();
716
723
  if (isReceived) {
717
724
  markMessageAsRead(newMessage);
718
725
  CometChatUIEventHandler.emitMessageEvent(MessageEvents.ccMessageRead, { message: newMessage });
719
726
  }
727
+ } else if ((!parentMessageId && !(newMessage.parentMessageId)) || (parentMessageId && newMessage.parentMessageId == parseInt(parentMessageId))) {
728
+ setUnreadCount(unreadCount + 1);
729
+ }
730
+ } else {
731
+ scrollToBottom();
732
+ if (isReceived) {
733
+ markMessageAsRead(newMessage);
734
+ CometChatUIEventHandler.emitMessageEvent(MessageEvents.ccMessageRead, { message: newMessage });
720
735
  }
721
736
  }
722
- playNotificationSound(newMessage);
723
737
  }
724
738
 
725
739
  const markParentMessageAsRead = (message: CometChat.BaseMessage) => {
@@ -786,21 +800,27 @@ export const CometChatMessageList = memo(forwardRef<
786
800
 
787
801
  if (index == -1) return;
788
802
 
789
- let tmpList = [...messagesList];
803
+ let tmpList: Array<CometChat.BaseMessage> = [...messagesList];
790
804
 
791
- let tmpMsg = tmpList[index];
792
- if ((tmpMsg as CometChat.BaseMessage)?.getReceiverType() == ReceiverTypeConstants.group)
793
- return;
794
- if (tmpMsg.getCategory() === MessageCategoryConstants.interactive) {
795
- tmpMsg = InteractiveMessageUtils.convertInteractiveMessage(tmpMsg);
796
- }
797
- if (receipt.hasOwnProperty('deliveredAt')) {
798
- tmpMsg['deliveredAt'] = receipt['deliveredAt'];
799
- }
800
- if (receipt.hasOwnProperty('readAt')) {
801
- tmpMsg['readAt'] = receipt['readAt'];
805
+ for (let i = index; i > 0; i--) {
806
+
807
+ if (tmpList[i]?.getReadAt && tmpList[i]?.getReadAt()) break;
808
+
809
+ let tmpMsg = tmpList[i];
810
+ if ((tmpMsg as CometChat.BaseMessage)?.getReceiverType() == ReceiverTypeConstants.group)
811
+ return;
812
+ if (tmpMsg.getCategory() === MessageCategoryConstants.interactive) {
813
+ tmpMsg = InteractiveMessageUtils.convertInteractiveMessage(tmpMsg);
814
+ }
815
+ if (receipt.getDeliveredAt) {
816
+ tmpMsg.setDeliveredAt(receipt.getDeliveredAt());
817
+ }
818
+ if (receipt.getReadAt) {
819
+ tmpMsg.setReadAt(receipt.getReadAt());
820
+ }
821
+
822
+ tmpList[i] = CommonUtils.clone(tmpMsg);
802
823
  }
803
- tmpMsg['updatedAt'] = receipt['timestamp'];
804
824
 
805
825
  messagesContentListRef.current = tmpList;
806
826
  setMessagesList(tmpList);
@@ -119,7 +119,7 @@ export const CometChatUsers = React.forwardRef<
119
119
  },
120
120
  })
121
121
  );
122
- return CometChat.removeUserListener(userListenerId);
122
+ return () => CometChat.removeUserListener(userListenerId);
123
123
  }, []);
124
124
 
125
125
  const handleccUserBlocked = ({ user }) => {
@@ -151,7 +151,7 @@ export const CometChatUsers = React.forwardRef<
151
151
  <View style={{ flex: 1, width: '100%', height: '100%' }}>
152
152
  <CometChatList
153
153
  listItemKey="uid"
154
- ref={ref}
154
+ ref={userRef}
155
155
  title={'Users'}
156
156
  requestBuilder={usersRequestBuilder}
157
157
  listStyle={usersStyle}
@@ -13,6 +13,7 @@ import { CallUIEvents } from '../CallEvents'
13
13
  import { CometChatOutgoingCall } from '../CometChatOutgoingCall'
14
14
  import { CometChatUIKit } from '../../shared/CometChatUiKit/CometChatUIKit'
15
15
  import { permissionUtil } from '../../shared/utils/PermissionUtil'
16
+ import { getUnixTimestampInMilliseconds } from '../../shared/utils/CometChatMessageHelper'
16
17
 
17
18
  const listenerId = "callEventListener_" + new Date().getTime();
18
19
 
@@ -155,7 +156,7 @@ export const CometChatCallButtons = (props: CometChatCallButtonsInterface) => {
155
156
  customData
156
157
  );
157
158
  customMessage.setCategory(CometChat.CATEGORY_CUSTOM as CometChat.MessageCategory);
158
- customMessage.setMuid(new Date().getTime().toString());
159
+ customMessage.setMuid(String(getUnixTimestampInMilliseconds()));
159
160
  customMessage.setSender(loggedInUser.current);
160
161
  customMessage.setReceiver(group);
161
162
  customMessage.setMetadata({
@@ -18,11 +18,11 @@ const CometChatCalls = CallingPackage.CometChatCalls;
18
18
 
19
19
  export interface CometChatCallLogsConfigurationInterface {
20
20
  title?: string,
21
- SubtitleView?: (param: { call?: CometChat.BaseMessage }) => JSX.Element,
22
- ListItemView?: (param: { call?: CometChat.BaseMessage }) => JSX.Element,
23
- TailView?: (param: { call?: CometChat.BaseMessage }) => JSX.Element,
21
+ SubtitleView?: (param: { call?: any }) => JSX.Element,
22
+ ListItemView?: (param: { call?: any }) => JSX.Element,
23
+ TailView?: (param: { call?: any }) => JSX.Element,
24
24
  AppBarOptions?: () => JSX.Element,
25
- options?: (param: { message: CometChat.BaseMessage }) => CometChatOptions[],
25
+ options?: (param: { message: any }) => CometChatOptions[],
26
26
  callRequestBuilder?: any,
27
27
  datePattern: DatePattern,
28
28
  dateSeparatorPattern: DatePattern,
@@ -36,10 +36,10 @@ export interface CometChatCallLogsConfigurationInterface {
36
36
  loadingIcon?: ImageType,
37
37
  LoadingStateView?: () => JSX.Element,
38
38
  hideError?: boolean,
39
- onItemPress?: (item: CometChat.BaseMessage) => void,
39
+ onItemPress?: (item: any) => void,
40
40
  onError?: (e: CometChat.CometChatException) => void,
41
41
  onBack?: () => void,
42
- onInfoIconPress?: (prop: { call: CometChat.BaseMessage }) => void,
42
+ onInfoIconPress?: (prop: { call: any }) => void,
43
43
  infoIcon?: ImageType,
44
44
  avatarStyle?: AvatarStyleInterface,
45
45
  listItemStyle?: ListItemStyleInterface,
@@ -12,6 +12,7 @@ import { CometChatUIEvents, MessageEvents } from '../../shared/events';
12
12
  import { SmartRepliesView } from './SmartRepliesView';
13
13
  import {
14
14
  getUnixTimestamp,
15
+ getUnixTimestampInMilliseconds,
15
16
  } from '../../shared/utils/CometChatMessageHelper';
16
17
  import { CometChatUIEventHandler } from '../../shared/events/CometChatUIEventHandler/CometChatUIEventHandler';
17
18
  import { CometChatUIKit } from '../../shared/CometChatUiKit/CometChatUIKit';
@@ -118,7 +119,7 @@ export class SmartRepliesDecorator extends DataSourceDecorator {
118
119
  textMessage.setSender(this.loggedInUser);
119
120
  textMessage.setText(smartReply);
120
121
  textMessage.setSentAt(getUnixTimestamp());
121
- textMessage.setMuid(String(getUnixTimestamp()));
122
+ textMessage.setMuid(String(getUnixTimestampInMilliseconds()));
122
123
 
123
124
  CometChatUIKit.sendTextMessage(textMessage)
124
125
  .then(() => {})
@@ -15,6 +15,7 @@ import { CometChatStickerKeyboard } from "./CometChatStickerKeyboard";
15
15
  import { CometChatUIKit } from "../../shared/CometChatUiKit/CometChatUIKit";
16
16
  import { isKeyboardVisible } from "../../shared/helper/useKeyboard";
17
17
  import { AdditionalBubbleStylingParams, MessageBubbleAlignmentType } from "../../shared/base/Types";
18
+ import { getUnixTimestampInMilliseconds } from "../../shared/utils/CometChatMessageHelper";
18
19
 
19
20
  export class StickersExtensionDecorator extends DataSourceDecorator {
20
21
 
@@ -88,7 +89,7 @@ export class StickersExtensionDecorator extends DataSourceDecorator {
88
89
  );
89
90
  customMessage.setCategory(CometChat.CATEGORY_CUSTOM as CometChat.MessageCategory);
90
91
  customMessage.setParentMessageId(parentId);
91
- customMessage.setMuid(new Date().getTime().toString());
92
+ customMessage.setMuid(String(getUnixTimestampInMilliseconds()));
92
93
  customMessage.setSender(loggedInUser.current);
93
94
  customMessage.setReceiver(user || group);
94
95
  customMessage.shouldUpdateConversation(true);
@@ -14,7 +14,7 @@ import {
14
14
  import React from 'react';
15
15
  import { CometChatTheme } from '../../shared/resources/CometChatTheme';
16
16
  import { ThumbnailGenerationConfigurationInterface } from './ThumbnailGenerationExtension';
17
- import { Empty } from './resources';
17
+ import { defaultThumbnail } from './resources';
18
18
 
19
19
  export class ThumbnailGenerationExtensionDecorator extends DataSourceDecorator {
20
20
  thumbnailGenerationConfiguration?: ThumbnailGenerationConfigurationInterface;
@@ -42,7 +42,7 @@ export class ThumbnailGenerationExtensionDecorator extends DataSourceDecorator {
42
42
  ExtensionConstants.thumbnailGeneration
43
43
  );
44
44
  if (thumbnailData == undefined) {
45
- image = message.getType() === "image" ? message?.data?.url : Empty; //default image for type video
45
+ image = message.getType() === "image" ? { uri: message?.data?.url } : defaultThumbnail; //default image for type video
46
46
  } else {
47
47
  let attachmentData = thumbnailData['attachments'];
48
48
  if (attachmentData.length) {
@@ -50,9 +50,9 @@ export class ThumbnailGenerationExtensionDecorator extends DataSourceDecorator {
50
50
 
51
51
  if (!dataObj['error']) {
52
52
  let imageLink = dataObj?.['data']?.['thumbnails']?.['url_small'];
53
- image = imageLink ? { uri: dataObj['data']['thumbnails']['url_small'] } : Empty; //if imageLink is empty or does not exist then load default image
53
+ image = imageLink ? { uri: dataObj['data']['thumbnails']['url_small'] } : defaultThumbnail; //if imageLink is empty or does not exist then load default image
54
54
  } else {
55
- image = Empty; //default image
55
+ image = defaultThumbnail; //default image
56
56
  }
57
57
  }
58
58
  }
@@ -97,8 +97,8 @@ export class ThumbnailGenerationExtensionDecorator extends DataSourceDecorator {
97
97
  const image = this.checkThumbnail(message);
98
98
  return (
99
99
  <CometChatImageBubble
100
- imageUrl={{ uri: imageUrl } ?? image}
101
- thumbnailUrl={{ uri: message?.['data']?.['url'] }}
100
+ imageUrl={imageUrl ? { uri: imageUrl } : image}
101
+ thumbnailUrl={image}
102
102
  style={{
103
103
  height: 200,
104
104
  width: 200,
@@ -1,5 +1,5 @@
1
- import Empty from './empty.png';
1
+ import defaultThumbnail from "./default_image.png";
2
2
 
3
3
  export {
4
- Empty
4
+ defaultThumbnail
5
5
  }
@@ -2,7 +2,7 @@ import { Platform } from "react-native";
2
2
  import { CometChat } from "@cometchat/chat-sdk-react-native";
3
3
  import { UIKitSettings } from "./UIKitSettings";
4
4
  import { CometChatUIKitHelper } from "./CometChatUIKitHelper";
5
- import { messageStatus } from "../utils/CometChatMessageHelper";
5
+ import { getUnixTimestampInMilliseconds, messageStatus } from "../utils/CometChatMessageHelper";
6
6
  import { CallingExtension } from "../../calls/CallingExtension";
7
7
  import { CallingPackage } from "../../calls/CallingPackage";
8
8
  import { StickersExtension } from "../../extensions/Stickers";
@@ -262,7 +262,7 @@ export class CometChatUIKit {
262
262
  return new Promise((resolve, reject) => {
263
263
 
264
264
  if (!message.getMuid()) {
265
- message.setMuid(String(getUnixTimestamp()));
265
+ message.setMuid(String(getUnixTimestampInMilliseconds()));
266
266
  }
267
267
 
268
268
  if (!message.getSender()) {
@@ -291,7 +291,7 @@ export class CometChatUIKit {
291
291
 
292
292
 
293
293
  if (!message.getMuid()) {
294
- message.setMuid(String(getUnixTimestamp()));
294
+ message.setMuid(String(getUnixTimestampInMilliseconds()));
295
295
  }
296
296
 
297
297
  if (!message.getSender()) {
@@ -343,7 +343,7 @@ export class CometChatUIKit {
343
343
 
344
344
 
345
345
  if (!message?.getMuid()) {
346
- message.setMuid(String(getUnixTimestamp()));
346
+ message.setMuid(String(getUnixTimestampInMilliseconds()));
347
347
  }
348
348
 
349
349
  if (!message?.getSender()) {
@@ -376,7 +376,7 @@ export class CometChatUIKit {
376
376
  return new Promise((resolve, reject) => {
377
377
 
378
378
  if (!message.getMuid()) {
379
- message.setMuid(String(getUnixTimestamp()));
379
+ message.setMuid(String(getUnixTimestampInMilliseconds()));
380
380
  }
381
381
 
382
382
  if (!message.getSender()) {
@@ -413,7 +413,7 @@ export class CometChatUIKit {
413
413
  return new Promise((resolve, reject) => {
414
414
 
415
415
  if (!message.getMuid()) {
416
- message.setMuid(String(getUnixTimestamp()));
416
+ message.setMuid(String(getUnixTimestampInMilliseconds()));
417
417
  }
418
418
 
419
419
  if (!message.getSender()) {
@@ -452,7 +452,7 @@ export class CometChatUIKit {
452
452
  return new Promise((resolve, reject) => {
453
453
 
454
454
  if (!message.getMuid()) {
455
- message.setMuid(String(getUnixTimestamp()));
455
+ message.setMuid(String(getUnixTimestampInMilliseconds()));
456
456
  }
457
457
 
458
458
  if (!message.getSender()) {
@@ -491,7 +491,7 @@ export class CometChatUIKit {
491
491
  return new Promise((resolve, reject) => {
492
492
 
493
493
  if (!message.getMuid()) {
494
- message.setMuid(String(getUnixTimestamp()));
494
+ message.setMuid(String(getUnixTimestampInMilliseconds()));
495
495
  }
496
496
 
497
497
  if (!message.getSender()) {
@@ -310,6 +310,7 @@
310
310
  "INFO":"معلومات",
311
311
  "MESSAGE_PRIVATELY":"أرسل رسالة بشكل خاص",
312
312
  "TRANSLATE":"ترجم",
313
- "EDIT":"تحرير"
314
-
313
+ "EDIT":"تحرير",
314
+ "MICROPHONE_PERMISSION":"لتسجيل رسالة صوتية، نحتاج إلى الوصول إلى الميكروفون الخاص بك. انقر فوق الإعدادات وقم بتشغيل الميكروفون.",
315
+ "CAMERA_PERMISSION":"لا يمكننا الوصول إلى الكاميرا الخاصة بك. لتمكين الوصول، انقر فوق الإعدادات وقم بتشغيل الكاميرا."
315
316
  }
@@ -311,5 +311,7 @@
311
311
  "CHAT_PRIVATELY":"Privat chatten",
312
312
  "MESSAGE_PRIVATELY":"Private Nachricht",
313
313
  "TRANSLATE":"Übersetzen",
314
- "EDIT":"Bearbeiten"
314
+ "EDIT":"Bearbeiten",
315
+ "MICROPHONE_PERMISSION":"Um eine Sprachnachricht aufzunehmen, benötigen wir Zugriff auf Ihr Mikrofon. Tippe auf Einstellungen und schalte das Mikrofon ein.",
316
+ "CAMERA_PERMISSION":"Wir haben keinen Zugriff auf Ihre Kamera. Um den Zugriff zu aktivieren, tippen Sie auf Einstellungen und schalten Sie die Kamera ein."
315
317
  }
@@ -310,5 +310,7 @@
310
310
  "INFO":"Info",
311
311
  "MESSAGE_PRIVATELY":"Message Privately",
312
312
  "TRANSLATE":"Translate",
313
- "EDIT":"Edit"
313
+ "EDIT":"Edit",
314
+ "MICROPHONE_PERMISSION":"To record a Voice Message, we need access to your microphone. Tap Settings and turn on Microphone.",
315
+ "CAMERA_PERMISSION":"We do not have access to your camera. To enable access, tap Settings and turn on Camera."
314
316
  }
@@ -311,5 +311,7 @@
311
311
  "CHAT_PRIVATELY":"Chatea en privado",
312
312
  "MESSAGE_PRIVATELY":"Mensaje privado",
313
313
  "TRANSLATE":"Traducir",
314
- "EDIT":"Editar"
314
+ "EDIT":"Editar",
315
+ "MICROPHONE_PERMISSION":"Para grabar un mensaje de voz, necesitamos acceder a tu micrófono. Pulsa Ajustes y activa el micrófono.",
316
+ "CAMERA_PERMISSION":"No tenemos acceso a su cámara. Para habilitar el acceso, toca Configuración y activa la Cámara."
315
317
  }
@@ -311,5 +311,7 @@
311
311
  "CHAT_PRIVATELY":"Discutez en privé",
312
312
  "MESSAGE_PRIVATELY":"Message privé",
313
313
  "TRANSLATE":"Traduire",
314
- "EDIT":"Modifier"
314
+ "EDIT":"Modifier",
315
+ "MICROPHONE_PERMISSION":"Pour enregistrer un message vocal, nous avons besoin d'accéder à votre microphone. Appuyez sur Réglages et activez le microphone.",
316
+ "CAMERA_PERMISSION":"Nous n'avons pas accès à votre caméra. Pour activer l'accès, touchez Réglages et activez l'appareil photo."
315
317
  }
@@ -310,5 +310,7 @@
310
310
  "INFO":"जानकारी",
311
311
  "MESSAGE_PRIVATELY":"निजी तौर पर संदेश",
312
312
  "TRANSLATE":"ट्रांसलेट करें",
313
- "EDIT":"संपादित करें"
313
+ "EDIT":"संपादित करें",
314
+ "MICROPHONE_PERMISSION":"ध्वनि संदेश रिकॉर्ड करने के लिए, हमें आपके माइक्रोफ़ोन तक पहुँच की आवश्यकता है। सेटिंग पर टैप करें और माइक्रोफ़ोन चालू करें।",
315
+ "CAMERA_PERMISSION":"हमारे पास आपके कैमरे तक पहुंच नहीं है। ऐक्सेस चालू करने के लिए, सेटिंग पर टैप करें और कैमरा चालू करें।"
314
316
  }
@@ -311,5 +311,7 @@
311
311
  "CHAT_PRIVATELY":"Privát csevegés",
312
312
  "MESSAGE_PRIVATELY":"Privát üzenet",
313
313
  "TRANSLATE":"Fordítás",
314
- "EDIT":"Szerkesztés"
314
+ "EDIT":"Szerkesztés",
315
+ "MICROPHONE_PERMISSION":"Hangüzenet rögzítéséhez hozzáférésre van szükségünk a mikrofonjához. Koppintson a Beállítások elemre, és kapcsolja be a Mikrofont.",
316
+ "CAMERA_PERMISSION":"Nem férünk hozzá a kamerájához. A hozzáférés engedélyezéséhez érintse meg a Beállítások elemet, és kapcsolja be a Kamera lehetőséget."
315
317
  }
@@ -311,5 +311,7 @@
311
311
  "CHAT_PRIVATELY":"Pokalbiai privačiai",
312
312
  "MESSAGE_PRIVATELY":"Pranešimas privačiai",
313
313
  "TRANSLATE":"Išversti",
314
- "EDIT":"Redaguoti"
314
+ "EDIT":"Redaguoti",
315
+ "MICROPHONE_PERMISSION":"Per registrare un messaggio vocale, abbiamo bisogno di accedere al tuo microfono. Tocca Impostazioni e attiva il microfono.",
316
+ "CAMERA_PERMISSION":"Non abbiamo accesso alla tua fotocamera. Per abilitare l'accesso, tocca Impostazioni e attiva Fotocamera."
315
317
  }
@@ -311,5 +311,7 @@
311
311
  "CHAT_PRIVATELY":"Berbual Persendirian",
312
312
  "MESSAGE_PRIVATELY":"Mesej Persendirian",
313
313
  "TRANSLATE":"Terjemah",
314
- "EDIT":"Sunting"
314
+ "EDIT":"Sunting",
315
+ "MICROPHONE_PERMISSION":"Untuk merakam Mesej Suara, kami memerlukan akses ke mikrofon anda. Ketik Tetapan dan hidupkan Mikrofon.",
316
+ "CAMERA_PERMISSION":"Kami tidak mempunyai akses kepada kamera anda. Untuk mendayakan akses, ketik Tetapan dan hidupkan Kamera."
315
317
  }
@@ -311,6 +311,7 @@
311
311
  "CHAT_PRIVATELY":"Converse de forma privada",
312
312
  "MESSAGE_PRIVATELY":"Mensagem privada",
313
313
  "TRANSLATE":"Traduza",
314
- "EDIT":"Editar"
315
-
314
+ "EDIT":"Editar",
315
+ "MICROPHONE_PERMISSION":"Para gravar uma mensagem de voz, precisamos acessar seu microfone. Toque em Configurações e ative o microfone.",
316
+ "CAMERA_PERMISSION":"Não temos acesso à sua câmera. Para ativar o acesso, toque em Configurações e ative a Câmera."
316
317
  }
@@ -311,5 +311,7 @@
311
311
  "CHAT_PRIVATELY":"Чат в частном режиме",
312
312
  "MESSAGE_PRIVATELY":"Сообщение конфиденциально",
313
313
  "TRANSLATE":"Перевести",
314
- "EDIT":"Редактировать"
314
+ "EDIT":"Редактировать",
315
+ "MICROPHONE_PERMISSION":"Чтобы записать голосовое сообщение, нам нужен доступ к вашему микрофону. Нажмите «Настройки» и включите «Микрофон».",
316
+ "CAMERA_PERMISSION":"У нас нет доступа к вашей камере. Чтобы разрешить доступ, нажмите Настройки и включите камеру."
315
317
  }
@@ -311,5 +311,7 @@
311
311
  "CHAT_PRIVATELY":"Chatta privat",
312
312
  "MESSAGE_PRIVATELY":"Meddelande privat",
313
313
  "TRANSLATE":"Översätt",
314
- "EDIT":"Redigera"
314
+ "EDIT":"Redigera",
315
+ "MICROPHONE_PERMISSION":"För att spela in ett röstmeddelande behöver vi tillgång till din mikrofon. Tryck på Inställningar och slå på Mikrofon.",
316
+ "CAMERA_PERMISSION":"Vi har inte tillgång till din kamera. Aktivera åtkomst genom att trycka på Inställningar och slå på Kamera."
315
317
  }
@@ -311,5 +311,7 @@
311
311
  "CHAT_PRIVATELY":"私下聊天",
312
312
  "MESSAGE_PRIVATELY":"私下留言",
313
313
  "TRANSLATE":"翻译",
314
- "EDIT":"编辑"
314
+ "EDIT":"编辑",
315
+ "MICROPHONE_PERMISSION":"要录制语音信息,我们需要访问您的麦克风。点击 “设置”,然后打开 “麦克风”。",
316
+ "CAMERA_PERMISSION":"我们无法访问您的相机。要启用访问权限,请点击 “设置”,然后打开 “相机”。"
315
317
  }
@@ -311,5 +311,7 @@
311
311
  "CHAT_PRIVATELY":"私下聊天",
312
312
  "MESSAGE_PRIVATELY":"私下留言",
313
313
  "TRANSLATE":"翻譯",
314
- "EDIT":"編輯"
314
+ "EDIT":"編輯",
315
+ "MICROPHONE_PERMISSION":"要錄製語音消息,我們需要訪問您的麥克風。點選設定,然後開啟麥克風。",
316
+ "CAMERA_PERMISSION":"我們無法訪問您的相機。若要啟用存取權,請點選設定並開啟「相機」。"
315
317
  }
@@ -42,6 +42,10 @@ export const getUnixTimestamp = () => {
42
42
  return Math.round(+new Date() / 1000);
43
43
  };
44
44
 
45
+ export const getUnixTimestampInMilliseconds = () => {
46
+ return Math.round(+new Date());
47
+ }
48
+
45
49
  export const formatBytes = (bytes, decimals = 2) => {
46
50
  if (bytes === 0) return "0 Bytes";
47
51
 
@@ -5,7 +5,7 @@ import { CometChatMessageBubble } from "../views/CometChatMessageBubble";
5
5
  import { CometChatTheme } from "../resources";
6
6
  import { ChatConfigurator } from "../framework";
7
7
  import { CometChatMessageTemplate } from "../modals";
8
- import { MessageBubbleAlignmentType } from "../base/Types";
8
+ import { BaseStyle, MessageBubbleAlignmentType } from "../base";
9
9
 
10
10
  type MessageViewType = {
11
11
  message: CometChat.BaseMessage,
@@ -14,9 +14,9 @@ type MessageViewType = {
14
14
  theme?: CometChatTheme,
15
15
  }
16
16
 
17
- const MessageContentView = (props:{message: CometChat.BaseMessage, alignment: MessageBubbleAlignmentType, theme: CometChatTheme}) => {
17
+ const MessageContentView = (props: { message: CometChat.BaseMessage, alignment: MessageBubbleAlignmentType, theme: CometChatTheme }) => {
18
18
  const {
19
- message,
19
+ message,
20
20
  alignment,
21
21
  theme
22
22
  } = props;
@@ -48,12 +48,21 @@ export const MessageUtils = {
48
48
  alignment,
49
49
  theme,
50
50
  } = params
51
+
52
+ const getStyle = (item: CometChat.BaseMessage) => {
53
+ let _style: BaseStyle = {};
54
+
55
+ _style.backgroundColor = (alignment !== "left" && (item.getType() === MessageTypeConstants.text || item.getType() === MessageTypeConstants.meeting)) ? theme?.palette.getPrimary() : theme?.palette.getAccent50();
56
+
57
+ return _style;
58
+ };
59
+
51
60
  return <CometChatMessageBubble
52
61
  id={`${message.getId()}`}
53
62
  alignment={alignment}
54
63
  ContentView={template?.ContentView?.bind(this, message, alignment) || MessageContentView.bind(this, message, alignment, theme)}
55
64
  BottomView={template?.BottomView && template?.BottomView?.bind(this, message, alignment)}
56
- style={{backgroundColor: theme?.palette?.getPrimary()}}
57
- />;
65
+ style={getStyle(message)}
66
+ />;
58
67
  }
59
68
  }
@@ -121,7 +121,7 @@ class PermissionUtilIOS {
121
121
  }
122
122
  }
123
123
  if (allResourcesAllowed === false) {
124
- Alert.alert(localize('RESOURCE_PERMISSION_REQUIRED'), undefined, [
124
+ Alert.alert(undefined, localize('CAMERA_PERMISSION'), [
125
125
  {
126
126
  style: 'cancel',
127
127
  text: localize('CANCEL'),
@@ -132,6 +132,13 @@ export const CometChatImageBubble = (props: CometChatImageBubbleInterface) => {
132
132
  }
133
133
  }, []);
134
134
 
135
+ function getImage(imageUrl: ImageType) {
136
+ if (typeof imageUrl === "object" && imageUrl.uri) {
137
+ return { uri: imageUrl.uri };
138
+ }
139
+ return imageUrl;
140
+ }
141
+
135
142
  return (
136
143
  <>
137
144
  {
@@ -156,7 +163,7 @@ export const CometChatImageBubble = (props: CometChatImageBubbleInterface) => {
156
163
  ? <View>
157
164
  <Image
158
165
  resizeMode={"contain"}
159
- source={ICONS.Spinner}
166
+ source={getImage(placeHolderImage) || ICONS.Spinner}
160
167
  style={{
161
168
  height: 20,
162
169
  width: 20,
@@ -166,8 +173,8 @@ export const CometChatImageBubble = (props: CometChatImageBubbleInterface) => {
166
173
  </View>
167
174
  : <Image
168
175
  resizeMode={resizeMode || "cover"}
169
- loadingIndicatorSource={ICONS.Spinner}
170
- source={thumbnailUrl ?? imageUrl}
176
+ loadingIndicatorSource={getImage(placeHolderImage) || ICONS.Spinner}
177
+ source={getImage(thumbnailUrl) || getImage(imageUrl)}
171
178
  style={{
172
179
  height,
173
180
  width,