stream-chat-react-native-core 5.24.0-beta.3 → 5.24.0-beta.5

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 (124) hide show
  1. package/lib/commonjs/components/Channel/Channel.js +30 -22
  2. package/lib/commonjs/components/Channel/Channel.js.map +1 -1
  3. package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js +2 -0
  4. package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
  5. package/lib/commonjs/components/Message/Message.js +28 -6
  6. package/lib/commonjs/components/Message/Message.js.map +1 -1
  7. package/lib/commonjs/components/Message/MessageSimple/MessageBounce.js +84 -0
  8. package/lib/commonjs/components/Message/MessageSimple/MessageBounce.js.map +1 -0
  9. package/lib/commonjs/components/Message/hooks/useMessageActionHandlers.js.map +1 -1
  10. package/lib/commonjs/components/Message/hooks/useMessageActions.js.map +1 -1
  11. package/lib/commonjs/components/MessageInput/SendButton.js +2 -2
  12. package/lib/commonjs/components/MessageInput/SendButton.js.map +1 -1
  13. package/lib/commonjs/components/index.js +11 -0
  14. package/lib/commonjs/components/index.js.map +1 -1
  15. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js +18 -8
  16. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  17. package/lib/commonjs/contexts/messageInputContext/hooks/useMessageDetailsForState.js +4 -8
  18. package/lib/commonjs/contexts/messageInputContext/hooks/useMessageDetailsForState.js.map +1 -1
  19. package/lib/commonjs/contexts/messagesContext/MessagesContext.js +2 -2
  20. package/lib/commonjs/contexts/messagesContext/MessagesContext.js.map +1 -1
  21. package/lib/commonjs/i18n/en.json +3 -0
  22. package/lib/commonjs/i18n/es.json +4 -1
  23. package/lib/commonjs/i18n/fr.json +14 -11
  24. package/lib/commonjs/i18n/he.json +4 -1
  25. package/lib/commonjs/i18n/hi.json +14 -11
  26. package/lib/commonjs/i18n/it.json +14 -11
  27. package/lib/commonjs/i18n/ja.json +4 -1
  28. package/lib/commonjs/i18n/ko.json +4 -1
  29. package/lib/commonjs/i18n/nl.json +14 -11
  30. package/lib/commonjs/i18n/ru.json +14 -11
  31. package/lib/commonjs/i18n/tr.json +14 -11
  32. package/lib/commonjs/utils/removeReservedFields.js +1 -1
  33. package/lib/commonjs/utils/removeReservedFields.js.map +1 -1
  34. package/lib/commonjs/utils/utils.js +5 -1
  35. package/lib/commonjs/utils/utils.js.map +1 -1
  36. package/lib/commonjs/version.json +1 -1
  37. package/lib/module/components/Channel/Channel.js +30 -22
  38. package/lib/module/components/Channel/Channel.js.map +1 -1
  39. package/lib/module/components/Channel/hooks/useCreateMessagesContext.js +2 -0
  40. package/lib/module/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
  41. package/lib/module/components/Message/Message.js +28 -6
  42. package/lib/module/components/Message/Message.js.map +1 -1
  43. package/lib/module/components/Message/MessageSimple/MessageBounce.js +84 -0
  44. package/lib/module/components/Message/MessageSimple/MessageBounce.js.map +1 -0
  45. package/lib/module/components/Message/hooks/useMessageActionHandlers.js.map +1 -1
  46. package/lib/module/components/Message/hooks/useMessageActions.js.map +1 -1
  47. package/lib/module/components/MessageInput/SendButton.js +2 -2
  48. package/lib/module/components/MessageInput/SendButton.js.map +1 -1
  49. package/lib/module/components/index.js +11 -0
  50. package/lib/module/components/index.js.map +1 -1
  51. package/lib/module/contexts/messageInputContext/MessageInputContext.js +18 -8
  52. package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  53. package/lib/module/contexts/messageInputContext/hooks/useMessageDetailsForState.js +4 -8
  54. package/lib/module/contexts/messageInputContext/hooks/useMessageDetailsForState.js.map +1 -1
  55. package/lib/module/contexts/messagesContext/MessagesContext.js +2 -2
  56. package/lib/module/contexts/messagesContext/MessagesContext.js.map +1 -1
  57. package/lib/module/i18n/en.json +3 -0
  58. package/lib/module/i18n/es.json +4 -1
  59. package/lib/module/i18n/fr.json +14 -11
  60. package/lib/module/i18n/he.json +4 -1
  61. package/lib/module/i18n/hi.json +14 -11
  62. package/lib/module/i18n/it.json +14 -11
  63. package/lib/module/i18n/ja.json +4 -1
  64. package/lib/module/i18n/ko.json +4 -1
  65. package/lib/module/i18n/nl.json +14 -11
  66. package/lib/module/i18n/ru.json +14 -11
  67. package/lib/module/i18n/tr.json +14 -11
  68. package/lib/module/utils/removeReservedFields.js +1 -1
  69. package/lib/module/utils/removeReservedFields.js.map +1 -1
  70. package/lib/module/utils/utils.js +5 -1
  71. package/lib/module/utils/utils.js.map +1 -1
  72. package/lib/module/version.json +1 -1
  73. package/lib/typescript/components/Channel/Channel.d.ts +1 -1
  74. package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts +1 -1
  75. package/lib/typescript/components/Message/Message.d.ts +1 -1
  76. package/lib/typescript/components/Message/MessageSimple/MessageBounce.d.ts +12 -0
  77. package/lib/typescript/components/MessageList/utils/getReadStates.d.ts +1 -0
  78. package/lib/typescript/components/index.d.ts +1 -0
  79. package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts +6 -2
  80. package/lib/typescript/contexts/messageInputContext/hooks/useMessageDetailsForState.d.ts +1 -2
  81. package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts +7 -2
  82. package/lib/typescript/i18n/en.json +3 -0
  83. package/lib/typescript/i18n/es.json +4 -1
  84. package/lib/typescript/i18n/fr.json +14 -11
  85. package/lib/typescript/i18n/he.json +4 -1
  86. package/lib/typescript/i18n/hi.json +14 -11
  87. package/lib/typescript/i18n/it.json +14 -11
  88. package/lib/typescript/i18n/ja.json +4 -1
  89. package/lib/typescript/i18n/ko.json +4 -1
  90. package/lib/typescript/i18n/nl.json +14 -11
  91. package/lib/typescript/i18n/ru.json +14 -11
  92. package/lib/typescript/i18n/tr.json +14 -11
  93. package/lib/typescript/utils/Streami18n.d.ts +3 -0
  94. package/lib/typescript/utils/removeReservedFields.d.ts +2 -1
  95. package/lib/typescript/utils/utils.d.ts +11 -0
  96. package/package.json +2 -2
  97. package/src/components/Channel/Channel.tsx +26 -7
  98. package/src/components/Channel/hooks/useCreateMessagesContext.ts +2 -0
  99. package/src/components/Message/Message.tsx +26 -2
  100. package/src/components/Message/MessageSimple/MessageBounce.tsx +119 -0
  101. package/src/components/Message/hooks/useMessageActionHandlers.ts +1 -2
  102. package/src/components/Message/hooks/useMessageActions.tsx +1 -1
  103. package/src/components/MessageInput/SendButton.tsx +2 -2
  104. package/src/components/index.ts +1 -0
  105. package/src/contexts/messageInputContext/MessageInputContext.tsx +24 -6
  106. package/src/contexts/messageInputContext/__tests__/sendMessage.test.tsx +8 -8
  107. package/src/contexts/messageInputContext/__tests__/updateMessage.test.tsx +1 -1
  108. package/src/contexts/messageInputContext/__tests__/useMessageDetailsForState.test.tsx +6 -1
  109. package/src/contexts/messageInputContext/hooks/useMessageDetailsForState.ts +3 -9
  110. package/src/contexts/messagesContext/MessagesContext.tsx +7 -2
  111. package/src/i18n/en.json +3 -0
  112. package/src/i18n/es.json +4 -1
  113. package/src/i18n/fr.json +14 -11
  114. package/src/i18n/he.json +4 -1
  115. package/src/i18n/hi.json +14 -11
  116. package/src/i18n/it.json +14 -11
  117. package/src/i18n/ja.json +4 -1
  118. package/src/i18n/ko.json +4 -1
  119. package/src/i18n/nl.json +14 -11
  120. package/src/i18n/ru.json +14 -11
  121. package/src/i18n/tr.json +14 -11
  122. package/src/utils/removeReservedFields.ts +5 -2
  123. package/src/utils/utils.ts +16 -0
  124. package/src/version.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_utils","_createForOfIteratorHelperLoose","o","allowArrayLike","it","Symbol","iterator","call","next","bind","Array","isArray","_unsupportedIterableToArray","length","i","done","value","TypeError","minLen","_arrayLikeToArray","n","Object","prototype","toString","slice","constructor","name","from","test","arr","len","arr2","isEditingBoolean","editing","exports","useMessageDetailsForState","message","initialValue","_useState","useState","_useState2","_slicedToArray2","fileUploads","setFileUploads","_useState3","_useState4","imageUploads","setImageUploads","_useState5","_useState6","mentionedUsers","setMentionedUsers","_useState7","_useState8","numberOfUploads","setNumberOfUploads","_useState9","_useState10","showMoreOptions","setShowMoreOptions","initialTextValue","_useState11","_useState12","text","setText","useEffect","messageValue","id","updated_at","mentioned_users","map","user","newFileUploads","newImageUploads","attachments","_iterator","_step","attachment","type","generateRandomId","push","file","mimeType","mime_type","title","size","file_size","state","url","asset_url","fallback","image_url","thumb_url"],"sources":["useMessageDetailsForState.ts"],"sourcesContent":["import { useEffect, useState } from 'react';\n\nimport type { DefaultStreamChatGenerics, FileUpload, ImageUpload } from '../../../types/types';\nimport { generateRandomId } from '../../../utils/utils';\n\nimport type { MessageInputContextValue } from '../MessageInputContext';\n\nexport const isEditingBoolean = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n editing: MessageInputContextValue<StreamChatGenerics>['editing'],\n): editing is boolean => typeof editing === 'boolean';\n\nexport const useMessageDetailsForState = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n message: MessageInputContextValue<StreamChatGenerics>['editing'],\n initialValue?: string,\n) => {\n const [fileUploads, setFileUploads] = useState<FileUpload[]>([]);\n const [imageUploads, setImageUploads] = useState<ImageUpload[]>([]);\n const [mentionedUsers, setMentionedUsers] = useState<string[]>([]);\n const [numberOfUploads, setNumberOfUploads] = useState(0);\n const [showMoreOptions, setShowMoreOptions] = useState(true);\n const initialTextValue = initialValue || '';\n const [text, setText] = useState(initialTextValue);\n\n useEffect(() => {\n if (text !== initialTextValue) {\n setShowMoreOptions(false);\n }\n }, [text]);\n\n const messageValue =\n typeof message === 'boolean' ? '' : `${message.id}${message.text}${message.updated_at}`;\n\n useEffect(() => {\n if (!isEditingBoolean<StreamChatGenerics>(message) && Array.isArray(message?.mentioned_users)) {\n const mentionedUsers = message.mentioned_users.map((user) => user.id);\n setMentionedUsers(mentionedUsers);\n }\n }, [messageValue]);\n\n useEffect(() => {\n if (message && !isEditingBoolean<StreamChatGenerics>(message)) {\n setText(message?.text || '');\n const newFileUploads: FileUpload[] = [];\n const newImageUploads: ImageUpload[] = [];\n\n const attachments = Array.isArray(message.attachments) ? message.attachments : [];\n\n for (const attachment of attachments) {\n if (attachment.type === 'file') {\n const id = generateRandomId();\n newFileUploads.push({\n file: {\n mimeType: attachment.mime_type,\n name: attachment.title || '',\n size: attachment.file_size,\n },\n id,\n state: 'finished',\n url: attachment.asset_url,\n });\n } else if (attachment.type === 'image') {\n const id = generateRandomId();\n newImageUploads.push({\n file: {\n name: attachment.fallback,\n size: attachment.file_size,\n type: attachment.type,\n },\n id,\n state: 'finished',\n url: attachment.image_url || attachment.asset_url || attachment.thumb_url,\n });\n } else if (attachment.type === 'video') {\n const id = generateRandomId();\n newFileUploads.push({\n file: {\n mimeType: attachment.mime_type,\n name: attachment.title || '',\n size: attachment.file_size,\n },\n id,\n state: 'finished',\n thumb_url: attachment.thumb_url,\n url: attachment.asset_url,\n });\n }\n }\n if (newFileUploads.length) {\n setFileUploads(newFileUploads);\n }\n if (newImageUploads.length) {\n setImageUploads(newImageUploads);\n }\n }\n }, [messageValue]);\n\n return {\n fileUploads,\n imageUploads,\n mentionedUsers,\n numberOfUploads,\n setFileUploads,\n setImageUploads,\n setMentionedUsers,\n setNumberOfUploads,\n setShowMoreOptions,\n setText,\n showMoreOptions,\n text,\n };\n};\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAGA,IAAAC,MAAA,GAAAD,OAAA;AAAwD,SAAAE,gCAAAC,CAAA,EAAAC,cAAA,QAAAC,EAAA,UAAAC,MAAA,oBAAAH,CAAA,CAAAG,MAAA,CAAAC,QAAA,KAAAJ,CAAA,oBAAAE,EAAA,UAAAA,EAAA,GAAAA,EAAA,CAAAG,IAAA,CAAAL,CAAA,GAAAM,IAAA,CAAAC,IAAA,CAAAL,EAAA,OAAAM,KAAA,CAAAC,OAAA,CAAAT,CAAA,MAAAE,EAAA,GAAAQ,2BAAA,CAAAV,CAAA,MAAAC,cAAA,IAAAD,CAA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AAXA,WAAW;IACXI,YAAY,EAAZA,YAAY;IACZI,cAAc,EAAdA,cAAc;IACdI,eAAe,EAAfA,eAAe;IACfX,cAAc,EAAdA,cAAc;IACdI,eAAe,EAAfA,eAAe;IACfI,iBAAiB,EAAjBA,iBAAiB;IACjBI,kBAAkB,EAAlBA,kBAAkB;IAClBI,kBAAkB,EAAlBA,kBAAkB;IAClBK,OAAO,EAAPA,OAAO;IACPN,eAAe,EAAfA,eAAe;IACfK,IAAI,EAAJA;EACF,CAAC;AACH,CAAC;AAAC7B,OAAA,CAAAC,yBAAA,GAAAA,yBAAA"}
1
+ {"version":3,"names":["_react","require","_utils","_createForOfIteratorHelperLoose","o","allowArrayLike","it","Symbol","iterator","call","next","bind","Array","isArray","_unsupportedIterableToArray","length","i","done","value","TypeError","minLen","_arrayLikeToArray","n","Object","prototype","toString","slice","constructor","name","from","test","arr","len","arr2","useMessageDetailsForState","message","initialValue","_useState","useState","_useState2","_slicedToArray2","fileUploads","setFileUploads","_useState3","_useState4","imageUploads","setImageUploads","_useState5","_useState6","mentionedUsers","setMentionedUsers","_useState7","_useState8","numberOfUploads","setNumberOfUploads","_useState9","_useState10","showMoreOptions","setShowMoreOptions","initialTextValue","_useState11","_useState12","text","setText","useEffect","messageValue","undefined","id","updated_at","mentioned_users","map","user","newFileUploads","newImageUploads","attachments","_iterator","_step","attachment","type","generateRandomId","push","file","mimeType","mime_type","title","size","file_size","state","url","asset_url","fallback","image_url","thumb_url","exports"],"sources":["useMessageDetailsForState.ts"],"sourcesContent":["import { useEffect, useState } from 'react';\n\nimport type { DefaultStreamChatGenerics, FileUpload, ImageUpload } from '../../../types/types';\nimport { generateRandomId } from '../../../utils/utils';\n\nimport type { MessageInputContextValue } from '../MessageInputContext';\n\nexport const useMessageDetailsForState = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n message: MessageInputContextValue<StreamChatGenerics>['editing'],\n initialValue?: string,\n) => {\n const [fileUploads, setFileUploads] = useState<FileUpload[]>([]);\n const [imageUploads, setImageUploads] = useState<ImageUpload[]>([]);\n const [mentionedUsers, setMentionedUsers] = useState<string[]>([]);\n const [numberOfUploads, setNumberOfUploads] = useState(0);\n const [showMoreOptions, setShowMoreOptions] = useState(true);\n const initialTextValue = initialValue || '';\n const [text, setText] = useState(initialTextValue);\n\n useEffect(() => {\n if (text !== initialTextValue) {\n setShowMoreOptions(false);\n }\n }, [text]);\n\n const messageValue =\n message === undefined ? '' : `${message.id}${message.text}${message.updated_at}`;\n\n useEffect(() => {\n if (message && Array.isArray(message?.mentioned_users)) {\n const mentionedUsers = message.mentioned_users.map((user) => user.id);\n setMentionedUsers(mentionedUsers);\n }\n }, [messageValue]);\n\n useEffect(() => {\n if (message) {\n setText(message?.text || '');\n const newFileUploads: FileUpload[] = [];\n const newImageUploads: ImageUpload[] = [];\n\n const attachments = Array.isArray(message.attachments) ? message.attachments : [];\n\n for (const attachment of attachments) {\n if (attachment.type === 'file') {\n const id = generateRandomId();\n newFileUploads.push({\n file: {\n mimeType: attachment.mime_type,\n name: attachment.title || '',\n size: attachment.file_size,\n },\n id,\n state: 'finished',\n url: attachment.asset_url,\n });\n } else if (attachment.type === 'image') {\n const id = generateRandomId();\n newImageUploads.push({\n file: {\n name: attachment.fallback,\n size: attachment.file_size,\n type: attachment.type,\n },\n id,\n state: 'finished',\n url: attachment.image_url || attachment.asset_url || attachment.thumb_url,\n });\n } else if (attachment.type === 'video') {\n const id = generateRandomId();\n newFileUploads.push({\n file: {\n mimeType: attachment.mime_type,\n name: attachment.title || '',\n size: attachment.file_size,\n },\n id,\n state: 'finished',\n thumb_url: attachment.thumb_url,\n url: attachment.asset_url,\n });\n }\n }\n if (newFileUploads.length) {\n setFileUploads(newFileUploads);\n }\n if (newImageUploads.length) {\n setImageUploads(newImageUploads);\n }\n }\n }, [messageValue]);\n\n return {\n fileUploads,\n imageUploads,\n mentionedUsers,\n numberOfUploads,\n setFileUploads,\n setImageUploads,\n setMentionedUsers,\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AAC,CAAC;QACJ;MACF;MACA,IAAIjB,cAAc,CAACzD,MAAM,EAAE;QACzB2B,cAAc,CAAC8B,cAAc,CAAC;MAChC;MACA,IAAIC,eAAe,CAAC1D,MAAM,EAAE;QAC1B+B,eAAe,CAAC2B,eAAe,CAAC;MAClC;IACF;EACF,CAAC,EAAE,CAACR,YAAY,CAAC,CAAC;EAElB,OAAO;IACLxB,WAAW,EAAXA,WAAW;IACXI,YAAY,EAAZA,YAAY;IACZI,cAAc,EAAdA,cAAc;IACdI,eAAe,EAAfA,eAAe;IACfX,cAAc,EAAdA,cAAc;IACdI,eAAe,EAAfA,eAAe;IACfI,iBAAiB,EAAjBA,iBAAiB;IACjBI,kBAAkB,EAAlBA,kBAAkB;IAClBI,kBAAkB,EAAlBA,kBAAkB;IAClBK,OAAO,EAAPA,OAAO;IACPN,eAAe,EAAfA,eAAe;IACfK,IAAI,EAAJA;EACF,CAAC;AACH,CAAC;AAAC+B,OAAA,CAAA3D,yBAAA,GAAAA,yBAAA"}
@@ -23,7 +23,7 @@ var MessagesProvider = function MessagesProvider(_ref) {
23
23
  __self: _this,
24
24
  __source: {
25
25
  fileName: _jsxFileName,
26
- lineNumber: 509,
26
+ lineNumber: 514,
27
27
  columnNumber: 3
28
28
  }
29
29
  }, children);
@@ -44,7 +44,7 @@ var withMessagesContext = function withMessagesContext(Component) {
44
44
  __self: _this,
45
45
  __source: {
46
46
  fileName: _jsxFileName,
47
- lineNumber: 546,
47
+ lineNumber: 551,
48
48
  columnNumber: 12
49
49
  }
50
50
  }));
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_defaultBaseContextValue","_getDisplayName","_isTestEnvironment","_this","_jsxFileName","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","MessagesContext","React","createContext","DEFAULT_BASE_CONTEXT_VALUE","exports","MessagesProvider","_ref","children","value","createElement","Provider","__self","__source","fileName","lineNumber","columnNumber","useMessagesContext","contextValue","useContext","isTestEnvironment","Error","withMessagesContext","Component","WithMessagesContextComponent","props","messagesContext","_extends2","displayName","getDisplayName"],"sources":["MessagesContext.tsx"],"sourcesContent":["import React, { PropsWithChildren, useContext } from 'react';\n\nimport type { TouchableOpacityProps } from 'react-native';\n\nimport type { ImageLoadingFailedIndicatorProps } from 'src/components/Attachment/ImageLoadingFailedIndicator';\nimport type { ImageLoadingIndicatorProps } from 'src/components/Attachment/ImageLoadingIndicator';\n\nimport type { MessagePinnedHeaderProps } from 'src/components/Message/MessageSimple/MessagePinnedHeader';\n\nimport type { Attachment, ChannelState, MessageResponse } from 'stream-chat';\n\nimport type { AttachmentProps } from '../../components/Attachment/Attachment';\nimport type { AttachmentActionsProps } from '../../components/Attachment/AttachmentActions';\nimport type { AudioAttachmentProps } from '../../components/Attachment/AudioAttachment';\nimport type { CardProps } from '../../components/Attachment/Card';\nimport type { FileAttachmentProps } from '../../components/Attachment/FileAttachment';\nimport type { FileAttachmentGroupProps } from '../../components/Attachment/FileAttachmentGroup';\nimport type { FileIconProps } from '../../components/Attachment/FileIcon';\nimport type { GalleryProps } from '../../components/Attachment/Gallery';\nimport type { GiphyProps } from '../../components/Attachment/Giphy';\nimport type { VideoThumbnailProps } from '../../components/Attachment/VideoThumbnail';\nimport type {\n MessageProps,\n MessageTouchableHandlerPayload,\n} from '../../components/Message/Message';\nimport type { MessageAvatarProps } from '../../components/Message/MessageSimple/MessageAvatar';\nimport type { MessageContentProps } from '../../components/Message/MessageSimple/MessageContent';\nimport type { MessageDeletedProps } from '../../components/Message/MessageSimple/MessageDeleted';\nimport type { MessageErrorProps } from '../../components/Message/MessageSimple/MessageError';\nimport type { MessageFooterProps } from '../../components/Message/MessageSimple/MessageFooter';\n\nimport type { MessageRepliesProps } from '../../components/Message/MessageSimple/MessageReplies';\nimport type { MessageRepliesAvatarsProps } from '../../components/Message/MessageSimple/MessageRepliesAvatars';\nimport type { MessageSimpleProps } from '../../components/Message/MessageSimple/MessageSimple';\nimport type { MessageStatusProps } from '../../components/Message/MessageSimple/MessageStatus';\nimport type { MessageTextProps } from '../../components/Message/MessageSimple/MessageTextContainer';\nimport type { ReactionListProps } from '../../components/Message/MessageSimple/ReactionList';\nimport type { MarkdownRules } from '../../components/Message/MessageSimple/utils/renderText';\nimport type { MessageActionsParams } from '../../components/Message/utils/messageActions';\nimport type { DateHeaderProps } from '../../components/MessageList/DateHeader';\nimport type { MessageType } from '../../components/MessageList/hooks/useMessageList';\nimport type { InlineDateSeparatorProps } from '../../components/MessageList/InlineDateSeparator';\nimport type { MessageListProps } from '../../components/MessageList/MessageList';\nimport type { MessageSystemProps } from '../../components/MessageList/MessageSystem';\nimport type { ScrollToBottomButtonProps } from '../../components/MessageList/ScrollToBottomButton';\nimport type { getGroupStyles } from '../../components/MessageList/utils/getGroupStyles';\nimport type { MessageActionType } from '../../components/MessageOverlay/MessageActionListItem';\nimport type { OverlayReactionListProps } from '../../components/MessageOverlay/OverlayReactionList';\nimport type { ReplyProps } from '../../components/Reply/Reply';\nimport type { FlatList } from '../../native';\nimport type { DefaultStreamChatGenerics, UnknownType } from '../../types/types';\nimport type { ReactionData } from '../../utils/utils';\nimport type { Alignment } from '../messageContext/MessageContext';\nimport type { SuggestionCommand } from '../suggestionsContext/SuggestionsContext';\nimport type { DeepPartial } from '../themeContext/ThemeContext';\nimport type { Theme } from '../themeContext/utils/theme';\nimport type { TDateTimeParserInput } from '../translationContext/TranslationContext';\nimport { DEFAULT_BASE_CONTEXT_VALUE } from '../utils/defaultBaseContextValue';\n\nimport { getDisplayName } from '../utils/getDisplayName';\nimport { isTestEnvironment } from '../utils/isTestEnvironment';\n\nexport type MessageContentType = 'attachments' | 'files' | 'gallery' | 'quoted_reply' | 'text';\nexport type DeletedMessagesVisibilityType = 'always' | 'never' | 'receiver' | 'sender';\n\nexport type MessagesContextValue<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = {\n /**\n * UI component for Attachment.\n * Defaults to: [Attachment](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/Attachment.tsx)\n */\n Attachment: React.ComponentType<AttachmentProps<StreamChatGenerics>>;\n /**\n * UI component to display AttachmentActions. e.g., send, shuffle, cancel in case of giphy\n * Defaults to: [AttachmentActions](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/AttachmentActions.tsx)\n */\n AttachmentActions: React.ComponentType<AttachmentActionsProps<StreamChatGenerics>>;\n /** Custom UI component for AudioAttachment. */\n AudioAttachment: React.ComponentType<AudioAttachmentProps>;\n /**\n * UI component to display generic media type e.g. giphy, url preview etc\n * Defaults to: [Card](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/Card.tsx)\n */\n Card: React.ComponentType<CardProps<StreamChatGenerics>>;\n /**\n * UI component for DateHeader\n * Defaults to: [DateHeader](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageList/DateHeader.tsx)\n **/\n DateHeader: React.ComponentType<DateHeaderProps>;\n deleteMessage: (message: MessageResponse<StreamChatGenerics>) => Promise<void>;\n deleteReaction: (type: string, messageId: string) => Promise<void>;\n\n /** Should keyboard be dismissed when messaged is touched */\n dismissKeyboardOnMessageTouch: boolean;\n\n enableMessageGroupingByUser: boolean;\n\n /**\n * UI component to display File type attachment.\n * Defaults to: [FileAttachment](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/FileAttachment.tsx)\n */\n FileAttachment: React.ComponentType<FileAttachmentProps<StreamChatGenerics>>;\n /**\n * UI component to display group of File type attachments or multiple file attachments (in single message).\n * Defaults to: [FileAttachmentGroup](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/FileAttachmentGroup.tsx)\n */\n FileAttachmentGroup: React.ComponentType<FileAttachmentGroupProps<StreamChatGenerics>>;\n /**\n * UI component for attachment icon for type 'file' attachment.\n * Defaults to: https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/FileIcon.tsx\n */\n FileAttachmentIcon: React.ComponentType<FileIconProps>;\n FlatList: typeof FlatList;\n /**\n * UI component to display image attachments\n * Defaults to: [Gallery](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/Gallery.tsx)\n */\n Gallery: React.ComponentType<GalleryProps<StreamChatGenerics>>;\n /**\n * UI component for Giphy\n * Defaults to: [Giphy](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/Giphy.tsx)\n */\n Giphy: React.ComponentType<GiphyProps<StreamChatGenerics>>;\n /**\n * The giphy version to render - check the keys of the [Image Object](https://developers.giphy.com/docs/api/schema#image-object) for possible values. Uses 'fixed_height' by default\n * */\n giphyVersion: keyof NonNullable<Attachment['giphy']>;\n\n /**\n * The indicator rendered when loading an image fails.\n */\n ImageLoadingFailedIndicator: React.ComponentType<ImageLoadingFailedIndicatorProps>;\n\n /**\n * The indicator rendered when image is loading. By default renders <ActivityIndicator/>\n */\n ImageLoadingIndicator: React.ComponentType<ImageLoadingIndicatorProps>;\n\n /**\n * When true, messageList will be scrolled at first unread message, when opened.\n */\n initialScrollToFirstUnreadMessage: boolean;\n /**\n * UI component for Message Date Separator Component\n * Defaults to: [InlineDateSeparator](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageList/InlineDateSeparator.tsx)\n */\n InlineDateSeparator: React.ComponentType<InlineDateSeparatorProps>;\n /**\n * UI component for InlineUnreadIndicator\n * Defaults to: [InlineUnreadIndicator](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Message/MessageSimple/InlineUnreadIndicator.tsx)\n **/\n InlineUnreadIndicator: React.ComponentType;\n\n Message: React.ComponentType<MessageProps<StreamChatGenerics>>;\n /**\n * UI component for MessageAvatar\n * Defaults to: [MessageAvatar](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Message/MessageSimple/MessageAvatar.tsx)\n **/\n MessageAvatar: React.ComponentType<MessageAvatarProps<StreamChatGenerics>>;\n /**\n * UI component for MessageContent\n * Defaults to: [MessageContent](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Message/MessageSimple/MessageContent.tsx)\n */\n MessageContent: React.ComponentType<MessageContentProps<StreamChatGenerics>>;\n /** Order to render the message content */\n messageContentOrder: MessageContentType[];\n /**\n * UI component for MessageDeleted\n * Defaults to: [MessageDeleted](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageSimple/MessageDeleted.tsx)\n */\n MessageDeleted: React.ComponentType<MessageDeletedProps<StreamChatGenerics>>;\n /**\n * UI component for the MessageError.\n */\n MessageError: React.ComponentType<MessageErrorProps>;\n /**\n * Custom message footer component\n */\n MessageFooter: React.ComponentType<MessageFooterProps<StreamChatGenerics>>;\n MessageList: React.ComponentType<MessageListProps<StreamChatGenerics>>;\n /**\n * Custom message pinned component\n */\n MessagePinnedHeader: React.ComponentType<MessagePinnedHeaderProps<StreamChatGenerics>>;\n\n /**\n * UI component for MessageReplies\n * Defaults to: [MessageReplies](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageSimple/MessageReplies.tsx)\n */\n MessageReplies: React.ComponentType<MessageRepliesProps<StreamChatGenerics>>;\n /**\n * UI Component for MessageRepliesAvatars\n * Defaults to: [MessageRepliesAvatars](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageSimple/MessageRepliesAvatars.tsx)\n */\n MessageRepliesAvatars: React.ComponentType<MessageRepliesAvatarsProps<StreamChatGenerics>>;\n /**\n * UI component for MessageSimple\n * Defaults to: [MessageSimple](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Message/MessageSimple/MessageSimple.tsx)\n */\n MessageSimple: React.ComponentType<MessageSimpleProps<StreamChatGenerics>>;\n /**\n * UI component for MessageStatus (delivered/read)\n * Defaults to: [MessageStatus](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Message/MessageSimple/MessageStatus.tsx)\n */\n MessageStatus: React.ComponentType<MessageStatusProps<StreamChatGenerics>>;\n /**\n * UI component for MessageSystem\n * Defaults to: [MessageSystem](https://getstream.io/chat/docs/sdk/reactnative/ui-components/message-system/)\n */\n MessageSystem: React.ComponentType<MessageSystemProps<StreamChatGenerics>>;\n /**\n * UI component for OverlayReactionList\n */\n OverlayReactionList: React.ComponentType<OverlayReactionListProps<StreamChatGenerics>>;\n /**\n * UI component for ReactionList\n * Defaults to: [ReactionList](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Reaction/ReactionList.tsx)\n */\n ReactionList: React.ComponentType<ReactionListProps<StreamChatGenerics>>;\n removeMessage: (message: { id: string; parent_id?: string }) => void;\n /**\n * UI component for Reply\n * Defaults to: [Reply](https://getstream.io/chat/docs/sdk/reactnative/ui-components/reply/)\n */\n Reply: React.ComponentType<ReplyProps<StreamChatGenerics>>;\n /**\n * Override the api request for retry message functionality.\n */\n retrySendMessage: (message: MessageResponse<StreamChatGenerics>) => Promise<void>;\n /**\n * UI component for ScrollToBottomButton\n * Defaults to: [ScrollToBottomButton](https://getstream.io/chat/docs/sdk/reactnative/ui-components/scroll-to-bottom-button/)\n */\n ScrollToBottomButton: React.ComponentType<ScrollToBottomButtonProps>;\n sendReaction: (type: string, messageId: string) => Promise<void>;\n setEditingState: (message: MessageType<StreamChatGenerics> | boolean) => void;\n setQuotedMessageState: (message: MessageType<StreamChatGenerics> | boolean) => void;\n supportedReactions: ReactionData[];\n /**\n * UI component for TypingIndicator\n * Defaults to: [TypingIndicator](https://getstream.io/chat/docs/sdk/reactnative/ui-components/typing-indicator/)\n */\n TypingIndicator: React.ComponentType;\n /**\n * UI component for TypingIndicatorContainer\n * Defaults to: [TypingIndicatorContainer](https://getstream.io/chat/docs/sdk/reactnative/contexts/messages-context/#typingindicatorcontainer)\n */\n TypingIndicatorContainer: React.ComponentType;\n updateMessage: (\n updatedMessage: MessageResponse<StreamChatGenerics>,\n extraState?: {\n commands?: SuggestionCommand<StreamChatGenerics>[];\n messageInput?: string;\n threadMessages?: ChannelState<StreamChatGenerics>['threads'][string];\n },\n ) => void;\n /**\n * Custom UI component to display enriched url preview.\n * Defaults to https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/Card.tsx\n */\n UrlPreview: React.ComponentType<CardProps<StreamChatGenerics>>;\n VideoThumbnail: React.ComponentType<VideoThumbnailProps>;\n /**\n * Provide any additional props for `TouchableOpacity` which wraps inner MessageContent component here.\n * Please check docs for TouchableOpacity for supported props - https://reactnative.dev/docs/touchableopacity#props\n *\n * @overrideType Object\n */\n additionalTouchableProps?: Omit<TouchableOpacityProps, 'style'>;\n /**\n * Custom UI component to override default cover (between Header and Footer) of Card component.\n * Accepts the same props as Card component.\n */\n CardCover?: React.ComponentType<CardProps<StreamChatGenerics>>;\n /**\n * Custom UI component to override default Footer of Card component.\n * Accepts the same props as Card component.\n */\n CardFooter?: React.ComponentType<CardProps<StreamChatGenerics>>;\n /**\n * Custom UI component to override default header of Card component.\n * Accepts the same props as Card component.\n */\n CardHeader?: React.ComponentType<CardProps<StreamChatGenerics>>;\n\n /**\n * Full override of the delete message button in the Message Actions\n *\n * Please check [cookbook](https://github.com/GetStream/stream-chat-react-native/wiki/Cookbook-v3.0#override-or-intercept-message-actions-edit-delete-reaction-reply-etc) for details.\n */\n\n /** Control if the deleted message is visible to both the send and reciever, either of them or none */\n deletedMessagesVisibilityType?: DeletedMessagesVisibilityType;\n\n disableTypingIndicator?: boolean;\n\n /**\n * Whether messages should be aligned to right or left part of screen.\n * By default, messages will be received messages will be aligned to left and\n * sent messages will be aligned to right.\n */\n forceAlignMessages?: Alignment | boolean;\n /**\n * Optional function to custom format the message date\n */\n formatDate?: (date: TDateTimeParserInput) => string;\n getMessagesGroupStyles?: typeof getGroupStyles;\n handleBlock?: (message: MessageType<StreamChatGenerics>) => Promise<void>;\n /** Handler to access when a copy message action is invoked */\n handleCopy?: (message: MessageType<StreamChatGenerics>) => Promise<void>;\n /** Handler to access when a delete message action is invoked */\n handleDelete?: (message: MessageType<StreamChatGenerics>) => Promise<void>;\n /** Handler to access when an edit message action is invoked */\n handleEdit?: (message: MessageType<StreamChatGenerics>) => void;\n /** Handler to access when a flag message action is invoked */\n handleFlag?: (message: MessageType<StreamChatGenerics>) => Promise<void>;\n /** Handler to access when a mute user action is invoked */\n handleMute?: (message: MessageType<StreamChatGenerics>) => Promise<void>;\n /** Handler to access when a pin/unpin user action is invoked*/\n handlePinMessage?: ((message: MessageType<StreamChatGenerics>) => MessageActionType) | null;\n /** Handler to access when a quoted reply action is invoked */\n handleQuotedReply?: (message: MessageType<StreamChatGenerics>) => Promise<void>;\n /** Handler to process a reaction */\n handleReaction?: (\n message: MessageType<StreamChatGenerics>,\n reactionType: string,\n ) => Promise<void>;\n /** Handler to access when a retry action is invoked */\n handleRetry?: (message: MessageType<StreamChatGenerics>) => Promise<void>;\n /** Handler to access when a thread reply action is invoked */\n handleThreadReply?: (message: MessageType<StreamChatGenerics>) => Promise<void>;\n /** Handler to deal with custom memoization logic of Attachment */\n isAttachmentEqual?: (\n prevAttachment: Attachment<StreamChatGenerics>,\n nextAttachment: Attachment<StreamChatGenerics>,\n ) => boolean;\n legacyImageViewerSwipeBehaviour?: boolean;\n /** Object specifying rules defined within simple-markdown https://github.com/Khan/simple-markdown#adding-a-simple-extension */\n markdownRules?: MarkdownRules;\n /**\n * Use this prop to override message actions (which pop-up in message overlay).\n *\n * You can either completely override the default messageActions object.\n *\n * ```\n * <Channel\n * messageActions=[\n * {\n * action: () => { someAction() };\n * title: \"Pin Message\";\n * icon: PinIcon;\n * titleStyle: {};\n * },\n * {\n * action: () => { someAction() };\n * title: \"Delete Message\";\n * icon: PinIcon;\n * titleStyle: {};\n * }\n * ]\n * >\n * </Channel>\n * ```\n *\n * Or you can selectly keep certain action and remove some:\n *\n * e.g. Lets say you only want to keep threadReply and copyMessage actions\n *\n * ```\n * <Channel\n * messageActions={({\n * blockUser,\n * copyMessage,\n * deleteMessage,\n * editMessage,\n * flagMessage,\n * muteUser,\n * quotedReply,\n * retry,\n * threadReply,\n * }) => ([\n * threadReply, copyMessage\n * ])}\n * >\n * </Channel>\n * ```\n *\n * @overrideType Function | Array<Objects>\n */\n messageActions?: (param: MessageActionsParams<StreamChatGenerics>) => MessageActionType[];\n /**\n * Custom message header component\n */\n MessageHeader?: React.ComponentType<MessageFooterProps<StreamChatGenerics>>;\n /** Custom UI component for message text */\n MessageText?: React.ComponentType<MessageTextProps<StreamChatGenerics>>;\n\n /**\n * Theme provided only to messages that are the current users\n */\n myMessageTheme?: DeepPartial<Theme>;\n /**\n * Override default handler for onLongPress on message. You have access to payload of that handler as param:\n *\n * ```\n * <Channel\n * onLongPressMessage={({\n * actionHandlers: {\n * deleteMessage, // () => Promise<void>;\n * editMessage, // () => void;\n * quotedReply, // () => void;\n * resendMessage, // () => Promise<void>;\n * showMessageOverlay, // () => void;\n * toggleBanUser, // () => Promise<void>;\n * toggleMuteUser, // () => Promise<void>;\n * toggleReaction, // (reactionType: string) => Promise<void>;\n * },\n * defaultHandler, // () => void\n * event, // any event object corresponding to touchable feedback\n * emitter, // which component trigged this touchable feedback e.g. card, fileAttachment, gallery, message ... etc\n * message // message object on which longPress occured\n * }) => {\n * // Your custom action\n * }}\n * />\n * ```\n */\n onLongPressMessage?: (payload: MessageTouchableHandlerPayload<StreamChatGenerics>) => void;\n /**\n * Add onPressIn handler for attachments. You have access to payload of that handler as param:\n *\n * ```\n * <Channel\n * onPressInMessage={({\n * actionHandlers: {\n * deleteMessage, // () => Promise<void>;\n * editMessage, // () => void;\n * quotedReply, // () => void;\n * resendMessage, // () => Promise<void>;\n * showMessageOverlay, // () => void;\n * toggleBanUser, // () => Promise<void>;\n * toggleMuteUser, // () => Promise<void>;\n * toggleReaction, // (reactionType: string) => Promise<void>;\n * },\n * defaultHandler, // () => void\n * event, // any event object corresponding to touchable feedback\n * emitter, // which component trigged this touchable feedback e.g. card, fileAttachment, gallery, message ... etc\n * message // message object on which longPress occured\n * }) => {\n * // Your custom action\n * }}\n * />\n * ```\n */\n onPressInMessage?: (payload: MessageTouchableHandlerPayload<StreamChatGenerics>) => void;\n /**\n * Override onPress handler for message. You have access to payload of that handler as param:\n *\n * ```\n * <Channel\n * onPressMessage={({\n * actionHandlers: {\n * deleteMessage, // () => Promise<void>;\n * editMessage, // () => void;\n * quotedReply, // () => void;\n * resendMessage, // () => Promise<void>;\n * showMessageOverlay, // () => void;\n * toggleBanUser, // () => Promise<void>;\n * toggleMuteUser, // () => Promise<void>;\n * toggleReaction, // (reactionType: string) => Promise<void>;\n * },\n * defaultHandler, // () => void\n * event, // any event object corresponding to touchable feedback\n * emitter, // which component trigged this touchable feedback e.g. card, fileAttachment, gallery, message ... etc\n * message // message object on which longPress occurred\n * }) => {\n * // Your custom action\n * }}\n * />\n * ```\n */\n onPressMessage?: (payload: MessageTouchableHandlerPayload<StreamChatGenerics>) => void;\n\n /**\n * Full override of the reaction function on Message and Message Overlay\n *\n * Please check [cookbook](https://github.com/GetStream/stream-chat-react-native/wiki/Cookbook-v3.0#override-or-intercept-message-actions-edit-delete-reaction-reply-etc) for details.\n * */\n selectReaction?: (\n message: MessageType<StreamChatGenerics>,\n ) => (reactionType: string) => Promise<void>;\n\n targetedMessage?: string;\n};\n\nexport const MessagesContext = React.createContext(\n DEFAULT_BASE_CONTEXT_VALUE as MessagesContextValue,\n);\n\nexport const MessagesProvider = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>({\n children,\n value,\n}: PropsWithChildren<{\n value?: MessagesContextValue<StreamChatGenerics>;\n}>) => (\n <MessagesContext.Provider value={value as unknown as MessagesContextValue}>\n {children}\n </MessagesContext.Provider>\n);\n\nexport const useMessagesContext = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>() => {\n const contextValue = useContext(\n MessagesContext,\n ) as unknown as MessagesContextValue<StreamChatGenerics>;\n\n if (contextValue === DEFAULT_BASE_CONTEXT_VALUE && !isTestEnvironment()) {\n throw new Error(\n `The useMessagesContext hook was called outside of the MessagesContext provider. Make sure you have configured MessageList component correctly - https://getstream.io/chat/docs/sdk/reactnative/basics/hello_stream_chat/#message-list`,\n );\n }\n\n return contextValue;\n};\n\n/**\n * Typescript currently does not support partial inference so if MessagesContext\n * typing is desired while using the HOC withMessagesContext the Props for the\n * wrapped component must be provided as the first generic.\n */\nexport const withMessagesContext = <\n P extends UnknownType,\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n Component: React.ComponentType<P>,\n): React.FC<Omit<P, keyof MessagesContextValue<StreamChatGenerics>>> => {\n const WithMessagesContextComponent = (\n props: Omit<P, keyof MessagesContextValue<StreamChatGenerics>>,\n ) => {\n const messagesContext = useMessagesContext<StreamChatGenerics>();\n\n return <Component {...(props as P)} {...messagesContext} />;\n };\n WithMessagesContextComponent.displayName = `WithMessagesContext${getDisplayName(Component)}`;\n return WithMessagesContextComponent;\n};\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAyDA,IAAAC,wBAAA,GAAAD,OAAA;AAEA,IAAAE,eAAA,GAAAF,OAAA;AACA,IAAAG,kBAAA,GAAAH,OAAA;AAA+D,IAAAI,KAAA;EAAAC,YAAA;AAAA,SAAAC,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAR,wBAAAY,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,aAAAE,OAAA,CAAAF,GAAA,yBAAAA,GAAA,uCAAAA,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAA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AG,IAAAC,iBAAU,EAC7BlB,eACF,CAAwD;EAExD,IAAIiB,YAAY,KAAKd,mDAA0B,IAAI,CAAC,IAAAgB,oCAAiB,EAAC,CAAC,EAAE;IACvE,MAAM,IAAIC,KAAK,wOAEf,CAAC;EACH;EAEA,OAAOH,YAAY;AACrB,CAAC;AAACb,OAAA,CAAAY,kBAAA,GAAAA,kBAAA;AAOK,IAAMK,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAI9BC,SAAiC,EACqC;EACtE,IAAMC,4BAA4B,GAAG,SAA/BA,4BAA4BA,CAChCC,KAA8D,EAC3D;IACH,IAAMC,eAAe,GAAGT,kBAAkB,CAAqB,CAAC;IAEhE,OAAO9C,MAAA,YAAAuC,aAAA,CAACa,SAAS,MAAAI,SAAA,iBAAMF,KAAK,EAAYC,eAAe;MAAAd,MAAA,EAAAnC,KAAA;MAAAoC,QAAA;QAAAC,QAAA,EAAApC,YAAA;QAAAqC,UAAA;QAAAC,YAAA;MAAA;IAAA,EAAG,CAAC;EAC7D,CAAC;EACDQ,4BAA4B,CAACI,WAAW,2BAAyB,IAAAC,8BAAc,EAACN,SAAS,CAAG;EAC5F,OAAOC,4BAA4B;AACrC,CAAC;AAACnB,OAAA,CAAAiB,mBAAA,GAAAA,mBAAA"}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_defaultBaseContextValue","_getDisplayName","_isTestEnvironment","_this","_jsxFileName","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","MessagesContext","React","createContext","DEFAULT_BASE_CONTEXT_VALUE","exports","MessagesProvider","_ref","children","value","createElement","Provider","__self","__source","fileName","lineNumber","columnNumber","useMessagesContext","contextValue","useContext","isTestEnvironment","Error","withMessagesContext","Component","WithMessagesContextComponent","props","messagesContext","_extends2","displayName","getDisplayName"],"sources":["MessagesContext.tsx"],"sourcesContent":["import React, { PropsWithChildren, useContext } from 'react';\n\nimport type { TouchableOpacityProps } from 'react-native';\n\nimport type { ImageLoadingFailedIndicatorProps } from 'src/components/Attachment/ImageLoadingFailedIndicator';\nimport type { ImageLoadingIndicatorProps } from 'src/components/Attachment/ImageLoadingIndicator';\n\nimport type { MessagePinnedHeaderProps } from 'src/components/Message/MessageSimple/MessagePinnedHeader';\n\nimport type { Attachment, ChannelState, MessageResponse } from 'stream-chat';\n\nimport type { AttachmentProps } from '../../components/Attachment/Attachment';\nimport type { AttachmentActionsProps } from '../../components/Attachment/AttachmentActions';\nimport type { AudioAttachmentProps } from '../../components/Attachment/AudioAttachment';\nimport type { CardProps } from '../../components/Attachment/Card';\nimport type { FileAttachmentProps } from '../../components/Attachment/FileAttachment';\nimport type { FileAttachmentGroupProps } from '../../components/Attachment/FileAttachmentGroup';\nimport type { FileIconProps } from '../../components/Attachment/FileIcon';\nimport type { GalleryProps } from '../../components/Attachment/Gallery';\nimport type { GiphyProps } from '../../components/Attachment/Giphy';\nimport type { VideoThumbnailProps } from '../../components/Attachment/VideoThumbnail';\nimport type {\n MessageProps,\n MessageTouchableHandlerPayload,\n} from '../../components/Message/Message';\nimport type { MessageAvatarProps } from '../../components/Message/MessageSimple/MessageAvatar';\nimport type { MessageBounceProps } from '../../components/Message/MessageSimple/MessageBounce';\nimport type { MessageContentProps } from '../../components/Message/MessageSimple/MessageContent';\nimport type { MessageDeletedProps } from '../../components/Message/MessageSimple/MessageDeleted';\nimport type { MessageErrorProps } from '../../components/Message/MessageSimple/MessageError';\nimport type { MessageFooterProps } from '../../components/Message/MessageSimple/MessageFooter';\n\nimport type { MessageRepliesProps } from '../../components/Message/MessageSimple/MessageReplies';\nimport type { MessageRepliesAvatarsProps } from '../../components/Message/MessageSimple/MessageRepliesAvatars';\nimport type { MessageSimpleProps } from '../../components/Message/MessageSimple/MessageSimple';\nimport type { MessageStatusProps } from '../../components/Message/MessageSimple/MessageStatus';\nimport type { MessageTextProps } from '../../components/Message/MessageSimple/MessageTextContainer';\nimport type { ReactionListProps } from '../../components/Message/MessageSimple/ReactionList';\nimport type { MarkdownRules } from '../../components/Message/MessageSimple/utils/renderText';\nimport type { MessageActionsParams } from '../../components/Message/utils/messageActions';\nimport type { DateHeaderProps } from '../../components/MessageList/DateHeader';\nimport type { MessageType } from '../../components/MessageList/hooks/useMessageList';\nimport type { InlineDateSeparatorProps } from '../../components/MessageList/InlineDateSeparator';\nimport type { MessageListProps } from '../../components/MessageList/MessageList';\nimport type { MessageSystemProps } from '../../components/MessageList/MessageSystem';\nimport type { ScrollToBottomButtonProps } from '../../components/MessageList/ScrollToBottomButton';\nimport type { getGroupStyles } from '../../components/MessageList/utils/getGroupStyles';\nimport type { MessageActionType } from '../../components/MessageOverlay/MessageActionListItem';\nimport type { OverlayReactionListProps } from '../../components/MessageOverlay/OverlayReactionList';\nimport type { ReplyProps } from '../../components/Reply/Reply';\nimport type { FlatList } from '../../native';\nimport type { DefaultStreamChatGenerics, UnknownType } from '../../types/types';\nimport type { ReactionData } from '../../utils/utils';\nimport type { Alignment } from '../messageContext/MessageContext';\nimport type { SuggestionCommand } from '../suggestionsContext/SuggestionsContext';\nimport type { DeepPartial } from '../themeContext/ThemeContext';\nimport type { Theme } from '../themeContext/utils/theme';\nimport type { TDateTimeParserInput } from '../translationContext/TranslationContext';\nimport { DEFAULT_BASE_CONTEXT_VALUE } from '../utils/defaultBaseContextValue';\n\nimport { getDisplayName } from '../utils/getDisplayName';\nimport { isTestEnvironment } from '../utils/isTestEnvironment';\n\nexport type MessageContentType = 'attachments' | 'files' | 'gallery' | 'quoted_reply' | 'text';\nexport type DeletedMessagesVisibilityType = 'always' | 'never' | 'receiver' | 'sender';\n\nexport type MessagesContextValue<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = {\n /**\n * UI component for Attachment.\n * Defaults to: [Attachment](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/Attachment.tsx)\n */\n Attachment: React.ComponentType<AttachmentProps<StreamChatGenerics>>;\n /**\n * UI component to display AttachmentActions. e.g., send, shuffle, cancel in case of giphy\n * Defaults to: [AttachmentActions](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/AttachmentActions.tsx)\n */\n AttachmentActions: React.ComponentType<AttachmentActionsProps<StreamChatGenerics>>;\n /** Custom UI component for AudioAttachment. */\n AudioAttachment: React.ComponentType<AudioAttachmentProps>;\n /**\n * UI component to display generic media type e.g. giphy, url preview etc\n * Defaults to: [Card](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/Card.tsx)\n */\n Card: React.ComponentType<CardProps<StreamChatGenerics>>;\n /**\n * UI component for DateHeader\n * Defaults to: [DateHeader](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageList/DateHeader.tsx)\n **/\n DateHeader: React.ComponentType<DateHeaderProps>;\n deleteMessage: (message: MessageResponse<StreamChatGenerics>) => Promise<void>;\n deleteReaction: (type: string, messageId: string) => Promise<void>;\n\n /** Should keyboard be dismissed when messaged is touched */\n dismissKeyboardOnMessageTouch: boolean;\n\n enableMessageGroupingByUser: boolean;\n\n /**\n * UI component to display File type attachment.\n * Defaults to: [FileAttachment](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/FileAttachment.tsx)\n */\n FileAttachment: React.ComponentType<FileAttachmentProps<StreamChatGenerics>>;\n /**\n * UI component to display group of File type attachments or multiple file attachments (in single message).\n * Defaults to: [FileAttachmentGroup](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/FileAttachmentGroup.tsx)\n */\n FileAttachmentGroup: React.ComponentType<FileAttachmentGroupProps<StreamChatGenerics>>;\n /**\n * UI component for attachment icon for type 'file' attachment.\n * Defaults to: https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/FileIcon.tsx\n */\n FileAttachmentIcon: React.ComponentType<FileIconProps>;\n FlatList: typeof FlatList;\n /**\n * UI component to display image attachments\n * Defaults to: [Gallery](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/Gallery.tsx)\n */\n Gallery: React.ComponentType<GalleryProps<StreamChatGenerics>>;\n /**\n * UI component for Giphy\n * Defaults to: [Giphy](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/Giphy.tsx)\n */\n Giphy: React.ComponentType<GiphyProps<StreamChatGenerics>>;\n /**\n * The giphy version to render - check the keys of the [Image Object](https://developers.giphy.com/docs/api/schema#image-object) for possible values. Uses 'fixed_height' by default\n * */\n giphyVersion: keyof NonNullable<Attachment['giphy']>;\n\n /**\n * The indicator rendered when loading an image fails.\n */\n ImageLoadingFailedIndicator: React.ComponentType<ImageLoadingFailedIndicatorProps>;\n\n /**\n * The indicator rendered when image is loading. By default renders <ActivityIndicator/>\n */\n ImageLoadingIndicator: React.ComponentType<ImageLoadingIndicatorProps>;\n\n /**\n * When true, messageList will be scrolled at first unread message, when opened.\n */\n initialScrollToFirstUnreadMessage: boolean;\n /**\n * UI component for Message Date Separator Component\n * Defaults to: [InlineDateSeparator](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageList/InlineDateSeparator.tsx)\n */\n InlineDateSeparator: React.ComponentType<InlineDateSeparatorProps>;\n /**\n * UI component for InlineUnreadIndicator\n * Defaults to: [InlineUnreadIndicator](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Message/MessageSimple/InlineUnreadIndicator.tsx)\n **/\n InlineUnreadIndicator: React.ComponentType;\n\n Message: React.ComponentType<MessageProps<StreamChatGenerics>>;\n /**\n * UI component for MessageAvatar\n * Defaults to: [MessageAvatar](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Message/MessageSimple/MessageAvatar.tsx)\n **/\n MessageAvatar: React.ComponentType<MessageAvatarProps<StreamChatGenerics>>;\n /**\n * UI Component for MessageBounce\n */\n MessageBounce: React.ComponentType<MessageBounceProps<StreamChatGenerics>>;\n /**\n * UI component for MessageContent\n * Defaults to: [MessageContent](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Message/MessageSimple/MessageContent.tsx)\n */\n MessageContent: React.ComponentType<MessageContentProps<StreamChatGenerics>>;\n /** Order to render the message content */\n messageContentOrder: MessageContentType[];\n /**\n * UI component for MessageDeleted\n * Defaults to: [MessageDeleted](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageSimple/MessageDeleted.tsx)\n */\n MessageDeleted: React.ComponentType<MessageDeletedProps<StreamChatGenerics>>;\n /**\n * UI component for the MessageError.\n */\n MessageError: React.ComponentType<MessageErrorProps>;\n /**\n * Custom message footer component\n */\n MessageFooter: React.ComponentType<MessageFooterProps<StreamChatGenerics>>;\n MessageList: React.ComponentType<MessageListProps<StreamChatGenerics>>;\n /**\n * Custom message pinned component\n */\n MessagePinnedHeader: React.ComponentType<MessagePinnedHeaderProps<StreamChatGenerics>>;\n\n /**\n * UI component for MessageReplies\n * Defaults to: [MessageReplies](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageSimple/MessageReplies.tsx)\n */\n MessageReplies: React.ComponentType<MessageRepliesProps<StreamChatGenerics>>;\n /**\n * UI Component for MessageRepliesAvatars\n * Defaults to: [MessageRepliesAvatars](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageSimple/MessageRepliesAvatars.tsx)\n */\n MessageRepliesAvatars: React.ComponentType<MessageRepliesAvatarsProps<StreamChatGenerics>>;\n /**\n * UI component for MessageSimple\n * Defaults to: [MessageSimple](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Message/MessageSimple/MessageSimple.tsx)\n */\n MessageSimple: React.ComponentType<MessageSimpleProps<StreamChatGenerics>>;\n /**\n * UI component for MessageStatus (delivered/read)\n * Defaults to: [MessageStatus](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Message/MessageSimple/MessageStatus.tsx)\n */\n MessageStatus: React.ComponentType<MessageStatusProps<StreamChatGenerics>>;\n /**\n * UI component for MessageSystem\n * Defaults to: [MessageSystem](https://getstream.io/chat/docs/sdk/reactnative/ui-components/message-system/)\n */\n MessageSystem: React.ComponentType<MessageSystemProps<StreamChatGenerics>>;\n /**\n * UI component for OverlayReactionList\n */\n OverlayReactionList: React.ComponentType<OverlayReactionListProps<StreamChatGenerics>>;\n /**\n * UI component for ReactionList\n * Defaults to: [ReactionList](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Reaction/ReactionList.tsx)\n */\n ReactionList: React.ComponentType<ReactionListProps<StreamChatGenerics>>;\n removeMessage: (message: { id: string; parent_id?: string }) => void;\n /**\n * UI component for Reply\n * Defaults to: [Reply](https://getstream.io/chat/docs/sdk/reactnative/ui-components/reply/)\n */\n Reply: React.ComponentType<ReplyProps<StreamChatGenerics>>;\n /**\n * Override the api request for retry message functionality.\n */\n retrySendMessage: (message: MessageType<StreamChatGenerics>) => Promise<void>;\n /**\n * UI component for ScrollToBottomButton\n * Defaults to: [ScrollToBottomButton](https://getstream.io/chat/docs/sdk/reactnative/ui-components/scroll-to-bottom-button/)\n */\n ScrollToBottomButton: React.ComponentType<ScrollToBottomButtonProps>;\n sendReaction: (type: string, messageId: string) => Promise<void>;\n setEditingState: (message?: MessageType<StreamChatGenerics>) => void;\n setQuotedMessageState: (message: MessageType<StreamChatGenerics> | boolean) => void;\n supportedReactions: ReactionData[];\n /**\n * UI component for TypingIndicator\n * Defaults to: [TypingIndicator](https://getstream.io/chat/docs/sdk/reactnative/ui-components/typing-indicator/)\n */\n TypingIndicator: React.ComponentType;\n /**\n * UI component for TypingIndicatorContainer\n * Defaults to: [TypingIndicatorContainer](https://getstream.io/chat/docs/sdk/reactnative/contexts/messages-context/#typingindicatorcontainer)\n */\n TypingIndicatorContainer: React.ComponentType;\n updateMessage: (\n updatedMessage: MessageResponse<StreamChatGenerics>,\n extraState?: {\n commands?: SuggestionCommand<StreamChatGenerics>[];\n messageInput?: string;\n threadMessages?: ChannelState<StreamChatGenerics>['threads'][string];\n },\n ) => void;\n /**\n * Custom UI component to display enriched url preview.\n * Defaults to https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Attachment/Card.tsx\n */\n UrlPreview: React.ComponentType<CardProps<StreamChatGenerics>>;\n VideoThumbnail: React.ComponentType<VideoThumbnailProps>;\n /**\n * Provide any additional props for `TouchableOpacity` which wraps inner MessageContent component here.\n * Please check docs for TouchableOpacity for supported props - https://reactnative.dev/docs/touchableopacity#props\n *\n * @overrideType Object\n */\n additionalTouchableProps?: Omit<TouchableOpacityProps, 'style'>;\n /**\n * Custom UI component to override default cover (between Header and Footer) of Card component.\n * Accepts the same props as Card component.\n */\n CardCover?: React.ComponentType<CardProps<StreamChatGenerics>>;\n /**\n * Custom UI component to override default Footer of Card component.\n * Accepts the same props as Card component.\n */\n CardFooter?: React.ComponentType<CardProps<StreamChatGenerics>>;\n /**\n * Custom UI component to override default header of Card component.\n * Accepts the same props as Card component.\n */\n CardHeader?: React.ComponentType<CardProps<StreamChatGenerics>>;\n\n /**\n * Full override of the delete message button in the Message Actions\n *\n * Please check [cookbook](https://github.com/GetStream/stream-chat-react-native/wiki/Cookbook-v3.0#override-or-intercept-message-actions-edit-delete-reaction-reply-etc) for details.\n */\n\n /** Control if the deleted message is visible to both the send and reciever, either of them or none */\n deletedMessagesVisibilityType?: DeletedMessagesVisibilityType;\n\n disableTypingIndicator?: boolean;\n\n /**\n * Whether messages should be aligned to right or left part of screen.\n * By default, messages will be received messages will be aligned to left and\n * sent messages will be aligned to right.\n */\n forceAlignMessages?: Alignment | boolean;\n /**\n * Optional function to custom format the message date\n */\n formatDate?: (date: TDateTimeParserInput) => string;\n getMessagesGroupStyles?: typeof getGroupStyles;\n handleBlock?: (message: MessageType<StreamChatGenerics>) => Promise<void>;\n /** Handler to access when a copy message action is invoked */\n handleCopy?: (message: MessageType<StreamChatGenerics>) => Promise<void>;\n /** Handler to access when a delete message action is invoked */\n handleDelete?: (message: MessageType<StreamChatGenerics>) => Promise<void>;\n /** Handler to access when an edit message action is invoked */\n handleEdit?: (message: MessageType<StreamChatGenerics>) => void;\n /** Handler to access when a flag message action is invoked */\n handleFlag?: (message: MessageType<StreamChatGenerics>) => Promise<void>;\n /** Handler to access when a mute user action is invoked */\n handleMute?: (message: MessageType<StreamChatGenerics>) => Promise<void>;\n /** Handler to access when a pin/unpin user action is invoked*/\n handlePinMessage?: ((message: MessageType<StreamChatGenerics>) => MessageActionType) | null;\n /** Handler to access when a quoted reply action is invoked */\n handleQuotedReply?: (message: MessageType<StreamChatGenerics>) => Promise<void>;\n /** Handler to process a reaction */\n handleReaction?: (\n message: MessageType<StreamChatGenerics>,\n reactionType: string,\n ) => Promise<void>;\n /** Handler to access when a retry action is invoked */\n handleRetry?: (message: MessageType<StreamChatGenerics>) => Promise<void>;\n /** Handler to access when a thread reply action is invoked */\n handleThreadReply?: (message: MessageType<StreamChatGenerics>) => Promise<void>;\n /** Handler to deal with custom memoization logic of Attachment */\n isAttachmentEqual?: (\n prevAttachment: Attachment<StreamChatGenerics>,\n nextAttachment: Attachment<StreamChatGenerics>,\n ) => boolean;\n legacyImageViewerSwipeBehaviour?: boolean;\n /** Object specifying rules defined within simple-markdown https://github.com/Khan/simple-markdown#adding-a-simple-extension */\n markdownRules?: MarkdownRules;\n /**\n * Use this prop to override message actions (which pop-up in message overlay).\n *\n * You can either completely override the default messageActions object.\n *\n * ```\n * <Channel\n * messageActions=[\n * {\n * action: () => { someAction() };\n * title: \"Pin Message\";\n * icon: PinIcon;\n * titleStyle: {};\n * },\n * {\n * action: () => { someAction() };\n * title: \"Delete Message\";\n * icon: PinIcon;\n * titleStyle: {};\n * }\n * ]\n * >\n * </Channel>\n * ```\n *\n * Or you can selectly keep certain action and remove some:\n *\n * e.g. Lets say you only want to keep threadReply and copyMessage actions\n *\n * ```\n * <Channel\n * messageActions={({\n * blockUser,\n * copyMessage,\n * deleteMessage,\n * editMessage,\n * flagMessage,\n * muteUser,\n * quotedReply,\n * retry,\n * threadReply,\n * }) => ([\n * threadReply, copyMessage\n * ])}\n * >\n * </Channel>\n * ```\n *\n * @overrideType Function | Array<Objects>\n */\n messageActions?: (param: MessageActionsParams<StreamChatGenerics>) => MessageActionType[];\n /**\n * Custom message header component\n */\n MessageHeader?: React.ComponentType<MessageFooterProps<StreamChatGenerics>>;\n /** Custom UI component for message text */\n MessageText?: React.ComponentType<MessageTextProps<StreamChatGenerics>>;\n\n /**\n * Theme provided only to messages that are the current users\n */\n myMessageTheme?: DeepPartial<Theme>;\n /**\n * Override default handler for onLongPress on message. You have access to payload of that handler as param:\n *\n * ```\n * <Channel\n * onLongPressMessage={({\n * actionHandlers: {\n * deleteMessage, // () => Promise<void>;\n * editMessage, // () => void;\n * quotedReply, // () => void;\n * resendMessage, // () => Promise<void>;\n * showMessageOverlay, // () => void;\n * toggleBanUser, // () => Promise<void>;\n * toggleMuteUser, // () => Promise<void>;\n * toggleReaction, // (reactionType: string) => Promise<void>;\n * },\n * defaultHandler, // () => void\n * event, // any event object corresponding to touchable feedback\n * emitter, // which component trigged this touchable feedback e.g. card, fileAttachment, gallery, message ... etc\n * message // message object on which longPress occured\n * }) => {\n * // Your custom action\n * }}\n * />\n * ```\n */\n onLongPressMessage?: (payload: MessageTouchableHandlerPayload<StreamChatGenerics>) => void;\n /**\n * Add onPressIn handler for attachments. You have access to payload of that handler as param:\n *\n * ```\n * <Channel\n * onPressInMessage={({\n * actionHandlers: {\n * deleteMessage, // () => Promise<void>;\n * editMessage, // () => void;\n * quotedReply, // () => void;\n * resendMessage, // () => Promise<void>;\n * showMessageOverlay, // () => void;\n * toggleBanUser, // () => Promise<void>;\n * toggleMuteUser, // () => Promise<void>;\n * toggleReaction, // (reactionType: string) => Promise<void>;\n * },\n * defaultHandler, // () => void\n * event, // any event object corresponding to touchable feedback\n * emitter, // which component trigged this touchable feedback e.g. card, fileAttachment, gallery, message ... etc\n * message // message object on which longPress occured\n * }) => {\n * // Your custom action\n * }}\n * />\n * ```\n */\n onPressInMessage?: (payload: MessageTouchableHandlerPayload<StreamChatGenerics>) => void;\n /**\n * Override onPress handler for message. You have access to payload of that handler as param:\n *\n * ```\n * <Channel\n * onPressMessage={({\n * actionHandlers: {\n * deleteMessage, // () => Promise<void>;\n * editMessage, // () => void;\n * quotedReply, // () => void;\n * resendMessage, // () => Promise<void>;\n * showMessageOverlay, // () => void;\n * toggleBanUser, // () => Promise<void>;\n * toggleMuteUser, // () => Promise<void>;\n * toggleReaction, // (reactionType: string) => Promise<void>;\n * },\n * defaultHandler, // () => void\n * event, // any event object corresponding to touchable feedback\n * emitter, // which component trigged this touchable feedback e.g. card, fileAttachment, gallery, message ... etc\n * message // message object on which longPress occurred\n * }) => {\n * // Your custom action\n * }}\n * />\n * ```\n */\n onPressMessage?: (payload: MessageTouchableHandlerPayload<StreamChatGenerics>) => void;\n\n /**\n * Full override of the reaction function on Message and Message Overlay\n *\n * Please check [cookbook](https://github.com/GetStream/stream-chat-react-native/wiki/Cookbook-v3.0#override-or-intercept-message-actions-edit-delete-reaction-reply-etc) for details.\n * */\n selectReaction?: (\n message: MessageType<StreamChatGenerics>,\n ) => (reactionType: string) => Promise<void>;\n\n targetedMessage?: string;\n};\n\nexport const MessagesContext = React.createContext(\n DEFAULT_BASE_CONTEXT_VALUE as MessagesContextValue,\n);\n\nexport const MessagesProvider = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>({\n children,\n value,\n}: PropsWithChildren<{\n value?: MessagesContextValue<StreamChatGenerics>;\n}>) => (\n <MessagesContext.Provider value={value as unknown as MessagesContextValue}>\n {children}\n </MessagesContext.Provider>\n);\n\nexport const useMessagesContext = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>() => {\n const contextValue = useContext(\n MessagesContext,\n ) as unknown as MessagesContextValue<StreamChatGenerics>;\n\n if (contextValue === DEFAULT_BASE_CONTEXT_VALUE && !isTestEnvironment()) {\n throw new Error(\n `The useMessagesContext hook was called outside of the MessagesContext provider. Make sure you have configured MessageList component correctly - https://getstream.io/chat/docs/sdk/reactnative/basics/hello_stream_chat/#message-list`,\n );\n }\n\n return contextValue;\n};\n\n/**\n * Typescript currently does not support partial inference so if MessagesContext\n * typing is desired while using the HOC withMessagesContext the Props for the\n * wrapped component must be provided as the first generic.\n */\nexport const withMessagesContext = <\n P extends UnknownType,\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n Component: React.ComponentType<P>,\n): React.FC<Omit<P, keyof MessagesContextValue<StreamChatGenerics>>> => {\n const WithMessagesContextComponent = (\n props: Omit<P, keyof MessagesContextValue<StreamChatGenerics>>,\n ) => {\n const messagesContext = useMessagesContext<StreamChatGenerics>();\n\n return <Component {...(props as P)} {...messagesContext} />;\n };\n WithMessagesContextComponent.displayName = `WithMessagesContext${getDisplayName(Component)}`;\n return WithMessagesContextComponent;\n};\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AA0DA,IAAAC,wBAAA,GAAAD,OAAA;AAEA,IAAAE,eAAA,GAAAF,OAAA;AACA,IAAAG,kBAAA,GAAAH,OAAA;AAA+D,IAAAI,KAAA;EAAAC,YAAA;AAAA,SAAAC,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAR,wBAAAY,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,aAAAE,OAAA,CAAAF,GAAA,yBAAAA,GAAA,uCAAAA,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAA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,mDAA0B,IAAI,CAAC,IAAAgB,oCAAiB,EAAC,CAAC,EAAE;IACvE,MAAM,IAAIC,KAAK,wOAEf,CAAC;EACH;EAEA,OAAOH,YAAY;AACrB,CAAC;AAACb,OAAA,CAAAY,kBAAA,GAAAA,kBAAA;AAOK,IAAMK,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAI9BC,SAAiC,EACqC;EACtE,IAAMC,4BAA4B,GAAG,SAA/BA,4BAA4BA,CAChCC,KAA8D,EAC3D;IACH,IAAMC,eAAe,GAAGT,kBAAkB,CAAqB,CAAC;IAEhE,OAAO9C,MAAA,YAAAuC,aAAA,CAACa,SAAS,MAAAI,SAAA,iBAAMF,KAAK,EAAYC,eAAe;MAAAd,MAAA,EAAAnC,KAAA;MAAAoC,QAAA;QAAAC,QAAA,EAAApC,YAAA;QAAAqC,UAAA;QAAAC,YAAA;MAAA;IAAA,EAAG,CAAC;EAC7D,CAAC;EACDQ,4BAA4B,CAACI,WAAW,2BAAyB,IAAAC,8BAAc,EAACN,SAAS,CAAG;EAC5F,OAAOC,4BAA4B;AACrC,CAAC;AAACnB,OAAA,CAAAiB,mBAAA,GAAAA,mBAAA"}
@@ -5,9 +5,11 @@
5
5
  "Allow camera access in device settings": "Allow camera access in device settings",
6
6
  "Also send to channel": "Also send to channel",
7
7
  "Are you sure you want to permanently delete this message?": "Are you sure you want to permanently delete this message?",
8
+ "Are you sure?": "Are you sure?",
8
9
  "Block User": "Block User",
9
10
  "Cancel": "Cancel",
10
11
  "Cannot Flag Message": "Cannot Flag Message",
12
+ "Consider how your comment might make others feel and be sure to follow our Community Guidelines": "Consider how your comment might make others feel and be sure to follow our Community Guidelines",
11
13
  "Copy Message": "Copy Message",
12
14
  "Delete": "Delete",
13
15
  "Delete Message": "Delete Message",
@@ -54,6 +56,7 @@
54
56
  "Resend": "Resend",
55
57
  "Search GIFs": "Search GIFs",
56
58
  "Select More Photos": "Select More Photos",
59
+ "Send Anyway": "Send Anyway",
57
60
  "Send a message": "Send a message",
58
61
  "Sending links is not allowed in this conversation": "Sending links is not allowed in this conversation",
59
62
  "Slow mode ON": "Slow mode ON",
@@ -73,5 +73,8 @@
73
73
  "How about sending your first message to a friend?": "¿Qué tal enviar tu primer mensaje a un amigo?",
74
74
  "Allow camera access in device settings": "Permitir el acceso a la cámara en la configuración del dispositivo",
75
75
  "Device camera is used to take photos or videos.": "La cámara del dispositivo se utiliza para tomar fotografías o vídeos.",
76
- "Open Settings": "Configuración abierta"
76
+ "Open Settings": "Configuración abierta",
77
+ "Send Anyway": "Enviar de todos modos",
78
+ "Are you sure?": "¿Estás seguro?",
79
+ "Consider how your comment might make others feel and be sure to follow our Community Guidelines": "Considera cómo tu comentario podría hacer sentir a los demás y asegúrate de seguir nuestras Normas de la Comunidad"
77
80
  }
@@ -5,33 +5,35 @@
5
5
  "Allow camera access in device settings": "Autoriser l'accès à la caméra dans les paramètres de l'appareil",
6
6
  "Also send to channel": "",
7
7
  "Are you sure you want to permanently delete this message?": "",
8
+ "Are you sure?": "",
8
9
  "Block User": "",
9
10
  "Cancel": "",
10
11
  "Cannot Flag Message": "",
12
+ "Consider how your comment might make others feel and be sure to follow our Community Guidelines": "",
11
13
  "Copy Message": "",
12
14
  "Delete": "",
13
15
  "Delete Message": "",
14
16
  "Device camera is used to take photos or videos.": "L'appareil photo de l'appareil est utilisé pour prendre des photos ou des vidéos.",
15
17
  "Do you want to send a copy of this message to a moderator for further investigation?": "",
16
18
  "Edit Message": "",
17
- "Editing Message": "",
18
- "Emoji matching": "",
19
+ "Editing Message": "Édite un message",
20
+ "Emoji matching": "Correspondance Emoji",
19
21
  "Empty message...": "",
20
22
  "Error loading": "",
21
23
  "Error loading channel list...": "",
22
24
  "Error loading messages for this channel...": "",
23
25
  "Error while loading, please reload/refresh": "",
24
- "File type not supported": "Le type de fichier n'est pas pris en charge",
26
+ "File type not supported": "",
25
27
  "Flag": "",
26
28
  "Flag Message": "",
27
29
  "Flag action failed either due to a network issue or the message is already flagged": "",
28
30
  "How about sending your first message to a friend?": "",
29
- "Instant Commands": "",
31
+ "Instant Commands": "Commandes Instantanées",
30
32
  "Let's start chatting!": "",
31
- "Links are disabled": "Links are disabled",
32
- "Loading channels...": "",
33
- "Loading messages...": "",
34
- "Loading...": "",
33
+ "Links are disabled": "",
34
+ "Loading channels...": "Chargement des canaux...",
35
+ "Loading messages...": "Chargement des messages...",
36
+ "Loading...": "Chargement...",
35
37
  "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
36
38
  "Message Reactions": "",
37
39
  "Message deleted": "",
@@ -40,12 +42,12 @@
40
42
  "Not supported": "Non pris en charge",
41
43
  "Nothing yet...": "",
42
44
  "Ok": "",
43
- "Only visible to you": "Seulement visible par vous",
45
+ "Only visible to you": "",
44
46
  "Open Settings": "Ouvrir les paramètres",
45
47
  "Photo": "",
46
48
  "Photos and Videos": "Photos et vidéos",
47
49
  "Pin to Conversation": "",
48
- "Pinned by": "Épinglé par",
50
+ "Pinned by": "",
49
51
  "Please enable access to your photos and videos so you can share them.": "Veuillez autoriser l'accès à vos photos et vidéos afin de pouvoir les partager.",
50
52
  "Please select a channel first": "Veuillez d'abord selectionnez un canal",
51
53
  "Reconnecting...": "",
@@ -54,8 +56,9 @@
54
56
  "Resend": "",
55
57
  "Search GIFs": "Rechercher des GIF",
56
58
  "Select More Photos": "Sélectionner plus de photos",
59
+ "Send Anyway": "",
57
60
  "Send a message": "Envoyer un message",
58
- "Sending links is not allowed in this conversation": "Sending links is not allowed in this conversation",
61
+ "Sending links is not allowed in this conversation": "",
59
62
  "Slow mode ON": "Mode lent activé",
60
63
  "The message has been reported to a moderator.": "",
61
64
  "Thread Reply": "",
@@ -73,5 +73,8 @@
73
73
  "How about sending your first message to a friend?": "מה דעתך לשלוח את ההודעה הראשונה שלך לחבר?",
74
74
  "Allow camera access in device settings": "אפשר גישה למצלמה בהגדרות המכשיר",
75
75
  "Device camera is used to take photos or videos.": "מצלמת המכשיר משמשת לצילום תמונות או סרטונים.",
76
- "Open Settings": "פתח את ההגדרות"
76
+ "Open Settings": "פתח את ההגדרות",
77
+ "Send Anyway": "שלח בכל זאת",
78
+ "Are you sure?": "האם אתה בטוח?",
79
+ "Consider how your comment might make others feel and be sure to follow our Community Guidelines": "שקול איך התגובה שלך עשויה להשפיע על אחרים ווודא שאתה עוקב אחר ההנחיות של הקהילה שלנו"
77
80
  }
@@ -5,33 +5,35 @@
5
5
  "Allow camera access in device settings": "डिवाइस सेटिंग्स में कैमरा एक्सेस की अनुमति दें",
6
6
  "Also send to channel": "",
7
7
  "Are you sure you want to permanently delete this message?": "",
8
+ "Are you sure?": "",
8
9
  "Block User": "",
9
10
  "Cancel": "",
10
11
  "Cannot Flag Message": "",
12
+ "Consider how your comment might make others feel and be sure to follow our Community Guidelines": "",
11
13
  "Copy Message": "",
12
14
  "Delete": "",
13
15
  "Delete Message": "",
14
16
  "Device camera is used to take photos or videos.": "डिवाइस कैमरे का उपयोग फ़ोटो या वीडियो लेने के लिए किया जाता है।",
15
17
  "Do you want to send a copy of this message to a moderator for further investigation?": "",
16
18
  "Edit Message": "",
17
- "Editing Message": "",
18
- "Emoji matching": "",
19
+ "Editing Message": "मैसेज बदला जा रहा है",
20
+ "Emoji matching": "इमोजी मिलान",
19
21
  "Empty message...": "",
20
22
  "Error loading": "",
21
23
  "Error loading channel list...": "",
22
24
  "Error loading messages for this channel...": "",
23
25
  "Error while loading, please reload/refresh": "",
24
- "File type not supported": "फ़ाइल प्रकार समर्थित नहीं है",
26
+ "File type not supported": "",
25
27
  "Flag": "",
26
28
  "Flag Message": "",
27
29
  "Flag action failed either due to a network issue or the message is already flagged": "",
28
30
  "How about sending your first message to a friend?": "",
29
- "Instant Commands": "",
31
+ "Instant Commands": "त्वरित कमांड",
30
32
  "Let's start chatting!": "",
31
- "Links are disabled": "लिंक अक्षम हैं",
32
- "Loading channels...": "",
33
- "Loading messages...": "",
34
- "Loading...": "",
33
+ "Links are disabled": "",
34
+ "Loading channels...": "चैनल लोड हो रहे हैं...",
35
+ "Loading messages...": "मेसेजस लोड हो रहे हैं...",
36
+ "Loading...": "लोड हो रहा है...",
35
37
  "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
36
38
  "Message Reactions": "",
37
39
  "Message deleted": "",
@@ -40,12 +42,12 @@
40
42
  "Not supported": "समर्थित नहीं",
41
43
  "Nothing yet...": "",
42
44
  "Ok": "",
43
- "Only visible to you": "केवल आपको दिखाई दे रहा है",
45
+ "Only visible to you": "",
44
46
  "Open Settings": "सेटिंग्स खोलें",
45
47
  "Photo": "",
46
48
  "Photos and Videos": "तस्वीरें और वीडियों",
47
49
  "Pin to Conversation": "",
48
- "Pinned by": "द्वारा पिन किया गया",
50
+ "Pinned by": "",
49
51
  "Please enable access to your photos and videos so you can share them.": "कृपया अपनी फ़ोटो और वीडियो तक पहुंच सक्षम करें ताकि आप उन्हें साझा कर सकें।",
50
52
  "Please select a channel first": "कृपया पहले एक चैनल चुनें",
51
53
  "Reconnecting...": "",
@@ -54,8 +56,9 @@
54
56
  "Resend": "",
55
57
  "Search GIFs": "GIF खोजें",
56
58
  "Select More Photos": "अधिक फ़ोटो चुनें",
59
+ "Send Anyway": "",
57
60
  "Send a message": "एक संदेश भेजें",
58
- "Sending links is not allowed in this conversation": "इस बातचीत में लिंक भेजने की अनुमति नहीं है",
61
+ "Sending links is not allowed in this conversation": "",
59
62
  "Slow mode ON": "स्लो मोड चालू",
60
63
  "The message has been reported to a moderator.": "",
61
64
  "Thread Reply": "",
@@ -5,33 +5,35 @@
5
5
  "Allow camera access in device settings": "Consenti l'accesso alla fotocamera nelle impostazioni del dispositivo",
6
6
  "Also send to channel": "",
7
7
  "Are you sure you want to permanently delete this message?": "",
8
+ "Are you sure?": "",
8
9
  "Block User": "",
9
10
  "Cancel": "",
10
11
  "Cannot Flag Message": "",
12
+ "Consider how your comment might make others feel and be sure to follow our Community Guidelines": "",
11
13
  "Copy Message": "",
12
14
  "Delete": "",
13
15
  "Delete Message": "",
14
16
  "Device camera is used to take photos or videos.": "La fotocamera del dispositivo viene utilizzata per scattare foto o video.",
15
17
  "Do you want to send a copy of this message to a moderator for further investigation?": "",
16
18
  "Edit Message": "",
17
- "Editing Message": "",
18
- "Emoji matching": "",
19
+ "Editing Message": "Modificando il Messaggio",
20
+ "Emoji matching": "Abbinamento emoji",
19
21
  "Empty message...": "",
20
22
  "Error loading": "",
21
23
  "Error loading channel list...": "",
22
24
  "Error loading messages for this channel...": "",
23
25
  "Error while loading, please reload/refresh": "",
24
- "File type not supported": "Tipo di file non supportato",
26
+ "File type not supported": "",
25
27
  "Flag": "",
26
28
  "Flag Message": "",
27
29
  "Flag action failed either due to a network issue or the message is already flagged": "",
28
30
  "How about sending your first message to a friend?": "",
29
- "Instant Commands": "",
31
+ "Instant Commands": "Comandi Istantanei",
30
32
  "Let's start chatting!": "",
31
- "Links are disabled": "I link sono disabilitati",
32
- "Loading channels...": "",
33
- "Loading messages...": "",
34
- "Loading...": "",
33
+ "Links are disabled": "",
34
+ "Loading channels...": "Caricamento canali in corso...",
35
+ "Loading messages...": "Caricamento messaggi...",
36
+ "Loading...": "Caricamento...",
35
37
  "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
36
38
  "Message Reactions": "",
37
39
  "Message deleted": "",
@@ -40,12 +42,12 @@
40
42
  "Not supported": "non supportato",
41
43
  "Nothing yet...": "",
42
44
  "Ok": "",
43
- "Only visible to you": "Visibile solo a te",
45
+ "Only visible to you": "",
44
46
  "Open Settings": "Apri Impostazioni",
45
47
  "Photo": "",
46
48
  "Photos and Videos": "Foto e Video",
47
49
  "Pin to Conversation": "",
48
- "Pinned by": "Fissato da",
50
+ "Pinned by": "",
49
51
  "Please enable access to your photos and videos so you can share them.": "Abilita l'accesso alle tue foto e ai tuoi video in modo da poterli condividere.",
50
52
  "Please select a channel first": "Seleziona un canale",
51
53
  "Reconnecting...": "",
@@ -54,8 +56,9 @@
54
56
  "Resend": "",
55
57
  "Search GIFs": "Cerca GIF",
56
58
  "Select More Photos": "Seleziona Altre foto",
59
+ "Send Anyway": "",
57
60
  "Send a message": "Mandare un messaggio",
58
- "Sending links is not allowed in this conversation": "L'invio di link non è consentito in questa conversazione",
61
+ "Sending links is not allowed in this conversation": "",
59
62
  "Slow mode ON": "Slowmode attiva",
60
63
  "The message has been reported to a moderator.": "",
61
64
  "Thread Reply": "",
@@ -76,5 +76,8 @@
76
76
  "How about sending your first message to a friend?": "初めてのメッセージを友達に送ってみてはいかがでしょうか?",
77
77
  "Allow camera access in device settings": "デバイス設定でカメラへのアクセスを許可する",
78
78
  "Device camera is used to take photos or videos.": "デバイスのカメラは写真やビデオの撮影に使用されます。",
79
- "Open Settings": "設定を開く"
79
+ "Open Settings": "設定を開く",
80
+ "Send Anyway": "とにかく送信",
81
+ "Are you sure?": "本当によろしいですか?",
82
+ "Consider how your comment might make others feel and be sure to follow our Community Guidelines": "あなたのコメントが他の人にどのように影響するか考え、必ずコミュニティガイドラインに従ってください"
80
83
  }
@@ -75,5 +75,8 @@
75
75
  "How about sending your first message to a friend?": "친구에게 첫 번째 메시지를 보내는 것은 어떻습니까?",
76
76
  "Allow camera access in device settings": "기기 설정에서 카메라 액세스를 허용하세요.",
77
77
  "Device camera is used to take photos or videos.": "기기 카메라는 사진이나 동영상을 촬영하는 데 사용됩니다.",
78
- "Open Settings": "설정 열기"
78
+ "Open Settings": "설정 열기",
79
+ "Send Anyway": "그래도 보내기",
80
+ "Are you sure?": "확실합니까?",
81
+ "Consider how your comment might make others feel and be sure to follow our Community Guidelines": "당신의 댓글이 다른 사람들에게 어떤 영향을 줄지 고려하고 반드시 우리의 커뮤니티 가이드라인을 따르십시오"
79
82
  }
@@ -5,33 +5,35 @@
5
5
  "Allow camera access in device settings": "Sta cameratoegang toe in de apparaatinstellingen",
6
6
  "Also send to channel": "",
7
7
  "Are you sure you want to permanently delete this message?": "",
8
+ "Are you sure?": "",
8
9
  "Block User": "",
9
10
  "Cancel": "",
10
11
  "Cannot Flag Message": "",
12
+ "Consider how your comment might make others feel and be sure to follow our Community Guidelines": "",
11
13
  "Copy Message": "",
12
14
  "Delete": "",
13
15
  "Delete Message": "",
14
16
  "Device camera is used to take photos or videos.": "De camera van het apparaat wordt gebruikt om foto's of video's te maken.",
15
17
  "Do you want to send a copy of this message to a moderator for further investigation?": "",
16
18
  "Edit Message": "",
17
- "Editing Message": "",
18
- "Emoji matching": "",
19
+ "Editing Message": "Bericht aanpassen",
20
+ "Emoji matching": "Emoji-overeenkomsten",
19
21
  "Empty message...": "",
20
22
  "Error loading": "",
21
23
  "Error loading channel list...": "",
22
24
  "Error loading messages for this channel...": "",
23
25
  "Error while loading, please reload/refresh": "",
24
- "File type not supported": "Bestandstype niet ondersteund",
26
+ "File type not supported": "",
25
27
  "Flag": "",
26
28
  "Flag Message": "",
27
29
  "Flag action failed either due to a network issue or the message is already flagged": "",
28
30
  "How about sending your first message to a friend?": "",
29
- "Instant Commands": "",
31
+ "Instant Commands": "Directe Opdrachten",
30
32
  "Let's start chatting!": "",
31
- "Links are disabled": "Het versturen van links staat uit",
32
- "Loading channels...": "",
33
- "Loading messages...": "",
34
- "Loading...": "",
33
+ "Links are disabled": "",
34
+ "Loading channels...": "Kanalen aan het laden...",
35
+ "Loading messages...": "Berichten aan het laden...",
36
+ "Loading...": "Aan het laden...",
35
37
  "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
36
38
  "Message Reactions": "",
37
39
  "Message deleted": "",
@@ -40,12 +42,12 @@
40
42
  "Not supported": "niet ondersteund",
41
43
  "Nothing yet...": "",
42
44
  "Ok": "",
43
- "Only visible to you": "Alleen zichtbaar voor jou",
45
+ "Only visible to you": "",
44
46
  "Open Settings": "Open instellingen",
45
47
  "Photo": "",
46
48
  "Photos and Videos": "Foto's en video's",
47
49
  "Pin to Conversation": "",
48
- "Pinned by": "Vastgemaakt door",
50
+ "Pinned by": "",
49
51
  "Please enable access to your photos and videos so you can share them.": "Schakel toegang tot uw foto's en video's in zodat u ze kunt delen.",
50
52
  "Please select a channel first": "Selecteer eerst een kanaal",
51
53
  "Reconnecting...": "",
@@ -54,8 +56,9 @@
54
56
  "Resend": "",
55
57
  "Search GIFs": "Zoek GIF's",
56
58
  "Select More Photos": "Selecteer Meer foto's",
59
+ "Send Anyway": "",
57
60
  "Send a message": "Stuur een bericht",
58
- "Sending links is not allowed in this conversation": "In dit gesprek is het niet toegestaan links te versturen",
61
+ "Sending links is not allowed in this conversation": "",
59
62
  "Slow mode ON": "Langzame modus aan",
60
63
  "The message has been reported to a moderator.": "",
61
64
  "Thread Reply": "",