@ethora/chat-component-rn 26.7.10 → 26.8.1

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 (667) hide show
  1. package/CHANGELOG.md +0 -96
  2. package/README.md +10 -43
  3. package/lib/commonjs/assets/icons.js +2 -7
  4. package/lib/commonjs/assets/icons.js.map +1 -1
  5. package/lib/commonjs/components/AuthForms/Login.js +4 -4
  6. package/lib/commonjs/components/AuthForms/Login.js.map +1 -1
  7. package/lib/commonjs/components/Header/HeaderRoomList.js +7 -26
  8. package/lib/commonjs/components/Header/HeaderRoomList.js.map +1 -1
  9. package/lib/commonjs/components/MainComponents/ChatHeader.js +3 -9
  10. package/lib/commonjs/components/MainComponents/ChatHeader.js.map +1 -1
  11. package/lib/commonjs/components/MainComponents/ChatRoom.js +14 -150
  12. package/lib/commonjs/components/MainComponents/ChatRoom.js.map +1 -1
  13. package/lib/commonjs/components/MainComponents/ChatWrapper.js +38 -34
  14. package/lib/commonjs/components/MainComponents/ChatWrapper.js.map +1 -1
  15. package/lib/commonjs/components/MainComponents/LoginWrapper.js +1 -2
  16. package/lib/commonjs/components/MainComponents/LoginWrapper.js.map +1 -1
  17. package/lib/commonjs/components/MainComponents/MediaMessage.js +9 -29
  18. package/lib/commonjs/components/MainComponents/MediaMessage.js.map +1 -1
  19. package/lib/commonjs/components/MainComponents/MessageContainer.js +1 -5
  20. package/lib/commonjs/components/MainComponents/MessageContainer.js.map +1 -1
  21. package/lib/commonjs/components/MainComponents/MessageList.js +5 -13
  22. package/lib/commonjs/components/MainComponents/MessageList.js.map +1 -1
  23. package/lib/commonjs/components/MainComponents/ProfileImagePlaceholder.js +13 -14
  24. package/lib/commonjs/components/MainComponents/ProfileImagePlaceholder.js.map +1 -1
  25. package/lib/commonjs/components/MainComponents/ReduxWrapper.js +24 -3
  26. package/lib/commonjs/components/MainComponents/ReduxWrapper.js.map +1 -1
  27. package/lib/commonjs/components/MainComponents/RoomList.js +35 -208
  28. package/lib/commonjs/components/MainComponents/RoomList.js.map +1 -1
  29. package/lib/commonjs/components/Menu/HeaderRoomListMenu.js +98 -317
  30. package/lib/commonjs/components/Menu/HeaderRoomListMenu.js.map +1 -1
  31. package/lib/commonjs/components/MessageBubble/MessageTranslate.js +16 -7
  32. package/lib/commonjs/components/MessageBubble/MessageTranslate.js.map +1 -1
  33. package/lib/commonjs/components/Modals/AttachSheet/AttachSheet.js +112 -320
  34. package/lib/commonjs/components/Modals/AttachSheet/AttachSheet.js.map +1 -1
  35. package/lib/commonjs/components/Modals/ChatProfileModal/ChatProfileModal.js +215 -556
  36. package/lib/commonjs/components/Modals/ChatProfileModal/ChatProfileModal.js.map +1 -1
  37. package/lib/commonjs/components/Modals/ChatProfileModal/DeleteChatModal.js +9 -7
  38. package/lib/commonjs/components/Modals/ChatProfileModal/DeleteChatModal.js.map +1 -1
  39. package/lib/commonjs/components/Modals/FilePreviewModal/FilePreviewModal.js +27 -69
  40. package/lib/commonjs/components/Modals/FilePreviewModal/FilePreviewModal.js.map +1 -1
  41. package/lib/commonjs/components/Modals/FilePreviewModal/PdfView.js +1 -2
  42. package/lib/commonjs/components/Modals/FilePreviewModal/PdfView.js.map +1 -1
  43. package/lib/commonjs/components/Modals/Modal/Modal.js +0 -8
  44. package/lib/commonjs/components/Modals/Modal/Modal.js.map +1 -1
  45. package/lib/commonjs/components/Modals/NewChatModal/ModalContent.js +1 -2
  46. package/lib/commonjs/components/Modals/NewChatModal/ModalContent.js.map +1 -1
  47. package/lib/commonjs/components/Modals/NewChatModal/NewChatModal.js +109 -205
  48. package/lib/commonjs/components/Modals/NewChatModal/NewChatModal.js.map +1 -1
  49. package/lib/commonjs/components/Modals/NewChatModal/UpdNewChatModal.js +0 -8
  50. package/lib/commonjs/components/Modals/NewChatModal/UpdNewChatModal.js.map +1 -1
  51. package/lib/commonjs/components/Modals/SelectUsersModal/SelectUsersModal.js +2 -4
  52. package/lib/commonjs/components/Modals/SelectUsersModal/SelectUsersModal.js.map +1 -1
  53. package/lib/commonjs/components/Modals/UserProfileModal/EditUserModal.js +21 -7
  54. package/lib/commonjs/components/Modals/UserProfileModal/EditUserModal.js.map +1 -1
  55. package/lib/commonjs/components/Modals/UserProfileModal/UserProfileModal.js +244 -507
  56. package/lib/commonjs/components/Modals/UserProfileModal/UserProfileModal.js.map +1 -1
  57. package/lib/commonjs/components/Modals/UserSettingsModal/UserSettingsModal.js +46 -74
  58. package/lib/commonjs/components/Modals/UserSettingsModal/UserSettingsModal.js.map +1 -1
  59. package/lib/commonjs/components/Modals/styledModalComponents.js +2 -9
  60. package/lib/commonjs/components/Modals/styledModalComponents.js.map +1 -1
  61. package/lib/commonjs/components/RoomComponents/ChatRoomItem.js +39 -23
  62. package/lib/commonjs/components/RoomComponents/ChatRoomItem.js.map +1 -1
  63. package/lib/commonjs/components/RoomComponents/styled/LastMessageFile.js +3 -22
  64. package/lib/commonjs/components/RoomComponents/styled/LastMessageFile.js.map +1 -1
  65. package/lib/commonjs/components/RoomComponents/styled/LastMessagePhoto.js +3 -17
  66. package/lib/commonjs/components/RoomComponents/styled/LastMessagePhoto.js.map +1 -1
  67. package/lib/commonjs/components/RoomComponents/styled/LastMessageVideo.js +3 -17
  68. package/lib/commonjs/components/RoomComponents/styled/LastMessageVideo.js.map +1 -1
  69. package/lib/commonjs/components/VideoCalls/VideoCallSession.js +3 -6
  70. package/lib/commonjs/components/VideoCalls/VideoCallSession.js.map +1 -1
  71. package/lib/commonjs/components/styled/AudioMessage.js +1 -2
  72. package/lib/commonjs/components/styled/AudioMessage.js.map +1 -1
  73. package/lib/commonjs/components/styled/DateLabel.js +10 -3
  74. package/lib/commonjs/components/styled/DateLabel.js.map +1 -1
  75. package/lib/commonjs/components/styled/MessageImage.js +9 -37
  76. package/lib/commonjs/components/styled/MessageImage.js.map +1 -1
  77. package/lib/commonjs/components/styled/NewMessageLabel.js +3 -1
  78. package/lib/commonjs/components/styled/NewMessageLabel.js.map +1 -1
  79. package/lib/commonjs/components/styled/SendInput.js +17 -86
  80. package/lib/commonjs/components/styled/SendInput.js.map +1 -1
  81. package/lib/commonjs/components/styled/StyledComponents.js +3 -9
  82. package/lib/commonjs/components/styled/StyledComponents.js.map +1 -1
  83. package/lib/commonjs/components/styled/StyledInputComponents/StyledInputComponents.js +4 -11
  84. package/lib/commonjs/components/styled/StyledInputComponents/StyledInputComponents.js.map +1 -1
  85. package/lib/commonjs/components/styled/UnsupportedType.js +4 -14
  86. package/lib/commonjs/components/styled/UnsupportedType.js.map +1 -1
  87. package/lib/commonjs/components/styled/VideoMessage.js +61 -119
  88. package/lib/commonjs/components/styled/VideoMessage.js.map +1 -1
  89. package/lib/commonjs/context/xmppProvider.js +59 -177
  90. package/lib/commonjs/context/xmppProvider.js.map +1 -1
  91. package/lib/commonjs/helpers/createMessageFromXml.js +1 -19
  92. package/lib/commonjs/helpers/createMessageFromXml.js.map +1 -1
  93. package/lib/commonjs/helpers/ensureScopedChatCache.js +2 -2
  94. package/lib/commonjs/helpers/ensureScopedChatCache.js.map +1 -1
  95. package/lib/commonjs/helpers/getDataFromXml.js +24 -1
  96. package/lib/commonjs/helpers/getDataFromXml.js.map +1 -1
  97. package/lib/commonjs/helpers/historyPreloadScheduler.js +2 -65
  98. package/lib/commonjs/helpers/historyPreloadScheduler.js.map +1 -1
  99. package/lib/commonjs/helpers/initXmppRooms.js +8 -14
  100. package/lib/commonjs/helpers/initXmppRooms.js.map +1 -1
  101. package/lib/commonjs/helpers/insertMessageWithDelimiter.js +22 -51
  102. package/lib/commonjs/helpers/insertMessageWithDelimiter.js.map +1 -1
  103. package/lib/commonjs/helpers/isUnresolvedSenderId.js +6 -1
  104. package/lib/commonjs/helpers/isUnresolvedSenderId.js.map +1 -1
  105. package/lib/commonjs/helpers/keyboardLayout.js +2 -12
  106. package/lib/commonjs/helpers/keyboardLayout.js.map +1 -1
  107. package/lib/commonjs/helpers/mimeToExtension.js +14 -6
  108. package/lib/commonjs/helpers/mimeToExtension.js.map +1 -1
  109. package/lib/commonjs/helpers/resolveInitBeforeLoadUser.js +17 -130
  110. package/lib/commonjs/helpers/resolveInitBeforeLoadUser.js.map +1 -1
  111. package/lib/commonjs/helpers/resolveLangSource.js +38 -0
  112. package/lib/commonjs/helpers/resolveLangSource.js.map +1 -0
  113. package/lib/commonjs/helpers/xmppUsername.js +39 -0
  114. package/lib/commonjs/helpers/xmppUsername.js.map +1 -0
  115. package/lib/commonjs/hooks/useChatRoomFocus.js +12 -45
  116. package/lib/commonjs/hooks/useChatRoomFocus.js.map +1 -1
  117. package/lib/commonjs/hooks/useChatWrapperInit.js +14 -32
  118. package/lib/commonjs/hooks/useChatWrapperInit.js.map +1 -1
  119. package/lib/commonjs/hooks/useComposing.js +0 -27
  120. package/lib/commonjs/hooks/useComposing.js.map +1 -1
  121. package/lib/commonjs/hooks/useLogout.js +7 -23
  122. package/lib/commonjs/hooks/useLogout.js.map +1 -1
  123. package/lib/commonjs/hooks/usePendingNotification.js +11 -8
  124. package/lib/commonjs/hooks/usePendingNotification.js.map +1 -1
  125. package/lib/commonjs/hooks/useSendMessage.js +14 -50
  126. package/lib/commonjs/hooks/useSendMessage.js.map +1 -1
  127. package/lib/commonjs/hooks/useUnreadMessagesCounter.js +1 -6
  128. package/lib/commonjs/hooks/useUnreadMessagesCounter.js.map +1 -1
  129. package/lib/commonjs/i18n/strings.js +133 -121
  130. package/lib/commonjs/i18n/strings.js.map +1 -1
  131. package/lib/commonjs/i18n/useT.js +1 -1
  132. package/lib/commonjs/main.js +0 -44
  133. package/lib/commonjs/main.js.map +1 -1
  134. package/lib/commonjs/networking/api-requests/auth.api.js +60 -134
  135. package/lib/commonjs/networking/api-requests/auth.api.js.map +1 -1
  136. package/lib/commonjs/networking/api-requests/roomMembers.api.js +1 -1
  137. package/lib/commonjs/networking/api-requests/roomMembers.api.js.map +1 -1
  138. package/lib/commonjs/networking/api-requests/rooms.api.js +9 -9
  139. package/lib/commonjs/networking/api-requests/rooms.api.js.map +1 -1
  140. package/lib/commonjs/networking/api-requests/user.api.js +9 -68
  141. package/lib/commonjs/networking/api-requests/user.api.js.map +1 -1
  142. package/lib/commonjs/networking/apiClient.js +112 -62
  143. package/lib/commonjs/networking/apiClient.js.map +1 -1
  144. package/lib/commonjs/networking/stanzaHandlers.js +51 -93
  145. package/lib/commonjs/networking/stanzaHandlers.js.map +1 -1
  146. package/lib/commonjs/networking/xmpp/flushLastViewedToPrivateStore.js +8 -46
  147. package/lib/commonjs/networking/xmpp/flushLastViewedToPrivateStore.js.map +1 -1
  148. package/lib/commonjs/networking/xmpp/presenceInRoom.xmpp.js +1 -8
  149. package/lib/commonjs/networking/xmpp/presenceInRoom.xmpp.js.map +1 -1
  150. package/lib/commonjs/networking/xmpp/subscribeToRoomMessages.xmpp.js +1 -5
  151. package/lib/commonjs/networking/xmpp/subscribeToRoomMessages.xmpp.js.map +1 -1
  152. package/lib/commonjs/networking/xmppClient.js +8 -124
  153. package/lib/commonjs/networking/xmppClient.js.map +1 -1
  154. package/lib/commonjs/roomStore/chatSettingsSlice.js +7 -26
  155. package/lib/commonjs/roomStore/chatSettingsSlice.js.map +1 -1
  156. package/lib/commonjs/roomStore/index.js +2 -35
  157. package/lib/commonjs/roomStore/index.js.map +1 -1
  158. package/lib/commonjs/roomStore/persistence.js +39 -226
  159. package/lib/commonjs/roomStore/persistence.js.map +1 -1
  160. package/lib/commonjs/roomStore/roomsSlice.js +38 -151
  161. package/lib/commonjs/roomStore/roomsSlice.js.map +1 -1
  162. package/lib/commonjs/services/pushSubscriptionService.js +13 -15
  163. package/lib/commonjs/services/pushSubscriptionService.js.map +1 -1
  164. package/lib/commonjs/version.js +3 -1
  165. package/lib/commonjs/version.js.map +1 -1
  166. package/lib/module/assets/icons.js +1 -6
  167. package/lib/module/assets/icons.js.map +1 -1
  168. package/lib/module/components/AuthForms/Login.js +4 -4
  169. package/lib/module/components/AuthForms/Login.js.map +1 -1
  170. package/lib/module/components/Header/HeaderRoomList.js +7 -26
  171. package/lib/module/components/Header/HeaderRoomList.js.map +1 -1
  172. package/lib/module/components/MainComponents/ChatHeader.js +3 -9
  173. package/lib/module/components/MainComponents/ChatHeader.js.map +1 -1
  174. package/lib/module/components/MainComponents/ChatRoom.js +16 -152
  175. package/lib/module/components/MainComponents/ChatRoom.js.map +1 -1
  176. package/lib/module/components/MainComponents/ChatWrapper.js +40 -36
  177. package/lib/module/components/MainComponents/ChatWrapper.js.map +1 -1
  178. package/lib/module/components/MainComponents/LoginWrapper.js +1 -2
  179. package/lib/module/components/MainComponents/LoginWrapper.js.map +1 -1
  180. package/lib/module/components/MainComponents/MediaMessage.js +10 -30
  181. package/lib/module/components/MainComponents/MediaMessage.js.map +1 -1
  182. package/lib/module/components/MainComponents/MessageContainer.js +1 -5
  183. package/lib/module/components/MainComponents/MessageContainer.js.map +1 -1
  184. package/lib/module/components/MainComponents/MessageList.js +5 -13
  185. package/lib/module/components/MainComponents/MessageList.js.map +1 -1
  186. package/lib/module/components/MainComponents/ProfileImagePlaceholder.js +13 -14
  187. package/lib/module/components/MainComponents/ProfileImagePlaceholder.js.map +1 -1
  188. package/lib/module/components/MainComponents/ReduxWrapper.js +26 -5
  189. package/lib/module/components/MainComponents/ReduxWrapper.js.map +1 -1
  190. package/lib/module/components/MainComponents/RoomList.js +35 -207
  191. package/lib/module/components/MainComponents/RoomList.js.map +1 -1
  192. package/lib/module/components/Menu/HeaderRoomListMenu.js +101 -319
  193. package/lib/module/components/Menu/HeaderRoomListMenu.js.map +1 -1
  194. package/lib/module/components/MessageBubble/MessageTranslate.js +16 -7
  195. package/lib/module/components/MessageBubble/MessageTranslate.js.map +1 -1
  196. package/lib/module/components/Modals/AttachSheet/AttachSheet.js +115 -311
  197. package/lib/module/components/Modals/AttachSheet/AttachSheet.js.map +1 -1
  198. package/lib/module/components/Modals/ChatProfileModal/ChatProfileModal.js +219 -559
  199. package/lib/module/components/Modals/ChatProfileModal/ChatProfileModal.js.map +1 -1
  200. package/lib/module/components/Modals/ChatProfileModal/DeleteChatModal.js +9 -7
  201. package/lib/module/components/Modals/ChatProfileModal/DeleteChatModal.js.map +1 -1
  202. package/lib/module/components/Modals/FilePreviewModal/FilePreviewModal.js +28 -70
  203. package/lib/module/components/Modals/FilePreviewModal/FilePreviewModal.js.map +1 -1
  204. package/lib/module/components/Modals/FilePreviewModal/PdfView.js +1 -2
  205. package/lib/module/components/Modals/FilePreviewModal/PdfView.js.map +1 -1
  206. package/lib/module/components/Modals/Modal/Modal.js +1 -9
  207. package/lib/module/components/Modals/Modal/Modal.js.map +1 -1
  208. package/lib/module/components/Modals/NewChatModal/ModalContent.js +1 -2
  209. package/lib/module/components/Modals/NewChatModal/ModalContent.js.map +1 -1
  210. package/lib/module/components/Modals/NewChatModal/NewChatModal.js +111 -208
  211. package/lib/module/components/Modals/NewChatModal/NewChatModal.js.map +1 -1
  212. package/lib/module/components/Modals/NewChatModal/UpdNewChatModal.js +0 -8
  213. package/lib/module/components/Modals/NewChatModal/UpdNewChatModal.js.map +1 -1
  214. package/lib/module/components/Modals/SelectUsersModal/SelectUsersModal.js +2 -4
  215. package/lib/module/components/Modals/SelectUsersModal/SelectUsersModal.js.map +1 -1
  216. package/lib/module/components/Modals/UserProfileModal/EditUserModal.js +23 -9
  217. package/lib/module/components/Modals/UserProfileModal/EditUserModal.js.map +1 -1
  218. package/lib/module/components/Modals/UserProfileModal/UserProfileModal.js +248 -509
  219. package/lib/module/components/Modals/UserProfileModal/UserProfileModal.js.map +1 -1
  220. package/lib/module/components/Modals/UserSettingsModal/UserSettingsModal.js +48 -76
  221. package/lib/module/components/Modals/UserSettingsModal/UserSettingsModal.js.map +1 -1
  222. package/lib/module/components/Modals/styledModalComponents.js +2 -9
  223. package/lib/module/components/Modals/styledModalComponents.js.map +1 -1
  224. package/lib/module/components/RoomComponents/ChatRoomItem.js +40 -24
  225. package/lib/module/components/RoomComponents/ChatRoomItem.js.map +1 -1
  226. package/lib/module/components/RoomComponents/styled/LastMessageFile.js +3 -22
  227. package/lib/module/components/RoomComponents/styled/LastMessageFile.js.map +1 -1
  228. package/lib/module/components/RoomComponents/styled/LastMessagePhoto.js +3 -17
  229. package/lib/module/components/RoomComponents/styled/LastMessagePhoto.js.map +1 -1
  230. package/lib/module/components/RoomComponents/styled/LastMessageVideo.js +3 -17
  231. package/lib/module/components/RoomComponents/styled/LastMessageVideo.js.map +1 -1
  232. package/lib/module/components/VideoCalls/VideoCallSession.js +3 -6
  233. package/lib/module/components/VideoCalls/VideoCallSession.js.map +1 -1
  234. package/lib/module/components/styled/AudioMessage.js +1 -2
  235. package/lib/module/components/styled/AudioMessage.js.map +1 -1
  236. package/lib/module/components/styled/DateLabel.js +10 -3
  237. package/lib/module/components/styled/DateLabel.js.map +1 -1
  238. package/lib/module/components/styled/MessageImage.js +9 -37
  239. package/lib/module/components/styled/MessageImage.js.map +1 -1
  240. package/lib/module/components/styled/NewMessageLabel.js +3 -1
  241. package/lib/module/components/styled/NewMessageLabel.js.map +1 -1
  242. package/lib/module/components/styled/SendInput.js +18 -87
  243. package/lib/module/components/styled/SendInput.js.map +1 -1
  244. package/lib/module/components/styled/StyledComponents.js +3 -9
  245. package/lib/module/components/styled/StyledComponents.js.map +1 -1
  246. package/lib/module/components/styled/StyledInputComponents/StyledInputComponents.js +4 -11
  247. package/lib/module/components/styled/StyledInputComponents/StyledInputComponents.js.map +1 -1
  248. package/lib/module/components/styled/UnsupportedType.js +4 -14
  249. package/lib/module/components/styled/UnsupportedType.js.map +1 -1
  250. package/lib/module/components/styled/VideoMessage.js +62 -120
  251. package/lib/module/components/styled/VideoMessage.js.map +1 -1
  252. package/lib/module/context/xmppProvider.js +60 -177
  253. package/lib/module/context/xmppProvider.js.map +1 -1
  254. package/lib/module/helpers/createMessageFromXml.js +1 -19
  255. package/lib/module/helpers/createMessageFromXml.js.map +1 -1
  256. package/lib/module/helpers/ensureScopedChatCache.js +2 -2
  257. package/lib/module/helpers/ensureScopedChatCache.js.map +1 -1
  258. package/lib/module/helpers/getDataFromXml.js +23 -1
  259. package/lib/module/helpers/getDataFromXml.js.map +1 -1
  260. package/lib/module/helpers/historyPreloadScheduler.js +3 -66
  261. package/lib/module/helpers/historyPreloadScheduler.js.map +1 -1
  262. package/lib/module/helpers/initXmppRooms.js +8 -14
  263. package/lib/module/helpers/initXmppRooms.js.map +1 -1
  264. package/lib/module/helpers/insertMessageWithDelimiter.js +22 -52
  265. package/lib/module/helpers/insertMessageWithDelimiter.js.map +1 -1
  266. package/lib/module/helpers/isUnresolvedSenderId.js +6 -1
  267. package/lib/module/helpers/isUnresolvedSenderId.js.map +1 -1
  268. package/lib/module/helpers/keyboardLayout.js +2 -12
  269. package/lib/module/helpers/keyboardLayout.js.map +1 -1
  270. package/lib/module/helpers/mimeToExtension.js +13 -6
  271. package/lib/module/helpers/mimeToExtension.js.map +1 -1
  272. package/lib/module/helpers/resolveInitBeforeLoadUser.js +16 -130
  273. package/lib/module/helpers/resolveInitBeforeLoadUser.js.map +1 -1
  274. package/lib/module/helpers/resolveLangSource.js +32 -0
  275. package/lib/module/helpers/resolveLangSource.js.map +1 -0
  276. package/lib/module/helpers/xmppUsername.js +35 -0
  277. package/lib/module/helpers/xmppUsername.js.map +1 -0
  278. package/lib/module/hooks/useChatRoomFocus.js +13 -46
  279. package/lib/module/hooks/useChatRoomFocus.js.map +1 -1
  280. package/lib/module/hooks/useChatWrapperInit.js +14 -32
  281. package/lib/module/hooks/useChatWrapperInit.js.map +1 -1
  282. package/lib/module/hooks/useComposing.js +1 -28
  283. package/lib/module/hooks/useComposing.js.map +1 -1
  284. package/lib/module/hooks/useLogout.js +7 -23
  285. package/lib/module/hooks/useLogout.js.map +1 -1
  286. package/lib/module/hooks/usePendingNotification.js +11 -8
  287. package/lib/module/hooks/usePendingNotification.js.map +1 -1
  288. package/lib/module/hooks/useSendMessage.js +16 -52
  289. package/lib/module/hooks/useSendMessage.js.map +1 -1
  290. package/lib/module/hooks/useUnreadMessagesCounter.js +1 -6
  291. package/lib/module/hooks/useUnreadMessagesCounter.js.map +1 -1
  292. package/lib/module/i18n/strings.js +133 -121
  293. package/lib/module/i18n/strings.js.map +1 -1
  294. package/lib/module/i18n/useT.js +1 -1
  295. package/lib/module/main.js +2 -14
  296. package/lib/module/main.js.map +1 -1
  297. package/lib/module/networking/api-requests/auth.api.js +59 -131
  298. package/lib/module/networking/api-requests/auth.api.js.map +1 -1
  299. package/lib/module/networking/api-requests/roomMembers.api.js +1 -1
  300. package/lib/module/networking/api-requests/roomMembers.api.js.map +1 -1
  301. package/lib/module/networking/api-requests/rooms.api.js +9 -9
  302. package/lib/module/networking/api-requests/rooms.api.js.map +1 -1
  303. package/lib/module/networking/api-requests/user.api.js +7 -64
  304. package/lib/module/networking/api-requests/user.api.js.map +1 -1
  305. package/lib/module/networking/apiClient.js +113 -61
  306. package/lib/module/networking/apiClient.js.map +1 -1
  307. package/lib/module/networking/stanzaHandlers.js +52 -94
  308. package/lib/module/networking/stanzaHandlers.js.map +1 -1
  309. package/lib/module/networking/xmpp/flushLastViewedToPrivateStore.js +8 -46
  310. package/lib/module/networking/xmpp/flushLastViewedToPrivateStore.js.map +1 -1
  311. package/lib/module/networking/xmpp/presenceInRoom.xmpp.js +1 -8
  312. package/lib/module/networking/xmpp/presenceInRoom.xmpp.js.map +1 -1
  313. package/lib/module/networking/xmpp/subscribeToRoomMessages.xmpp.js +1 -5
  314. package/lib/module/networking/xmpp/subscribeToRoomMessages.xmpp.js.map +1 -1
  315. package/lib/module/networking/xmppClient.js +8 -124
  316. package/lib/module/networking/xmppClient.js.map +1 -1
  317. package/lib/module/roomStore/chatSettingsSlice.js +7 -26
  318. package/lib/module/roomStore/chatSettingsSlice.js.map +1 -1
  319. package/lib/module/roomStore/index.js +4 -37
  320. package/lib/module/roomStore/index.js.map +1 -1
  321. package/lib/module/roomStore/persistence.js +38 -223
  322. package/lib/module/roomStore/persistence.js.map +1 -1
  323. package/lib/module/roomStore/roomsSlice.js +34 -139
  324. package/lib/module/roomStore/roomsSlice.js.map +1 -1
  325. package/lib/module/services/pushSubscriptionService.js +13 -15
  326. package/lib/module/services/pushSubscriptionService.js.map +1 -1
  327. package/lib/module/version.js +3 -1
  328. package/lib/module/version.js.map +1 -1
  329. package/lib/typescript/assets/icons.d.ts +0 -16
  330. package/lib/typescript/assets/icons.d.ts.map +1 -1
  331. package/lib/typescript/components/AuthForms/Login.d.ts.map +1 -1
  332. package/lib/typescript/components/Header/HeaderRoomList.d.ts.map +1 -1
  333. package/lib/typescript/components/MainComponents/ChatHeader.d.ts.map +1 -1
  334. package/lib/typescript/components/MainComponents/ChatRoom.d.ts.map +1 -1
  335. package/lib/typescript/components/MainComponents/ChatWrapper.d.ts.map +1 -1
  336. package/lib/typescript/components/MainComponents/LoginWrapper.d.ts.map +1 -1
  337. package/lib/typescript/components/MainComponents/MediaMessage.d.ts.map +1 -1
  338. package/lib/typescript/components/MainComponents/MessageContainer.d.ts.map +1 -1
  339. package/lib/typescript/components/MainComponents/MessageList.d.ts +1 -10
  340. package/lib/typescript/components/MainComponents/MessageList.d.ts.map +1 -1
  341. package/lib/typescript/components/MainComponents/ProfileImagePlaceholder.d.ts.map +1 -1
  342. package/lib/typescript/components/MainComponents/ReduxWrapper.d.ts.map +1 -1
  343. package/lib/typescript/components/MainComponents/RoomList.d.ts +0 -7
  344. package/lib/typescript/components/MainComponents/RoomList.d.ts.map +1 -1
  345. package/lib/typescript/components/Menu/HeaderRoomListMenu.d.ts +0 -3
  346. package/lib/typescript/components/Menu/HeaderRoomListMenu.d.ts.map +1 -1
  347. package/lib/typescript/components/MessageBubble/MessageTranslate.d.ts.map +1 -1
  348. package/lib/typescript/components/Modals/AttachSheet/AttachSheet.d.ts +0 -9
  349. package/lib/typescript/components/Modals/AttachSheet/AttachSheet.d.ts.map +1 -1
  350. package/lib/typescript/components/Modals/ChatProfileModal/ChatProfileModal.d.ts +0 -10
  351. package/lib/typescript/components/Modals/ChatProfileModal/ChatProfileModal.d.ts.map +1 -1
  352. package/lib/typescript/components/Modals/ChatProfileModal/DeleteChatModal.d.ts.map +1 -1
  353. package/lib/typescript/components/Modals/FilePreviewModal/FilePreviewModal.d.ts.map +1 -1
  354. package/lib/typescript/components/Modals/FilePreviewModal/PdfView.d.ts.map +1 -1
  355. package/lib/typescript/components/Modals/Modal/Modal.d.ts.map +1 -1
  356. package/lib/typescript/components/Modals/NewChatModal/ModalContent.d.ts +2 -4
  357. package/lib/typescript/components/Modals/NewChatModal/ModalContent.d.ts.map +1 -1
  358. package/lib/typescript/components/Modals/NewChatModal/NewChatModal.d.ts +1 -1
  359. package/lib/typescript/components/Modals/NewChatModal/NewChatModal.d.ts.map +1 -1
  360. package/lib/typescript/components/Modals/NewChatModal/UpdNewChatModal.d.ts.map +1 -1
  361. package/lib/typescript/components/Modals/SelectUsersModal/SelectUsersModal.d.ts +1 -6
  362. package/lib/typescript/components/Modals/SelectUsersModal/SelectUsersModal.d.ts.map +1 -1
  363. package/lib/typescript/components/Modals/UserProfileModal/EditUserModal.d.ts.map +1 -1
  364. package/lib/typescript/components/Modals/UserProfileModal/UserProfileModal.d.ts +0 -16
  365. package/lib/typescript/components/Modals/UserProfileModal/UserProfileModal.d.ts.map +1 -1
  366. package/lib/typescript/components/Modals/UserSettingsModal/UserSettingsModal.d.ts +0 -1
  367. package/lib/typescript/components/Modals/UserSettingsModal/UserSettingsModal.d.ts.map +1 -1
  368. package/lib/typescript/components/Modals/styledModalComponents.d.ts.map +1 -1
  369. package/lib/typescript/components/RoomComponents/ChatRoomItem.d.ts.map +1 -1
  370. package/lib/typescript/components/RoomComponents/styled/LastMessageFile.d.ts +1 -1
  371. package/lib/typescript/components/RoomComponents/styled/LastMessageFile.d.ts.map +1 -1
  372. package/lib/typescript/components/RoomComponents/styled/LastMessagePhoto.d.ts +1 -1
  373. package/lib/typescript/components/RoomComponents/styled/LastMessagePhoto.d.ts.map +1 -1
  374. package/lib/typescript/components/RoomComponents/styled/LastMessageVideo.d.ts +1 -1
  375. package/lib/typescript/components/RoomComponents/styled/LastMessageVideo.d.ts.map +1 -1
  376. package/lib/typescript/components/VideoCalls/VideoCallSession.d.ts.map +1 -1
  377. package/lib/typescript/components/styled/AudioMessage.d.ts.map +1 -1
  378. package/lib/typescript/components/styled/DateLabel.d.ts.map +1 -1
  379. package/lib/typescript/components/styled/MessageImage.d.ts +0 -14
  380. package/lib/typescript/components/styled/MessageImage.d.ts.map +1 -1
  381. package/lib/typescript/components/styled/NewMessageLabel.d.ts.map +1 -1
  382. package/lib/typescript/components/styled/SendInput.d.ts.map +1 -1
  383. package/lib/typescript/components/styled/StyledComponents.d.ts.map +1 -1
  384. package/lib/typescript/components/styled/StyledInputComponents/StyledInputComponents.d.ts.map +1 -1
  385. package/lib/typescript/components/styled/UnsupportedType.d.ts.map +1 -1
  386. package/lib/typescript/components/styled/VideoMessage.d.ts +0 -8
  387. package/lib/typescript/components/styled/VideoMessage.d.ts.map +1 -1
  388. package/lib/typescript/context/xmppProvider.d.ts.map +1 -1
  389. package/lib/typescript/helpers/createMessageFromXml.d.ts.map +1 -1
  390. package/lib/typescript/helpers/getDataFromXml.d.ts.map +1 -1
  391. package/lib/typescript/helpers/historyPreloadScheduler.d.ts.map +1 -1
  392. package/lib/typescript/helpers/initXmppRooms.d.ts.map +1 -1
  393. package/lib/typescript/helpers/insertMessageWithDelimiter.d.ts +1 -1
  394. package/lib/typescript/helpers/insertMessageWithDelimiter.d.ts.map +1 -1
  395. package/lib/typescript/helpers/isUnresolvedSenderId.d.ts.map +1 -1
  396. package/lib/typescript/helpers/keyboardLayout.d.ts +1 -5
  397. package/lib/typescript/helpers/keyboardLayout.d.ts.map +1 -1
  398. package/lib/typescript/helpers/mimeToExtension.d.ts +15 -0
  399. package/lib/typescript/helpers/mimeToExtension.d.ts.map +1 -1
  400. package/lib/typescript/helpers/resolveInitBeforeLoadUser.d.ts.map +1 -1
  401. package/lib/typescript/helpers/resolveLangSource.d.ts +30 -0
  402. package/lib/typescript/helpers/resolveLangSource.d.ts.map +1 -0
  403. package/lib/typescript/helpers/xmppUsername.d.ts +13 -0
  404. package/lib/typescript/helpers/xmppUsername.d.ts.map +1 -0
  405. package/lib/typescript/hooks/useChatRoomFocus.d.ts +1 -4
  406. package/lib/typescript/hooks/useChatRoomFocus.d.ts.map +1 -1
  407. package/lib/typescript/hooks/useChatWrapperInit.d.ts.map +1 -1
  408. package/lib/typescript/hooks/useComposing.d.ts.map +1 -1
  409. package/lib/typescript/hooks/useLogout.d.ts.map +1 -1
  410. package/lib/typescript/hooks/usePendingNotification.d.ts.map +1 -1
  411. package/lib/typescript/hooks/useSendMessage.d.ts.map +1 -1
  412. package/lib/typescript/hooks/useUnreadMessagesCounter.d.ts +0 -1
  413. package/lib/typescript/hooks/useUnreadMessagesCounter.d.ts.map +1 -1
  414. package/lib/typescript/i18n/strings.d.ts.map +1 -1
  415. package/lib/typescript/i18n/useT.d.ts +1 -1
  416. package/lib/typescript/main.d.ts +2 -9
  417. package/lib/typescript/main.d.ts.map +1 -1
  418. package/lib/typescript/networking/api-requests/auth.api.d.ts +1 -3
  419. package/lib/typescript/networking/api-requests/auth.api.d.ts.map +1 -1
  420. package/lib/typescript/networking/api-requests/user.api.d.ts +0 -27
  421. package/lib/typescript/networking/api-requests/user.api.d.ts.map +1 -1
  422. package/lib/typescript/networking/apiClient.d.ts +6 -12
  423. package/lib/typescript/networking/apiClient.d.ts.map +1 -1
  424. package/lib/typescript/networking/stanzaHandlers.d.ts.map +1 -1
  425. package/lib/typescript/networking/xmpp/flushLastViewedToPrivateStore.d.ts +2 -10
  426. package/lib/typescript/networking/xmpp/flushLastViewedToPrivateStore.d.ts.map +1 -1
  427. package/lib/typescript/networking/xmpp/presenceInRoom.xmpp.d.ts.map +1 -1
  428. package/lib/typescript/networking/xmpp/subscribeToRoomMessages.xmpp.d.ts.map +1 -1
  429. package/lib/typescript/networking/xmppClient.d.ts +0 -14
  430. package/lib/typescript/networking/xmppClient.d.ts.map +1 -1
  431. package/lib/typescript/roomStore/chatSettingsSlice.d.ts +0 -16
  432. package/lib/typescript/roomStore/chatSettingsSlice.d.ts.map +1 -1
  433. package/lib/typescript/roomStore/index.d.ts.map +1 -1
  434. package/lib/typescript/roomStore/persistence.d.ts +1 -18
  435. package/lib/typescript/roomStore/persistence.d.ts.map +1 -1
  436. package/lib/typescript/roomStore/roomsSlice.d.ts +3 -43
  437. package/lib/typescript/roomStore/roomsSlice.d.ts.map +1 -1
  438. package/lib/typescript/services/pushSubscriptionService.d.ts +1 -1
  439. package/lib/typescript/services/pushSubscriptionService.d.ts.map +1 -1
  440. package/lib/typescript/types/types.d.ts +5 -50
  441. package/lib/typescript/types/types.d.ts.map +1 -1
  442. package/lib/typescript/version.d.ts +1 -1
  443. package/lib/typescript/version.d.ts.map +1 -1
  444. package/package.json +29 -41
  445. package/src/assets/icons.tsx +9 -48
  446. package/src/components/AuthForms/Login.tsx +3 -3
  447. package/src/components/Header/HeaderRoomList.tsx +6 -24
  448. package/src/components/MainComponents/ChatHeader.tsx +3 -9
  449. package/src/components/MainComponents/ChatRoom.tsx +15 -161
  450. package/src/components/MainComponents/ChatWrapper.tsx +53 -36
  451. package/src/components/MainComponents/LoginWrapper.tsx +0 -1
  452. package/src/components/MainComponents/MediaMessage.tsx +8 -26
  453. package/src/components/MainComponents/MessageContainer.tsx +1 -5
  454. package/src/components/MainComponents/MessageList.tsx +4 -23
  455. package/src/components/MainComponents/ProfileImagePlaceholder.tsx +14 -21
  456. package/src/components/MainComponents/ReduxWrapper.tsx +18 -1
  457. package/src/components/MainComponents/RoomList.tsx +39 -236
  458. package/src/components/Menu/HeaderRoomListMenu.tsx +75 -328
  459. package/src/components/MessageBubble/MessageTranslate.tsx +17 -12
  460. package/src/components/Modals/AttachSheet/AttachSheet.tsx +99 -331
  461. package/src/components/Modals/ChatProfileModal/ChatProfileModal.tsx +293 -611
  462. package/src/components/Modals/ChatProfileModal/DeleteChatModal.tsx +9 -7
  463. package/src/components/Modals/FilePreviewModal/FilePreviewModal.tsx +38 -79
  464. package/src/components/Modals/FilePreviewModal/PdfView.tsx +1 -2
  465. package/src/components/Modals/Modal/Modal.tsx +0 -7
  466. package/src/components/Modals/NewChatModal/ModalContent.tsx +3 -6
  467. package/src/components/Modals/NewChatModal/NewChatModal.tsx +126 -223
  468. package/src/components/Modals/NewChatModal/UpdNewChatModal.tsx +1 -12
  469. package/src/components/Modals/SelectUsersModal/SelectUsersModal.tsx +4 -14
  470. package/src/components/Modals/UserProfileModal/EditUserModal.tsx +25 -9
  471. package/src/components/Modals/UserProfileModal/UserProfileModal.tsx +307 -617
  472. package/src/components/Modals/UserSettingsModal/UserSettingsModal.tsx +58 -75
  473. package/src/components/Modals/styledModalComponents.tsx +2 -9
  474. package/src/components/RoomComponents/ChatRoomItem.tsx +50 -21
  475. package/src/components/RoomComponents/styled/LastMessageFile.tsx +4 -28
  476. package/src/components/RoomComponents/styled/LastMessagePhoto.tsx +3 -18
  477. package/src/components/RoomComponents/styled/LastMessageVideo.tsx +3 -18
  478. package/src/components/VideoCalls/VideoCallSession.tsx +3 -8
  479. package/src/components/styled/AudioMessage.tsx +1 -2
  480. package/src/components/styled/DateLabel.tsx +10 -3
  481. package/src/components/styled/MessageImage.tsx +7 -53
  482. package/src/components/styled/NewMessageLabel.tsx +3 -1
  483. package/src/components/styled/SendInput.tsx +18 -91
  484. package/src/components/styled/StyledComponents.ts +3 -9
  485. package/src/components/styled/StyledInputComponents/StyledInputComponents.tsx +4 -11
  486. package/src/components/styled/UnsupportedType.tsx +4 -14
  487. package/src/components/styled/VideoMessage.tsx +54 -131
  488. package/src/context/xmppProvider.tsx +57 -209
  489. package/src/helpers/createMessageFromXml.ts +1 -20
  490. package/src/helpers/ensureScopedChatCache.ts +2 -2
  491. package/src/helpers/getDataFromXml.ts +25 -1
  492. package/src/helpers/historyPreloadScheduler.ts +3 -80
  493. package/src/helpers/initXmppRooms.tsx +10 -14
  494. package/src/helpers/insertMessageWithDelimiter.ts +32 -55
  495. package/src/helpers/isUnresolvedSenderId.ts +9 -1
  496. package/src/helpers/keyboardLayout.ts +2 -23
  497. package/src/helpers/mimeToExtension.ts +22 -6
  498. package/src/helpers/resolveInitBeforeLoadUser.ts +18 -125
  499. package/src/helpers/resolveLangSource.ts +40 -0
  500. package/src/helpers/xmppUsername.ts +38 -0
  501. package/src/hooks/useChatRoomFocus.ts +9 -49
  502. package/src/hooks/useChatWrapperInit.ts +16 -32
  503. package/src/hooks/useComposing.tsx +1 -37
  504. package/src/hooks/useLogout.tsx +9 -29
  505. package/src/hooks/usePendingNotification.ts +11 -5
  506. package/src/hooks/useSendMessage.tsx +15 -60
  507. package/src/hooks/useUnreadMessagesCounter.ts +0 -11
  508. package/src/i18n/strings.ts +133 -121
  509. package/src/i18n/useT.ts +1 -1
  510. package/src/main.ts +2 -26
  511. package/src/networking/api-requests/auth.api.ts +48 -156
  512. package/src/networking/api-requests/roomMembers.api.ts +1 -1
  513. package/src/networking/api-requests/rooms.api.ts +9 -9
  514. package/src/networking/api-requests/user.api.ts +7 -79
  515. package/src/networking/apiClient.ts +123 -68
  516. package/src/networking/stanzaHandlers.ts +51 -92
  517. package/src/networking/xmpp/flushLastViewedToPrivateStore.ts +10 -71
  518. package/src/networking/xmpp/presenceInRoom.xmpp.ts +1 -6
  519. package/src/networking/xmpp/subscribeToRoomMessages.xmpp.ts +1 -12
  520. package/src/networking/xmppClient.ts +9 -141
  521. package/src/roomStore/chatSettingsSlice.ts +10 -34
  522. package/src/roomStore/index.ts +4 -40
  523. package/src/roomStore/persistence.ts +40 -234
  524. package/src/roomStore/roomsSlice.ts +29 -161
  525. package/src/services/pushSubscriptionService.ts +13 -18
  526. package/src/types/types.ts +5 -72
  527. package/src/version.ts +3 -1
  528. package/lib/commonjs/components/Modals/ChatProfileModal/ReportChatModal.js +0 -226
  529. package/lib/commonjs/components/Modals/ChatProfileModal/ReportChatModal.js.map +0 -1
  530. package/lib/commonjs/components/Modals/ProfileHeader/ProfileHeader.js +0 -556
  531. package/lib/commonjs/components/Modals/ProfileHeader/ProfileHeader.js.map +0 -1
  532. package/lib/commonjs/components/Modals/ProfileHeader/ProfileMenu.js +0 -210
  533. package/lib/commonjs/components/Modals/ProfileHeader/ProfileMenu.js.map +0 -1
  534. package/lib/commonjs/helpers/getChatBackground.js +0 -23
  535. package/lib/commonjs/helpers/getChatBackground.js.map +0 -1
  536. package/lib/commonjs/helpers/getDisplayFileName.js +0 -79
  537. package/lib/commonjs/helpers/getDisplayFileName.js.map +0 -1
  538. package/lib/commonjs/helpers/getServerReadTimestamp.js +0 -188
  539. package/lib/commonjs/helpers/getServerReadTimestamp.js.map +0 -1
  540. package/lib/commonjs/helpers/isOwnMessage.js +0 -75
  541. package/lib/commonjs/helpers/isOwnMessage.js.map +0 -1
  542. package/lib/commonjs/helpers/mediaLibraryRuntime.js +0 -31
  543. package/lib/commonjs/helpers/mediaLibraryRuntime.js.map +0 -1
  544. package/lib/commonjs/helpers/msgSortableMs.js +0 -37
  545. package/lib/commonjs/helpers/msgSortableMs.js.map +0 -1
  546. package/lib/commonjs/helpers/persistCrypto.js +0 -122
  547. package/lib/commonjs/helpers/persistCrypto.js.map +0 -1
  548. package/lib/commonjs/helpers/pickImageAsset.js +0 -68
  549. package/lib/commonjs/helpers/pickImageAsset.js.map +0 -1
  550. package/lib/commonjs/helpers/pushPayload.js +0 -71
  551. package/lib/commonjs/helpers/pushPayload.js.map +0 -1
  552. package/lib/commonjs/helpers/secureFileUrl.js +0 -101
  553. package/lib/commonjs/helpers/secureFileUrl.js.map +0 -1
  554. package/lib/commonjs/helpers/secureKeyValue.js +0 -83
  555. package/lib/commonjs/helpers/secureKeyValue.js.map +0 -1
  556. package/lib/commonjs/helpers/secureStoreRuntime.js +0 -59
  557. package/lib/commonjs/helpers/secureStoreRuntime.js.map +0 -1
  558. package/lib/commonjs/helpers/secureUserStorage.js +0 -75
  559. package/lib/commonjs/helpers/secureUserStorage.js.map +0 -1
  560. package/lib/commonjs/helpers/shallowEqual.js +0 -36
  561. package/lib/commonjs/helpers/shallowEqual.js.map +0 -1
  562. package/lib/commonjs/helpers/sheetGestures.js +0 -32
  563. package/lib/commonjs/helpers/sheetGestures.js.map +0 -1
  564. package/lib/commonjs/hooks/useFileToken.js +0 -10
  565. package/lib/commonjs/hooks/useFileToken.js.map +0 -1
  566. package/lib/commonjs/networking/authRefresh.js +0 -332
  567. package/lib/commonjs/networking/authRefresh.js.map +0 -1
  568. package/lib/module/components/Modals/ChatProfileModal/ReportChatModal.js +0 -223
  569. package/lib/module/components/Modals/ChatProfileModal/ReportChatModal.js.map +0 -1
  570. package/lib/module/components/Modals/ProfileHeader/ProfileHeader.js +0 -548
  571. package/lib/module/components/Modals/ProfileHeader/ProfileHeader.js.map +0 -1
  572. package/lib/module/components/Modals/ProfileHeader/ProfileMenu.js +0 -205
  573. package/lib/module/components/Modals/ProfileHeader/ProfileMenu.js.map +0 -1
  574. package/lib/module/helpers/getChatBackground.js +0 -18
  575. package/lib/module/helpers/getChatBackground.js.map +0 -1
  576. package/lib/module/helpers/getDisplayFileName.js +0 -73
  577. package/lib/module/helpers/getDisplayFileName.js.map +0 -1
  578. package/lib/module/helpers/getServerReadTimestamp.js +0 -181
  579. package/lib/module/helpers/getServerReadTimestamp.js.map +0 -1
  580. package/lib/module/helpers/isOwnMessage.js +0 -70
  581. package/lib/module/helpers/isOwnMessage.js.map +0 -1
  582. package/lib/module/helpers/mediaLibraryRuntime.js +0 -25
  583. package/lib/module/helpers/mediaLibraryRuntime.js.map +0 -1
  584. package/lib/module/helpers/msgSortableMs.js +0 -32
  585. package/lib/module/helpers/msgSortableMs.js.map +0 -1
  586. package/lib/module/helpers/persistCrypto.js +0 -115
  587. package/lib/module/helpers/persistCrypto.js.map +0 -1
  588. package/lib/module/helpers/pickImageAsset.js +0 -63
  589. package/lib/module/helpers/pickImageAsset.js.map +0 -1
  590. package/lib/module/helpers/pushPayload.js +0 -63
  591. package/lib/module/helpers/pushPayload.js.map +0 -1
  592. package/lib/module/helpers/secureFileUrl.js +0 -91
  593. package/lib/module/helpers/secureFileUrl.js.map +0 -1
  594. package/lib/module/helpers/secureKeyValue.js +0 -75
  595. package/lib/module/helpers/secureKeyValue.js.map +0 -1
  596. package/lib/module/helpers/secureStoreRuntime.js +0 -52
  597. package/lib/module/helpers/secureStoreRuntime.js.map +0 -1
  598. package/lib/module/helpers/secureUserStorage.js +0 -72
  599. package/lib/module/helpers/secureUserStorage.js.map +0 -1
  600. package/lib/module/helpers/shallowEqual.js +0 -31
  601. package/lib/module/helpers/shallowEqual.js.map +0 -1
  602. package/lib/module/helpers/sheetGestures.js +0 -26
  603. package/lib/module/helpers/sheetGestures.js.map +0 -1
  604. package/lib/module/hooks/useFileToken.js +0 -5
  605. package/lib/module/hooks/useFileToken.js.map +0 -1
  606. package/lib/module/networking/authRefresh.js +0 -321
  607. package/lib/module/networking/authRefresh.js.map +0 -1
  608. package/lib/typescript/components/Modals/ChatProfileModal/ReportChatModal.d.ts +0 -9
  609. package/lib/typescript/components/Modals/ChatProfileModal/ReportChatModal.d.ts.map +0 -1
  610. package/lib/typescript/components/Modals/ProfileHeader/ProfileHeader.d.ts +0 -75
  611. package/lib/typescript/components/Modals/ProfileHeader/ProfileHeader.d.ts.map +0 -1
  612. package/lib/typescript/components/Modals/ProfileHeader/ProfileMenu.d.ts +0 -25
  613. package/lib/typescript/components/Modals/ProfileHeader/ProfileMenu.d.ts.map +0 -1
  614. package/lib/typescript/helpers/getChatBackground.d.ts +0 -15
  615. package/lib/typescript/helpers/getChatBackground.d.ts.map +0 -1
  616. package/lib/typescript/helpers/getDisplayFileName.d.ts +0 -49
  617. package/lib/typescript/helpers/getDisplayFileName.d.ts.map +0 -1
  618. package/lib/typescript/helpers/getServerReadTimestamp.d.ts +0 -108
  619. package/lib/typescript/helpers/getServerReadTimestamp.d.ts.map +0 -1
  620. package/lib/typescript/helpers/isOwnMessage.d.ts +0 -36
  621. package/lib/typescript/helpers/isOwnMessage.d.ts.map +0 -1
  622. package/lib/typescript/helpers/mediaLibraryRuntime.d.ts +0 -3
  623. package/lib/typescript/helpers/mediaLibraryRuntime.d.ts.map +0 -1
  624. package/lib/typescript/helpers/msgSortableMs.d.ts +0 -2
  625. package/lib/typescript/helpers/msgSortableMs.d.ts.map +0 -1
  626. package/lib/typescript/helpers/persistCrypto.d.ts +0 -13
  627. package/lib/typescript/helpers/persistCrypto.d.ts.map +0 -1
  628. package/lib/typescript/helpers/pickImageAsset.d.ts +0 -27
  629. package/lib/typescript/helpers/pickImageAsset.d.ts.map +0 -1
  630. package/lib/typescript/helpers/pushPayload.d.ts +0 -7
  631. package/lib/typescript/helpers/pushPayload.d.ts.map +0 -1
  632. package/lib/typescript/helpers/secureFileUrl.d.ts +0 -7
  633. package/lib/typescript/helpers/secureFileUrl.d.ts.map +0 -1
  634. package/lib/typescript/helpers/secureKeyValue.d.ts +0 -13
  635. package/lib/typescript/helpers/secureKeyValue.d.ts.map +0 -1
  636. package/lib/typescript/helpers/secureStoreRuntime.d.ts +0 -29
  637. package/lib/typescript/helpers/secureStoreRuntime.d.ts.map +0 -1
  638. package/lib/typescript/helpers/secureUserStorage.d.ts +0 -23
  639. package/lib/typescript/helpers/secureUserStorage.d.ts.map +0 -1
  640. package/lib/typescript/helpers/shallowEqual.d.ts +0 -11
  641. package/lib/typescript/helpers/shallowEqual.d.ts.map +0 -1
  642. package/lib/typescript/helpers/sheetGestures.d.ts +0 -20
  643. package/lib/typescript/helpers/sheetGestures.d.ts.map +0 -1
  644. package/lib/typescript/hooks/useFileToken.d.ts +0 -2
  645. package/lib/typescript/hooks/useFileToken.d.ts.map +0 -1
  646. package/lib/typescript/networking/authRefresh.d.ts +0 -95
  647. package/lib/typescript/networking/authRefresh.d.ts.map +0 -1
  648. package/src/components/Modals/ChatProfileModal/ReportChatModal.tsx +0 -244
  649. package/src/components/Modals/ProfileHeader/ProfileHeader.tsx +0 -615
  650. package/src/components/Modals/ProfileHeader/ProfileMenu.tsx +0 -217
  651. package/src/helpers/getChatBackground.ts +0 -18
  652. package/src/helpers/getDisplayFileName.ts +0 -87
  653. package/src/helpers/getServerReadTimestamp.ts +0 -197
  654. package/src/helpers/isOwnMessage.ts +0 -90
  655. package/src/helpers/mediaLibraryRuntime.ts +0 -25
  656. package/src/helpers/msgSortableMs.ts +0 -25
  657. package/src/helpers/persistCrypto.ts +0 -127
  658. package/src/helpers/pickImageAsset.ts +0 -68
  659. package/src/helpers/pushPayload.ts +0 -62
  660. package/src/helpers/secureFileUrl.ts +0 -103
  661. package/src/helpers/secureKeyValue.ts +0 -80
  662. package/src/helpers/secureStoreRuntime.ts +0 -62
  663. package/src/helpers/secureUserStorage.ts +0 -80
  664. package/src/helpers/shallowEqual.ts +0 -33
  665. package/src/helpers/sheetGestures.ts +0 -25
  666. package/src/hooks/useFileToken.ts +0 -7
  667. package/src/networking/authRefresh.ts +0 -451
@@ -3,72 +3,55 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.searchScrollTarget = exports.default = exports.chatInitials = void 0;
6
+ exports.default = void 0;
7
7
  var _react = _interopRequireWildcard(require("react"));
8
- var _reactNative = require("react-native");
9
- var _reactRedux = require("react-redux");
10
- var ImagePicker = _interopRequireWildcard(require("expo-image-picker"));
11
- var _useFileToken = require("../../../hooks/useFileToken");
12
- var _secureFileUrl = require("../../../helpers/secureFileUrl");
13
8
  var _styledModalComponents = require("../styledModalComponents");
9
+ var _reactNative = require("react-native");
10
+ var _ModalHeaderComponent = _interopRequireDefault(require("../ModalHeaderComponent"));
14
11
  var _ProfileImagePlaceholder = require("../../MainComponents/ProfileImagePlaceholder");
12
+ var _reactRedux = require("react-redux");
15
13
  var _roomStore = require("../../../roomStore");
16
14
  var _auth = require("../../../networking/api-requests/auth.api");
17
15
  var _xmppProvider = require("../../../context/xmppProvider");
18
16
  var _roomsSlice = require("../../../roomStore/roomsSlice");
17
+ var ImagePicker = _interopRequireWildcard(require("expo-image-picker"));
19
18
  var _Loader = _interopRequireDefault(require("../../styled/Loader"));
19
+ var _Button = _interopRequireDefault(require("../../styled/Button"));
20
20
  var _icons = require("../../../assets/icons");
21
21
  var _useChatSettingState = require("../../../hooks/useChatSettingState");
22
22
  var _typography = require("../../../helpers/typography");
23
+ var _useT = require("../../../i18n/useT");
23
24
  var _getElementFont = require("../../../helpers/getElementFont");
24
- var _getIconColor = require("../../../helpers/getIconColor");
25
25
  var _rooms = require("../../../networking/api-requests/rooms.api");
26
26
  var _chatSettingsSlice = require("../../../roomStore/chatSettingsSlice");
27
27
  var _MODAL_TYPES = require("../../../helpers/constants/MODAL_TYPES");
28
+ var _DropdownMenu = _interopRequireDefault(require("../../DropdownMenu/DropdownMenu"));
28
29
  var _SelectUsersModal = _interopRequireDefault(require("../SelectUsersModal/SelectUsersModal"));
29
30
  var _ToastContext = require("../../../context/ToastContext");
30
- var _useT = require("../../../i18n/useT");
31
31
  var _DeleteChatModal = _interopRequireDefault(require("./DeleteChatModal"));
32
- var _ReportChatModal = _interopRequireDefault(require("./ReportChatModal"));
33
- var _ProfileHeader = require("../ProfileHeader/ProfileHeader");
34
- var _ProfileMenu = _interopRequireDefault(require("../ProfileHeader/ProfileMenu"));
35
32
  var _jsxRuntime = require("react/jsx-runtime");
36
33
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
37
34
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
38
- /** @format */
39
-
40
- /**
41
- * Where the header should sit when search opens: tucked away at the
42
- * collapsed offset when the picture is still expanded, and left exactly
43
- * where it is when the user already scrolled it away.
44
- */
45
- const searchScrollTarget = (isCollapsed, collapseDistance) => isCollapsed ? null : collapseDistance;
46
-
47
- /** Two uppercase letters for a chat without a picture, same rule the
48
- * avatar placeholder uses for people. */
49
- exports.searchScrollTarget = searchScrollTarget;
50
- const chatInitials = name => {
51
- const words = (name || '').trim().split(/\s+/).filter(Boolean);
52
- const letters = (words.length >= 2 ? [words[0][0], words[1][0]] : [words[0]?.[0], words[0]?.[1]]).filter(c => !!c && /[\p{L}\p{N}]/u.test(c));
53
- return letters.join('').toUpperCase();
54
- };
55
- exports.chatInitials = chatInitials;
56
35
  const ChatProfileModal = ({
57
36
  handleCloseModal
58
37
  }) => {
59
- const t = (0, _useT.useT)();
60
38
  const [loading, setLoading] = (0, _react.useState)(false);
61
- const [isDeleteOpen, setIsDeleteOpen] = (0, _react.useState)(false);
62
- const [isReportOpen, setIsReportOpen] = (0, _react.useState)(false);
63
- const [memberQuery, setMemberQuery] = (0, _react.useState)('');
64
- const [isSearchOpen, setIsSearchOpen] = (0, _react.useState)(false);
65
- // Measured, not guessed: this screen renders inside whatever frame the
66
- // host gives it (the demo app keeps its own tab bar above), so the
67
- // window height would overshoot.
68
- const [viewportHeight, setViewportHeight] = (0, _react.useState)(0);
39
+ const [visible, setVisible] = (0, _react.useState)(false);
40
+ const [isModalOpen, setIsModalOpen] = (0, _react.useState)(false);
69
41
  const {
70
42
  showToast
71
43
  } = (0, _ToastContext.useToast)();
44
+ const t = (0, _useT.useT)();
45
+ const chatMenuOptions = (0, _react.useMemo)(() => [{
46
+ label: t('action.deleteChat'),
47
+ icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.DeleteIcon, {}),
48
+ onClick: () => {
49
+ setIsModalOpen(true);
50
+ },
51
+ styles: {
52
+ color: 'red'
53
+ }
54
+ }], [t]);
72
55
  const dispatch = (0, _reactRedux.useDispatch)();
73
56
  const {
74
57
  client
@@ -78,23 +61,6 @@ const ChatProfileModal = ({
78
61
  config
79
62
  } = (0, _useChatSettingState.useChatSettingState)();
80
63
  const activeRoom = (0, _reactRedux.useSelector)(state => (0, _roomStore.getActiveRoom)(state));
81
- const fileToken = (0, _useFileToken.useFileToken)();
82
-
83
- // Drives both the hero's parallax and the collapsed bar's fade-in. One
84
- // shared value, written natively by the ScrollView.
85
- const scrollY = (0, _react.useRef)(new _reactNative.Animated.Value(0)).current;
86
- const scrollRef = (0, _react.useRef)(null);
87
- const searchInputRef = (0, _react.useRef)(null);
88
- const {
89
- collapseDistance
90
- } = (0, _ProfileHeader.useHeaderMetrics)();
91
- // `scrollY` is driven natively, so its value can't be read back with
92
- // addListener. The Animated.event's `listener` still fires on the JS
93
- // side, which is enough to know which state the header is in.
94
- const [isCollapsed, setIsCollapsed] = (0, _react.useState)(false);
95
- // Set when search collapsed the header itself, so only then does
96
- // dismissing search (or the keyboard) expand it again.
97
- const collapsedForSearchRef = (0, _react.useRef)(false);
98
64
 
99
65
  // Pull live member list from the MUC when the modal opens — REST
100
66
  // hydration only fills the *count* (item.participants /
@@ -109,11 +75,6 @@ const ChatProfileModal = ({
109
75
  }
110
76
  }
111
77
  }, [client, activeRoom?.jid]);
112
- (0, _react.useEffect)(() => {
113
- if (!activeRoom) {
114
- dispatch((0, _chatSettingsSlice.setActiveModal)(undefined));
115
- }
116
- }, [activeRoom, dispatch]);
117
78
  const onUpload = async () => {
118
79
  let loadingSet = false;
119
80
  try {
@@ -125,12 +86,12 @@ const ChatProfileModal = ({
125
86
  // round-trip needed.
126
87
  const perm = await ImagePicker.requestMediaLibraryPermissionsAsync();
127
88
  if (!perm.granted) {
128
- _reactNative.Alert.alert('Permission required', 'Photo library permission is needed to select images.', [{
89
+ _reactNative.Alert.alert(t('permission.requiredTitle'), t('permission.photoLibrary'), [{
129
90
  text: t('action.cancel'),
130
91
  onPress: () => setLoading(false),
131
92
  style: 'cancel'
132
93
  }, {
133
- text: 'Open Settings',
94
+ text: t('action.openSettings'),
134
95
  onPress: () => _reactNative.Linking.openSettings()
135
96
  }]);
136
97
  return;
@@ -165,8 +126,8 @@ const ChatProfileModal = ({
165
126
  }));
166
127
  showToast({
167
128
  id: Date.now().toString(),
168
- title: 'Success',
169
- message: 'Room image updated successfully',
129
+ title: t('toast.successTitle'),
130
+ message: t('toast.roomImageUpdated'),
170
131
  type: 'success'
171
132
  });
172
133
  }
@@ -178,8 +139,8 @@ const ChatProfileModal = ({
178
139
  console.error('File upload failed or location is missing:', error);
179
140
  showToast({
180
141
  id: Date.now().toString(),
181
- title: 'Error',
182
- message: 'Failed to upload image',
142
+ title: t('toast.error'),
143
+ message: t('toast.failedToUploadImage'),
183
144
  type: 'error'
184
145
  });
185
146
  } finally {
@@ -188,17 +149,7 @@ const ChatProfileModal = ({
188
149
  }
189
150
  }
190
151
  };
191
- const onRemoveIcon = () => {
192
- client?.setRoomImageStanza(activeRoom?.jid || '', '', 'icon', 'none');
193
- dispatch((0, _roomsSlice.updateRoom)({
194
- jid: activeRoom?.jid || '',
195
- updates: {
196
- icon: null
197
- }
198
- }));
199
- };
200
- const handleDeleteUser = async user => {
201
- const userId = user.xmppUsername;
152
+ const handleDeleteUser = async userId => {
202
153
  try {
203
154
  await (0, _rooms.deleteRoomMember)({
204
155
  roomId: activeRoom?.jid?.split('@')[0] || '',
@@ -207,34 +158,35 @@ const ChatProfileModal = ({
207
158
  dispatch((0, _roomsSlice.updateRoom)({
208
159
  jid: activeRoom?.jid || '',
209
160
  updates: {
210
- roomMembers: activeRoom?.roomMembers?.filter(member => member.xmppUsername !== userId)
161
+ roomMembers: activeRoom?.roomMembers?.filter(user => user.xmppUsername !== userId)
211
162
  }
212
163
  }));
213
164
  showToast({
214
165
  id: Date.now().toString(),
215
- title: 'Success',
216
- message: `${userId} has been removed from the room.`,
166
+ title: t('toast.successTitle'),
167
+ message: t('toast.userRemovedFromRoom', {
168
+ userId
169
+ }),
217
170
  type: 'success'
218
171
  });
219
172
  } catch (error) {
220
173
  console.error('Failed to delete user:', error);
221
174
  showToast({
222
175
  id: Date.now().toString(),
223
- title: 'Error',
224
- message: 'Failed to delete user.',
176
+ title: t('toast.error'),
177
+ message: t('toast.failedToDeleteUser'),
225
178
  type: 'error'
226
179
  });
227
180
  }
228
181
  };
229
- const confirmRemoveMember = user => {
230
- _reactNative.Alert.alert(t('modal.chatProfile.removeMember'), `${user.firstName} ${user.lastName}`.trim(), [{
231
- text: t('action.cancel'),
232
- style: 'cancel'
233
- }, {
234
- text: t('action.delete'),
235
- style: 'destructive',
236
- onPress: () => handleDeleteUser(user)
237
- }]);
182
+ const onRemoveClick = async () => {
183
+ client?.setRoomImageStanza(activeRoom?.jid || '', '', 'icon', 'none');
184
+ dispatch((0, _roomsSlice.updateRoom)({
185
+ jid: activeRoom?.jid || '',
186
+ updates: {
187
+ icon: null
188
+ }
189
+ }));
238
190
  };
239
191
  const handleUserAvatarClick = user => {
240
192
  dispatch((0, _chatSettingsSlice.setActiveModal)(_MODAL_TYPES.MODAL_TYPES.PROFILE));
@@ -248,311 +200,154 @@ const ChatProfileModal = ({
248
200
  refreshToken: ''
249
201
  }));
250
202
  };
251
-
252
- // Leaving is XMPP-side (an unavailable presence to the MUC); dropping the
253
- // room from the store is what actually takes the user out of the chat in
254
- // the UI, and the `!activeRoom` effect above then closes this modal.
255
- const handleLeave = () => {
256
- _reactNative.Alert.alert(t('modal.leaveChat.title'), t('modal.leaveChat.description'), [{
257
- text: t('action.cancel'),
258
- style: 'cancel'
259
- }, {
260
- text: t('action.leave'),
261
- style: 'destructive',
262
- onPress: () => {
263
- try {
264
- client?.leaveTheRoomStanza?.(activeRoom?.jid || '');
265
- } catch (error) {
266
- console.error('Failed to leave the room:', error);
267
- }
268
- dispatch((0, _roomsSlice.deleteRoom)({
269
- jid: activeRoom?.jid || ''
270
- }));
271
- handleCloseModal?.();
272
- }
273
- }]);
274
- };
275
- const isModerator = activeRoom?.role === 'moderator';
276
- const canEditIcon = !config?.disableChatInfo?.disableIconEdit && activeRoom?.role !== 'participant';
277
- const canAddMembers = isModerator && activeRoom?.type === 'group';
278
- const canDeleteChat = isModerator && activeRoom?.type !== 'private';
279
- const hasIcon = !!activeRoom?.icon;
280
- const scrollHeaderTo = y => scrollRef.current?.scrollTo?.({
281
- y,
282
- animated: true
283
- });
284
-
285
- // Opening search from an expanded header tucks the picture away so the
286
- // results and the keyboard have room; from an already-collapsed header
287
- // it just opens the field. Whatever it collapsed, it puts back.
288
- const openMemberSearch = () => {
289
- const target = searchScrollTarget(isCollapsed, collapseDistance);
290
- if (target !== null) {
291
- collapsedForSearchRef.current = true;
292
- scrollHeaderTo(target);
293
- }
294
- setIsSearchOpen(true);
295
- setTimeout(() => searchInputRef.current?.focus(), 50);
296
- };
297
- const restoreHeader = () => {
298
- if (!collapsedForSearchRef.current) {
299
- return;
203
+ const menuOptions = (0, _react.useMemo)(() => userId => [{
204
+ label: t('action.appointAsAdmin'),
205
+ icon: null,
206
+ onClick: () => {
207
+ dispatch((0, _chatSettingsSlice.setActiveModal)(_MODAL_TYPES.MODAL_TYPES.PROFILE));
208
+ console.log('Profile clicked');
300
209
  }
301
- collapsedForSearchRef.current = false;
302
- scrollHeaderTo(0);
303
- };
304
- const closeMemberSearch = () => {
305
- setMemberQuery('');
306
- setIsSearchOpen(false);
307
- _reactNative.Keyboard.dismiss();
308
- restoreHeader();
309
- };
310
-
311
- // Putting the keyboard away is the other way out of search, so it
312
- // restores the header too — the field stays, results and all.
313
- (0, _react.useEffect)(() => {
314
- if (!isSearchOpen) {
315
- return undefined;
316
- }
317
- const sub = _reactNative.Keyboard.addListener('keyboardDidHide', restoreHeader);
318
- return () => sub.remove();
319
- }, [isSearchOpen]); // eslint-disable-line react-hooks/exhaustive-deps
320
-
321
- const heroActions = (0, _react.useMemo)(() => [{
322
- key: 'search',
323
- label: t('action.search'),
324
- icon: color => /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.SearchIcon, {
325
- color: color
326
- }),
327
- onPress: openMemberSearch
328
210
  }, {
329
- key: 'leave',
330
- label: t('action.leave'),
331
- icon: color => /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.LeaveIcon, {
332
- color: color
333
- }),
334
- onPress: handleLeave
335
- }, {
336
- key: 'report',
337
- label: t('action.report'),
338
- icon: color => /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.ReportIcon, {
339
- color: color
340
- }),
341
- onPress: () => setIsReportOpen(true)
342
- }], [t, activeRoom?.jid] // eslint-disable-line react-hooks/exhaustive-deps
343
- );
344
-
345
- // "…" menu. Edit is the chat picture — the only chat detail this SDK can
346
- // actually change (there is no update-chat endpoint for title/description),
347
- // so it is only offered when the picture is editable.
348
- const menuItems = (0, _react.useMemo)(() => {
349
- const items = [];
350
- if (canEditIcon) {
351
- items.push({
352
- key: 'edit',
353
- label: t('action.edit'),
354
- icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.EditIcon, {
355
- color: "#141414",
356
- width: 18,
357
- height: 18
358
- }),
359
- onPress: onUpload
360
- });
361
- if (hasIcon) {
362
- items.push({
363
- key: 'remove-photo',
364
- label: t('modal.chatProfile.removePhoto'),
365
- icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.DeleteIcon, {
366
- width: 18,
367
- height: 18
368
- }),
369
- onPress: onRemoveIcon
370
- });
371
- }
211
+ label: t('action.unban'),
212
+ icon: null,
213
+ onClick: () => {
214
+ dispatch((0, _chatSettingsSlice.setActiveModal)(_MODAL_TYPES.MODAL_TYPES.SETTINGS));
215
+ console.log('Settings clicked');
372
216
  }
373
- // The hero's Search button is off-screen once collapsed, so the menu
374
- // carries it — the design's collapsed menu does the same.
375
- if (isCollapsed) {
376
- items.push({
377
- key: 'search',
378
- label: t('action.search'),
379
- icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.SearchIcon, {
380
- color: "#141414",
381
- width: 18,
382
- height: 18
383
- }),
384
- onPress: openMemberSearch
385
- });
217
+ }, {
218
+ label: t('action.delete'),
219
+ icon: null,
220
+ onClick: e => {
221
+ e?.preventDefault();
222
+ handleDeleteUser(userId);
386
223
  }
387
- items.push({
388
- key: 'report',
389
- label: t('action.report'),
390
- icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.ReportIcon, {
391
- color: "#141414",
392
- width: 18,
393
- height: 18
394
- }),
395
- onPress: () => setIsReportOpen(true)
396
- });
397
- if (canDeleteChat) {
398
- items.push({
399
- key: 'delete-and-leave',
400
- label: t('action.deleteAndLeave'),
401
- icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.DeleteIcon, {
402
- width: 18,
403
- height: 18
404
- }),
405
- destructive: true,
406
- onPress: () => setIsDeleteOpen(true)
407
- });
224
+ }], [t]);
225
+ (0, _react.useEffect)(() => {
226
+ if (!activeRoom) {
227
+ dispatch((0, _chatSettingsSlice.setActiveModal)(undefined));
408
228
  }
409
- return items;
410
- }, [canEditIcon, canDeleteChat, hasIcon, isCollapsed, t]); // eslint-disable-line react-hooks/exhaustive-deps
411
-
229
+ }, [activeRoom, dispatch]);
412
230
  if (!activeRoom) {
413
231
  return null;
414
232
  }
415
- const title = activeRoom.title || activeRoom.name;
416
- const memberCount = activeRoom.usersCnt ?? 0;
417
- const subtitle = t(memberCount === 1 ? 'modal.chatProfile.memberCountSingular' : 'modal.chatProfile.memberCountPlural', {
418
- count: memberCount
419
- });
420
- const heroImage = (0, _secureFileUrl.appendFileToken)(activeRoom.icon, fileToken) || null;
421
- // A single flat colour behind the initials — the config's avatar colour
422
- // when set, otherwise the primary. (The old per-name hash colour is what
423
- // made the header read as two different greens next to the members' own
424
- // avatars.)
425
- const heroColor = config?.colors?.avatar || (0, _getIconColor.getIconColor)(config);
426
- const members = activeRoom.roomMembers ?? [];
427
- const query = memberQuery.trim().toLowerCase();
428
- const visibleMembers = query ? members.filter(user => `${user.firstName ?? ''} ${user.lastName ?? ''}`.toLowerCase().includes(query)) : members;
429
233
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styledModalComponents.ModalContainerFullScreen, {
430
- style: styles.screen,
431
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Animated.ScrollView, {
432
- ref: scrollRef,
433
- style: styles.scroll
434
- // The collapsed state has to be reachable even when the member list
435
- // is short: without this the content was shorter than the viewport,
436
- // so the scroll had nowhere to go and simply bounced back.
437
- ,
438
- contentContainerStyle: [styles.scrollContent, viewportHeight > 0 && {
439
- minHeight: viewportHeight + collapseDistance
440
- }],
441
- onLayout: e => setViewportHeight(e.nativeEvent.layout.height),
442
- showsVerticalScrollIndicator: false,
443
- keyboardShouldPersistTaps: "handled",
444
- scrollEventThrottle: 16,
445
- onScroll: _reactNative.Animated.event([{
446
- nativeEvent: {
447
- contentOffset: {
448
- y: scrollY
449
- }
450
- }
451
- }], {
452
- useNativeDriver: true,
453
- listener: e => {
454
- const y = e?.nativeEvent?.contentOffset?.y ?? 0;
455
- setIsCollapsed(y >= collapseDistance - 8);
456
- }
457
- }),
458
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ProfileHeader.ProfileHero, {
459
- title: title,
460
- subtitle: subtitle,
461
- imageUri: heroImage,
462
- fallbackColor: heroColor,
463
- initials: chatInitials(title),
464
- scrollY: scrollY,
465
- actions: heroActions,
466
- titleStyle: (0, _typography.chatTextStyle)(config?.typography?.profile?.title),
467
- subtitleStyle: (0, _getElementFont.getElementFont)(config, 'profileStatus')
468
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
469
- style: styles.body,
470
- children: [!config?.disableChatInfo?.disableDescription && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
471
- style: styles.card,
472
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
473
- style: [styles.cardLabel, (0, _getElementFont.getElementFont)(config, 'profileSectionLabel')],
474
- children: t('modal.chatProfile.description')
475
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
476
- style: styles.cardValue,
477
- children: activeRoom.description || '—'
478
- })]
479
- }), !config?.disableChatInfo?.disableType && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
480
- style: styles.card,
481
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
482
- style: [styles.cardLabel, (0, _getElementFont.getElementFont)(config, 'profileSectionLabel')],
483
- children: t('modal.chatProfile.chatType')
484
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
485
- style: styles.cardValue,
486
- children: activeRoom.type || '—'
487
- })]
488
- }), !config?.disableChatInfo?.hideMembers && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
489
- style: styles.card,
490
- children: [canAddMembers && /*#__PURE__*/(0, _jsxRuntime.jsx)(_SelectUsersModal.default, {
491
- trigger: open => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
492
- testID: "chat-profile-add-members",
493
- activeOpacity: 0.7,
494
- style: styles.addMembersRow,
495
- onPress: open,
496
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.AddNewIcon, {
497
- color: (0, _getIconColor.getIconColor)(config)
498
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
499
- style: styles.addMembersLabel,
500
- children: t('modal.chatProfile.addMembers')
501
- })]
502
- })
503
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
504
- style: [styles.cardLabel, (0, _getElementFont.getElementFont)(config, 'profileSectionLabel')],
505
- children: t('modal.chatProfile.membersLabel', {
506
- count: memberCount
507
- })
508
- }), isSearchOpen && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
509
- style: styles.searchRow,
510
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.SearchIcon, {
511
- color: "#8C8C8C",
512
- width: 18,
513
- height: 18
514
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TextInput, {
515
- testID: "chat-profile-member-search",
516
- ref: searchInputRef,
517
- style: styles.searchInput,
518
- value: memberQuery,
519
- onChangeText: setMemberQuery,
520
- placeholder: t('search.members'),
521
- placeholderTextColor: "#8C8C8C",
522
- autoCorrect: false,
523
- returnKeyType: "search"
524
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
525
- testID: "chat-profile-search-close",
526
- activeOpacity: 0.7,
527
- hitSlop: {
528
- top: 8,
529
- bottom: 8,
530
- left: 8,
531
- right: 8
234
+ style: {
235
+ position: 'relative'
236
+ },
237
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ModalHeaderComponent.default, {
238
+ handleCloseModal: handleCloseModal,
239
+ headerTitle: t('modal.chatProfile.title'),
240
+ titleStyle: (0, _typography.chatTextStyle)(config?.typography?.profile?.screenTitle),
241
+ rightMenu: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
242
+ children: [activeRoom?.type === 'public' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
243
+ EndIcon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.QrIcon, {}),
244
+ onPress: () => setVisible(true)
245
+ }), activeRoom.role === 'moderator' && activeRoom.type !== 'private' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_DropdownMenu.default, {
246
+ position: "right",
247
+ options: chatMenuOptions,
248
+ openButton: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
249
+ style: {
250
+ padding: 8,
251
+ height: 40
252
+ },
253
+ EndIcon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.MoreIcon, {}),
254
+ unstyled: true
255
+ })
256
+ })]
257
+ })
258
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styledModalComponents.CenterContainer, {
259
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ProfileImagePlaceholder.ProfileImagePlaceholder, {
260
+ name: activeRoom.title || activeRoom.name,
261
+ icon: activeRoom.icon
262
+ // Two gates control whether the icon is editable:
263
+ // 1. role — only non-participants could edit before.
264
+ // 2. NEW: `disableChatInfo.disableIconEdit` — hard kill from
265
+ // config so a consumer can make the icon read-only for
266
+ // everyone (e.g. branded rooms, patient-facing apps).
267
+ // Both must allow it for the picker/remove affordances to show.
268
+ ,
269
+ upload: {
270
+ onUpload,
271
+ active: !config?.disableChatInfo?.disableIconEdit && activeRoom?.role !== 'participant'
272
+ },
273
+ remove: {
274
+ enabled: !config?.disableChatInfo?.disableIconEdit,
275
+ onRemoveClick
276
+ },
277
+ role: activeRoom?.role,
278
+ size: 128
279
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styledModalComponents.UserInfo, {
280
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_styledModalComponents.UserName, {
281
+ fontSize: config?.typography?.profile?.title?.fontSize,
282
+ fontWeight: config?.typography?.profile?.title?.fontWeight,
283
+ children: activeRoom.title || activeRoom.name
284
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_styledModalComponents.UserStatus, {
285
+ style: (0, _getElementFont.getElementFont)(config, 'profileStatus'),
286
+ children: t(activeRoom.usersCnt > 1 ? 'modal.chatProfile.memberCountPlural' : 'modal.chatProfile.memberCountSingular', {
287
+ count: activeRoom.usersCnt
288
+ })
289
+ })]
290
+ }), activeRoom.role === 'moderator' && activeRoom.type === 'group' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
291
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SelectUsersModal.default, {})
292
+ }), !config?.disableChatInfo?.disableDescription && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styledModalComponents.BorderedContainer, {
293
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_styledModalComponents.LabelData, {
294
+ style: (0, _getElementFont.getElementFont)(config, 'profileSectionLabel'),
295
+ children: t('modal.chatProfile.description')
296
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_styledModalComponents.Label, {
297
+ children: activeRoom?.description || '—'
298
+ })]
299
+ }), !config?.disableChatInfo?.disableType && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styledModalComponents.BorderedContainer, {
300
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_styledModalComponents.LabelData, {
301
+ style: (0, _getElementFont.getElementFont)(config, 'profileSectionLabel'),
302
+ children: t('modal.chatProfile.chatType')
303
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_styledModalComponents.Label, {
304
+ children: activeRoom.type || '—'
305
+ })]
306
+ }), !config?.disableChatInfo?.hideMembers && /*#__PURE__*/(0, _jsxRuntime.jsx)(_styledModalComponents.BorderedContainer, {
307
+ style: {
308
+ paddingHorizontal: 16,
309
+ paddingVertical: 8
310
+ },
311
+ children: loading ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Loader.default, {}) : (activeRoom?.roomMembers?.length ?? 0) === 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_styledModalComponents.Label, {
312
+ style: {
313
+ opacity: 0.6,
314
+ textAlign: 'center',
315
+ paddingVertical: 8
316
+ },
317
+ children: t('modal.chatProfile.memberListUnavailable')
318
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ScrollView, {
319
+ style: {
320
+ maxHeight: 400
321
+ },
322
+ showsVerticalScrollIndicator: true,
323
+ nestedScrollEnabled: true,
324
+ children: activeRoom?.roomMembers?.map((user, index) => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
325
+ style: {
326
+ flexDirection: 'column',
327
+ alignItems: 'flex-start'
328
+ },
329
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
330
+ style: {
331
+ flexDirection: 'row',
332
+ justifyContent: 'flex-start',
333
+ paddingHorizontal: 8,
334
+ paddingVertical: 0,
335
+ alignItems: 'center',
336
+ width: '100%'
532
337
  },
533
- onPress: closeMemberSearch,
534
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
535
- style: styles.searchClose,
536
- children: "\xD7"
537
- })
538
- })]
539
- }), loading ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Loader.default, {}) : visibleMembers.length === 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
540
- testID: "chat-profile-members-empty",
541
- style: styles.emptyMembers,
542
- children: members.length === 0 ? t('modal.chatProfile.membersUnavailable') : t('search.noResults')
543
- }) : visibleMembers.map((user, index) => {
544
- const banned = user.ban_status === 'banned';
545
- const roleLabel = user.role && user.role !== 'none' && user.role !== 'participant' ? user.role : null;
546
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
547
- style: [styles.memberRow, index > 0 && styles.memberDivider],
548
338
  children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Pressable, {
549
- style: styles.memberMain
550
- // `disableChatInfo.disableMemberTap` blocks the tap
551
- // entirely so the user-profile popup never opens.
552
- // `disableMemberProfileActions` only hid the action
553
- // buttons INSIDE that popup, leaving the popup itself
554
- // to open on tap — this gate closes the door.
555
- // Customer-reported #16.
339
+ style: {
340
+ flexDirection: 'row',
341
+ alignItems: 'center',
342
+ justifyContent: 'flex-start',
343
+ gap: 16
344
+ }
345
+ // `disableChatInfo.disableMemberTap` blocks the
346
+ // tap entirely so the user-profile popup never
347
+ // opens. `disableMemberProfileActions` only hid
348
+ // the action buttons INSIDE that popup, leaving
349
+ // the popup itself to open on tap — this gate
350
+ // closes the door. Customer-reported #16.
556
351
  ,
557
352
  onPress: config?.disableChatInfo?.disableMemberTap ? undefined : () => handleUserAvatarClick(user),
558
353
  disabled: !!config?.disableChatInfo?.disableMemberTap,
@@ -560,187 +355,51 @@ const ChatProfileModal = ({
560
355
  name: `${user.firstName} ${user.lastName}`,
561
356
  size: 40
562
357
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
563
- style: styles.memberText,
564
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Text, {
565
- numberOfLines: 1,
566
- style: [styles.memberName, (0, _typography.chatTextStyle)(config?.typography?.profile?.memberName)],
358
+ style: {
359
+ flexDirection: 'column',
360
+ gap: 2,
361
+ alignItems: 'flex-start',
362
+ justifyContent: 'center'
363
+ },
364
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_styledModalComponents.Label, {
365
+ style: [{
366
+ fontSize: 16,
367
+ fontWeight: 600
368
+ }, (0, _typography.chatTextStyle)(config?.typography?.profile?.memberName)],
567
369
  children: [user.firstName, " ", user.lastName]
568
- }), !!user.last_active && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
569
- numberOfLines: 1,
570
- style: [styles.memberStatus, (0, _getElementFont.getElementFont)(config, 'profileSectionLabel')],
370
+ }), user.last_active && /*#__PURE__*/(0, _jsxRuntime.jsx)(_styledModalComponents.LabelData, {
371
+ style: (0, _getElementFont.getElementFont)(config, 'profileSectionLabel'),
571
372
  children: new Date(user.last_active * 1000).toLocaleString()
572
373
  })]
573
374
  })]
574
- }), (banned || roleLabel) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
575
- style: [styles.memberRole, banned && styles.memberBanned],
576
- children: banned ? t('status.banned') : roleLabel
577
- }), isModerator && activeRoom.type !== 'private' && stateUser.xmppUsername !== user.xmppUsername && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
578
- testID: `chat-profile-remove-${user.xmppUsername}`,
579
- activeOpacity: 0.7,
580
- hitSlop: {
581
- top: 8,
582
- bottom: 8,
583
- left: 8,
584
- right: 8
375
+ }), user.role && user.role !== 'none' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
376
+ style: {
377
+ backgroundColor: user.ban_status !== 'banned' ? '#F3F6FC' : '#FFEBEE',
378
+ color: user.ban_status !== 'banned' ? '#0052CD' : '#F44336',
379
+ padding: 5,
380
+ borderRadius: 16,
381
+ fontSize: 12
585
382
  },
586
- style: styles.memberRemove,
587
- onPress: () => confirmRemoveMember(user),
588
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.DeleteIcon, {
589
- width: 20,
590
- height: 20
591
- })
383
+ children: user.role
384
+ }), stateUser.xmppUsername !== user.xmppUsername && activeRoom.role === 'moderator' && activeRoom.type !== 'private' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_DropdownMenu.default, {
385
+ options: menuOptions(user.xmppUsername),
386
+ openButton: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
387
+ onPress: () => {},
388
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
389
+ children: t('action.moreOptions')
390
+ })
391
+ }),
392
+ onClose: () => console.log('Dropdown closed')
592
393
  })]
593
- }, user.xmppUsername);
594
- })]
595
- })]
394
+ }), index < (activeRoom?.roomMembers?.length || 0) - 1 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_styledModalComponents.Divider, {})]
395
+ }, user.xmppUsername))
396
+ })
596
397
  })]
597
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ProfileHeader.ProfileTopBar, {
598
- title: title,
599
- subtitle: subtitle,
600
- imageUri: heroImage,
601
- fallbackColor: heroColor,
602
- initials: chatInitials(title),
603
- scrollY: scrollY,
604
- onBack: handleCloseModal,
605
- titleStyle: (0, _typography.chatTextStyle)(config?.typography?.profile?.screenTitle),
606
- menu: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ProfileMenu.default, {
607
- items: menuItems
608
- })
609
398
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_DeleteChatModal.default, {
610
- isModalOpen: isDeleteOpen,
611
- setIsModalOpen: setIsDeleteOpen
612
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ReportChatModal.default, {
613
- visible: isReportOpen,
614
- onClose: () => setIsReportOpen(false)
399
+ isModalOpen: isModalOpen,
400
+ setIsModalOpen: setIsModalOpen
615
401
  })]
616
402
  });
617
403
  };
618
- const styles = _reactNative.StyleSheet.create({
619
- screen: {
620
- position: 'relative',
621
- backgroundColor: '#F2F3F5'
622
- },
623
- scroll: {
624
- width: '100%',
625
- flex: 1
626
- },
627
- scrollContent: {
628
- paddingBottom: 32
629
- },
630
- body: {
631
- padding: 12,
632
- gap: 12
633
- },
634
- card: {
635
- backgroundColor: '#FFFFFF',
636
- borderRadius: 14,
637
- padding: 16,
638
- shadowColor: '#000',
639
- shadowOffset: {
640
- width: 0,
641
- height: 1
642
- },
643
- shadowOpacity: 0.05,
644
- shadowRadius: 4,
645
- elevation: 1
646
- },
647
- cardLabel: {
648
- color: '#8C8C8C',
649
- fontSize: 14
650
- },
651
- cardValue: {
652
- color: '#141414',
653
- fontSize: 16,
654
- marginTop: 4
655
- },
656
- addMembersRow: {
657
- flexDirection: 'row',
658
- alignItems: 'center',
659
- gap: 12,
660
- paddingBottom: 14,
661
- marginBottom: 10,
662
- borderBottomWidth: _reactNative.StyleSheet.hairlineWidth,
663
- borderBottomColor: '#EFEFF2'
664
- },
665
- addMembersLabel: {
666
- fontSize: 16,
667
- fontWeight: '500',
668
- color: '#141414'
669
- },
670
- searchRow: {
671
- flexDirection: 'row',
672
- alignItems: 'center',
673
- gap: 8,
674
- marginTop: 10,
675
- paddingHorizontal: 12,
676
- height: 40,
677
- borderRadius: 12,
678
- backgroundColor: '#F2F3F5'
679
- },
680
- searchInput: {
681
- flex: 1,
682
- fontSize: 15,
683
- color: '#141414',
684
- padding: 0
685
- },
686
- searchClose: {
687
- fontSize: 22,
688
- lineHeight: 24,
689
- color: '#8C8C8C'
690
- },
691
- emptyMembers: {
692
- opacity: 0.6,
693
- textAlign: 'center',
694
- paddingVertical: 8,
695
- color: '#141414'
696
- },
697
- memberRow: {
698
- flexDirection: 'row',
699
- alignItems: 'center',
700
- paddingVertical: 10
701
- },
702
- memberDivider: {
703
- borderTopWidth: _reactNative.StyleSheet.hairlineWidth,
704
- borderTopColor: '#EFEFF2'
705
- },
706
- memberMain: {
707
- flex: 1,
708
- flexDirection: 'row',
709
- alignItems: 'center',
710
- gap: 12
711
- },
712
- memberText: {
713
- flex: 1
714
- },
715
- memberName: {
716
- fontSize: 16,
717
- fontWeight: '600',
718
- color: '#141414'
719
- },
720
- memberStatus: {
721
- fontSize: 13,
722
- color: '#8C8C8C',
723
- marginTop: 2
724
- },
725
- memberRole: {
726
- fontSize: 13,
727
- color: '#8C8C8C',
728
- marginLeft: 8
729
- },
730
- memberBanned: {
731
- color: '#E53935'
732
- },
733
- memberRemove: {
734
- marginLeft: 12
735
- },
736
- menuButton: {
737
- width: 40,
738
- height: 40,
739
- borderRadius: 20,
740
- backgroundColor: 'rgba(0,0,0,0.28)',
741
- alignItems: 'center',
742
- justifyContent: 'center'
743
- }
744
- });
745
404
  var _default = exports.default = ChatProfileModal;
746
405
  //# sourceMappingURL=ChatProfileModal.js.map