stream-chat-react-native-core 5.26.0 → 5.26.1-beta.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 (59) hide show
  1. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessenger.js +2 -1
  2. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessenger.js.map +1 -1
  3. package/lib/commonjs/components/ChannelPreview/ChannelPreviewStatus.js +4 -4
  4. package/lib/commonjs/components/ChannelPreview/ChannelPreviewStatus.js.map +1 -1
  5. package/lib/commonjs/i18n/es.json +37 -37
  6. package/lib/commonjs/i18n/fr.json +37 -37
  7. package/lib/commonjs/i18n/he.json +37 -37
  8. package/lib/commonjs/i18n/hi.json +37 -37
  9. package/lib/commonjs/i18n/it.json +37 -37
  10. package/lib/commonjs/i18n/ja.json +37 -37
  11. package/lib/commonjs/i18n/ko.json +37 -37
  12. package/lib/commonjs/i18n/nl.json +37 -37
  13. package/lib/commonjs/i18n/pt-BR.json +37 -37
  14. package/lib/commonjs/i18n/ru.json +37 -37
  15. package/lib/commonjs/i18n/tr.json +37 -37
  16. package/lib/commonjs/version.json +1 -1
  17. package/lib/module/components/ChannelPreview/ChannelPreviewMessenger.js +2 -1
  18. package/lib/module/components/ChannelPreview/ChannelPreviewMessenger.js.map +1 -1
  19. package/lib/module/components/ChannelPreview/ChannelPreviewStatus.js +4 -4
  20. package/lib/module/components/ChannelPreview/ChannelPreviewStatus.js.map +1 -1
  21. package/lib/module/i18n/es.json +37 -37
  22. package/lib/module/i18n/fr.json +37 -37
  23. package/lib/module/i18n/he.json +37 -37
  24. package/lib/module/i18n/hi.json +37 -37
  25. package/lib/module/i18n/it.json +37 -37
  26. package/lib/module/i18n/ja.json +37 -37
  27. package/lib/module/i18n/ko.json +37 -37
  28. package/lib/module/i18n/nl.json +37 -37
  29. package/lib/module/i18n/pt-BR.json +37 -37
  30. package/lib/module/i18n/ru.json +37 -37
  31. package/lib/module/i18n/tr.json +37 -37
  32. package/lib/module/version.json +1 -1
  33. package/lib/typescript/components/ChannelPreview/ChannelPreviewStatus.d.ts +2 -1
  34. package/lib/typescript/i18n/es.json +37 -37
  35. package/lib/typescript/i18n/fr.json +37 -37
  36. package/lib/typescript/i18n/he.json +37 -37
  37. package/lib/typescript/i18n/hi.json +37 -37
  38. package/lib/typescript/i18n/it.json +37 -37
  39. package/lib/typescript/i18n/ja.json +37 -37
  40. package/lib/typescript/i18n/ko.json +37 -37
  41. package/lib/typescript/i18n/nl.json +37 -37
  42. package/lib/typescript/i18n/pt-BR.json +37 -37
  43. package/lib/typescript/i18n/ru.json +37 -37
  44. package/lib/typescript/i18n/tr.json +37 -37
  45. package/package.json +1 -1
  46. package/src/components/ChannelPreview/ChannelPreviewMessenger.tsx +1 -0
  47. package/src/components/ChannelPreview/ChannelPreviewStatus.tsx +3 -1
  48. package/src/i18n/es.json +37 -37
  49. package/src/i18n/fr.json +37 -37
  50. package/src/i18n/he.json +37 -37
  51. package/src/i18n/hi.json +37 -37
  52. package/src/i18n/it.json +37 -37
  53. package/src/i18n/ja.json +37 -37
  54. package/src/i18n/ko.json +37 -37
  55. package/src/i18n/nl.json +37 -37
  56. package/src/i18n/pt-BR.json +37 -37
  57. package/src/i18n/ru.json +37 -37
  58. package/src/i18n/tr.json +37 -37
  59. package/src/version.json +1 -1
@@ -194,6 +194,7 @@ var ChannelPreviewMessengerWithContext = function ChannelPreviewMessengerWithCon
194
194
  columnNumber: 11
195
195
  }
196
196
  }), _react["default"].createElement(PreviewStatus, {
197
+ channel: channel,
197
198
  formatLatestMessageDate: formatLatestMessageDate,
198
199
  latestMessagePreview: latestMessagePreview,
199
200
  __self: _this,
@@ -228,7 +229,7 @@ var ChannelPreviewMessenger = function ChannelPreviewMessenger(props) {
228
229
  __self: _this,
229
230
  __source: {
230
231
  fileName: _jsxFileName,
231
- lineNumber: 223,
232
+ lineNumber: 224,
232
233
  columnNumber: 5
233
234
  }
234
235
  }));
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeGestureHandler","_ChannelAvatar","_ChannelPreviewMessage","_ChannelPreviewMutedStatus","_ChannelPreviewStatus","_ChannelPreviewTitle","_ChannelPreviewUnreadCount","_useChannelPreviewDisplayName","_ChannelsContext","_ChatContext","_ThemeContext","_useViewport2","_this","_jsxFileName","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","styles","StyleSheet","create","container","borderBottomWidth","flex","flexDirection","paddingHorizontal","paddingVertical","contentContainer","row","alignItems","justifyContent","paddingLeft","statusContainer","display","title","fontSize","fontWeight","ChannelPreviewMessengerWithContext","props","channel","formatLatestMessageDate","latestMessagePreview","maxUnreadCount","onSelect","_props$PreviewAvatar","PreviewAvatar","ChannelAvatar","_props$PreviewMessage","PreviewMessage","ChannelPreviewMessage","_props$PreviewStatus","PreviewStatus","ChannelPreviewStatus","_props$PreviewTitle","PreviewTitle","ChannelPreviewTitle","_props$PreviewUnreadC","PreviewUnreadCount","ChannelPreviewUnreadCount","_props$PreviewMutedSt","PreviewMutedStatus","ChannelPreviewMutedStatus","unread","_useViewport","useViewport","vw","maxWidth","_useTheme","useTheme","_useTheme$theme","theme","_useTheme$theme$chann","channelPreview","_useTheme$theme$color","colors","border","white_snow","_useChatContext","useChatContext","client","displayName","useChannelPreviewDisplayName","Math","floor","_useState","useState","muteStatus","muted","_useState2","_slicedToArray2","isChannelMuted","setIsChannelMuted","useEffect","handleEvent","on","off","createElement","TouchableOpacity","onPress","style","backgroundColor","borderBottomColor","testID","__self","__source","fileName","lineNumber","columnNumber","View","id","MemoizedChannelPreviewMessengerWithContext","React","memo","ChannelPreviewMessenger","_useChannelsContext","useChannelsContext","_extends2","exports"],"sources":["ChannelPreviewMessenger.tsx"],"sourcesContent":["import React, { useEffect, useState } from 'react';\nimport { StyleSheet, View } from 'react-native';\nimport { TouchableOpacity } from 'react-native-gesture-handler';\n\nimport { ChannelAvatar } from './ChannelAvatar';\nimport type { ChannelPreviewProps } from './ChannelPreview';\nimport { ChannelPreviewMessage } from './ChannelPreviewMessage';\nimport { ChannelPreviewMutedStatus } from './ChannelPreviewMutedStatus';\nimport { ChannelPreviewStatus } from './ChannelPreviewStatus';\nimport { ChannelPreviewTitle } from './ChannelPreviewTitle';\nimport { ChannelPreviewUnreadCount } from './ChannelPreviewUnreadCount';\nimport { useChannelPreviewDisplayName } from './hooks/useChannelPreviewDisplayName';\n\nimport type { LatestMessagePreview } from './hooks/useLatestMessagePreview';\n\nimport {\n ChannelsContextValue,\n useChannelsContext,\n} from '../../contexts/channelsContext/ChannelsContext';\nimport { useChatContext } from '../../contexts/chatContext/ChatContext';\nimport { useTheme } from '../../contexts/themeContext/ThemeContext';\nimport { useViewport } from '../../hooks/useViewport';\nimport type { DefaultStreamChatGenerics } from '../../types/types';\n\nconst styles = StyleSheet.create({\n container: {\n borderBottomWidth: 1,\n flex: 1,\n flexDirection: 'row',\n paddingHorizontal: 8,\n paddingVertical: 12,\n },\n contentContainer: { flex: 1 },\n row: {\n alignItems: 'center',\n flex: 1,\n flexDirection: 'row',\n justifyContent: 'space-between',\n paddingLeft: 8,\n },\n statusContainer: {\n display: 'flex',\n flexDirection: 'row',\n },\n title: { fontSize: 14, fontWeight: '700' },\n});\n\nexport type ChannelPreviewMessengerPropsWithContext<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = Pick<ChannelPreviewProps<StreamChatGenerics>, 'channel'> &\n Pick<\n ChannelsContextValue<StreamChatGenerics>,\n | 'maxUnreadCount'\n | 'onSelect'\n | 'PreviewAvatar'\n | 'PreviewMessage'\n | 'PreviewMutedStatus'\n | 'PreviewStatus'\n | 'PreviewTitle'\n | 'PreviewUnreadCount'\n > & {\n /**\n * Latest message on a channel, formatted for preview\n *\n * e.g.,\n *\n * ```json\n * {\n * created_at: '' ,\n * messageObject: { ... },\n * previews: {\n * bold: true,\n * text: 'This is the message preview text'\n * },\n * status: 0 | 1 | 2 // read states of the latest message.\n * }\n * ```\n *\n * The read status is either of the following:\n *\n * 0: The message was not sent by the current user\n * 1: The message was sent by the current user and is unread\n * 2: The message was sent by the current user and is read\n *\n * @overrideType object\n */\n latestMessagePreview: LatestMessagePreview<StreamChatGenerics>;\n /**\n * Formatter function for date of latest message.\n * @param date Message date\n * @returns Formatted date string\n *\n * By default today's date is shown in 'HH:mm A' format and other dates\n * are displayed in 'DD/MM/YY' format. props.latestMessage.created_at is the\n * default formatted date. This default logic is part of ChannelPreview component.\n */\n formatLatestMessageDate?: (date: Date) => string;\n /** Number of unread messages on the channel */\n unread?: number;\n };\n\nconst ChannelPreviewMessengerWithContext = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n props: ChannelPreviewMessengerPropsWithContext<StreamChatGenerics>,\n) => {\n const {\n channel,\n formatLatestMessageDate,\n latestMessagePreview,\n maxUnreadCount,\n onSelect,\n PreviewAvatar = ChannelAvatar,\n PreviewMessage = ChannelPreviewMessage,\n PreviewStatus = ChannelPreviewStatus,\n PreviewTitle = ChannelPreviewTitle,\n PreviewUnreadCount = ChannelPreviewUnreadCount,\n PreviewMutedStatus = ChannelPreviewMutedStatus,\n unread,\n } = props;\n const { vw } = useViewport();\n\n const maxWidth = vw(80) - 16 - 40;\n\n const {\n theme: {\n channelPreview: { container, contentContainer, row, title },\n colors: { border, white_snow },\n },\n } = useTheme();\n\n const { client } = useChatContext<StreamChatGenerics>();\n\n const displayName = useChannelPreviewDisplayName(\n channel,\n Math.floor(maxWidth / ((title.fontSize || styles.title.fontSize) / 2)),\n );\n\n const [isChannelMuted, setIsChannelMuted] = useState(() => channel.muteStatus().muted);\n\n useEffect(() => {\n const handleEvent = () => setIsChannelMuted(channel.muteStatus().muted);\n\n client.on('notification.channel_mutes_updated', handleEvent);\n return () => client.off('notification.channel_mutes_updated', handleEvent);\n }, [client]);\n\n return (\n <TouchableOpacity\n onPress={() => {\n if (onSelect) {\n onSelect(channel);\n }\n }}\n style={[\n styles.container,\n { backgroundColor: white_snow, borderBottomColor: border },\n container,\n ]}\n testID='channel-preview-button'\n >\n <PreviewAvatar channel={channel} />\n <View\n style={[styles.contentContainer, contentContainer]}\n testID={`channel-preview-content-${channel.id}`}\n >\n <View style={[styles.row, row]}>\n <PreviewTitle channel={channel} displayName={displayName} />\n <View style={[styles.statusContainer, row]}>\n {isChannelMuted && <PreviewMutedStatus />}\n <PreviewUnreadCount channel={channel} maxUnreadCount={maxUnreadCount} unread={unread} />\n </View>\n </View>\n <View style={[styles.row, row]}>\n <PreviewMessage latestMessagePreview={latestMessagePreview} />\n <PreviewStatus\n formatLatestMessageDate={formatLatestMessageDate}\n latestMessagePreview={latestMessagePreview}\n />\n </View>\n </View>\n </TouchableOpacity>\n );\n};\n\nexport type ChannelPreviewMessengerProps<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = Partial<\n Omit<\n ChannelPreviewMessengerPropsWithContext<StreamChatGenerics>,\n 'channel' | 'latestMessagePreview'\n >\n> &\n Pick<\n ChannelPreviewMessengerPropsWithContext<StreamChatGenerics>,\n 'channel' | 'latestMessagePreview'\n >;\n\nconst MemoizedChannelPreviewMessengerWithContext = React.memo(\n ChannelPreviewMessengerWithContext,\n) as typeof ChannelPreviewMessengerWithContext;\n\n/**\n * This UI component displays an individual preview item for each channel in a list. It also receives all props\n * from the ChannelPreview component.\n */\nexport const ChannelPreviewMessenger = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n props: ChannelPreviewMessengerProps<StreamChatGenerics>,\n) => {\n const {\n maxUnreadCount,\n onSelect,\n PreviewAvatar,\n PreviewMessage,\n PreviewMutedStatus,\n PreviewStatus,\n PreviewTitle,\n PreviewUnreadCount,\n } = useChannelsContext<StreamChatGenerics>();\n return (\n <MemoizedChannelPreviewMessengerWithContext\n {...{\n maxUnreadCount,\n onSelect,\n PreviewAvatar,\n PreviewMessage,\n PreviewMutedStatus,\n PreviewStatus,\n PreviewTitle,\n PreviewUnreadCount,\n }}\n {...props}\n />\n );\n};\n\nChannelPreviewMessenger.displayName = 'ChannelPreviewMessenger{channelPreview}';\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,0BAAA,GAAAF,OAAA;AAEA,IAAAG,cAAA,GAAAH,OAAA;AAEA,IAAAI,sBAAA,GAAAJ,OAAA;AACA,IAAAK,0BAAA,GAAAL,OAAA;AACA,IAAAM,qBAAA,GAAAN,OAAA;AACA,IAAAO,oBAAA,GAAAP,OAAA;AACA,IAAAQ,0BAAA,GAAAR,OAAA;AACA,IAAAS,6BAAA,GAAAT,OAAA;AAIA,IAAAU,gBAAA,GAAAV,OAAA;AAIA,IAAAW,YAAA,GAAAX,OAAA;AACA,IAAAY,aAAA,GAAAZ,OAAA;AACA,IAAAa,aAAA,GAAAb,OAAA;AAAsD,IAAAc,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,SAAAlB,wBAAAsB,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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ureHandler","_ChannelAvatar","_ChannelPreviewMessage","_ChannelPreviewMutedStatus","_ChannelPreviewStatus","_ChannelPreviewTitle","_ChannelPreviewUnreadCount","_useChannelPreviewDisplayName","_ChannelsContext","_ChatContext","_ThemeContext","_useViewport2","_this","_jsxFileName","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","styles","StyleSheet","create","container","borderBottomWidth","flex","flexDirection","paddingHorizontal","paddingVertical","contentContainer","row","alignItems","justifyContent","paddingLeft","statusContainer","display","title","fontSize","fontWeight","ChannelPreviewMessengerWithContext","props","channel","formatLatestMessageDate","latestMessagePreview","maxUnreadCount","onSelect","_props$PreviewAvatar","PreviewAvatar","ChannelAvatar","_props$PreviewMessage","PreviewMessage","ChannelPreviewMessage","_props$PreviewStatus","PreviewStatus","ChannelPreviewStatus","_props$PreviewTitle","PreviewTitle","ChannelPreviewTitle","_props$PreviewUnreadC","PreviewUnreadCount","ChannelPreviewUnreadCount","_props$PreviewMutedSt","PreviewMutedStatus","ChannelPreviewMutedStatus","unread","_useViewport","useViewport","vw","maxWidth","_useTheme","useTheme","_useTheme$theme","theme","_useTheme$theme$chann","channelPreview","_useTheme$theme$color","colors","border","white_snow","_useChatContext","useChatContext","client","displayName","useChannelPreviewDisplayName","Math","floor","_useState","useState","muteStatus","muted","_useState2","_slicedToArray2","isChannelMuted","setIsChannelMuted","useEffect","handleEvent","on","off","createElement","TouchableOpacity","onPress","style","backgroundColor","borderBottomColor","testID","__self","__source","fileName","lineNumber","columnNumber","View","id","MemoizedChannelPreviewMessengerWithContext","React","memo","ChannelPreviewMessenger","_useChannelsContext","useChannelsContext","_extends2","exports"],"sources":["ChannelPreviewMessenger.tsx"],"sourcesContent":["import React, { useEffect, useState } from 'react';\nimport { StyleSheet, View } from 'react-native';\nimport { TouchableOpacity } from 'react-native-gesture-handler';\n\nimport { ChannelAvatar } from './ChannelAvatar';\nimport type { ChannelPreviewProps } from './ChannelPreview';\nimport { ChannelPreviewMessage } from './ChannelPreviewMessage';\nimport { ChannelPreviewMutedStatus } from './ChannelPreviewMutedStatus';\nimport { ChannelPreviewStatus } from './ChannelPreviewStatus';\nimport { ChannelPreviewTitle } from './ChannelPreviewTitle';\nimport { ChannelPreviewUnreadCount } from './ChannelPreviewUnreadCount';\nimport { useChannelPreviewDisplayName } from './hooks/useChannelPreviewDisplayName';\n\nimport type { LatestMessagePreview } from './hooks/useLatestMessagePreview';\n\nimport {\n ChannelsContextValue,\n useChannelsContext,\n} from '../../contexts/channelsContext/ChannelsContext';\nimport { useChatContext } from '../../contexts/chatContext/ChatContext';\nimport { useTheme } from '../../contexts/themeContext/ThemeContext';\nimport { useViewport } from '../../hooks/useViewport';\nimport type { DefaultStreamChatGenerics } from '../../types/types';\n\nconst styles = StyleSheet.create({\n container: {\n borderBottomWidth: 1,\n flex: 1,\n flexDirection: 'row',\n paddingHorizontal: 8,\n paddingVertical: 12,\n },\n contentContainer: { flex: 1 },\n row: {\n alignItems: 'center',\n flex: 1,\n flexDirection: 'row',\n justifyContent: 'space-between',\n paddingLeft: 8,\n },\n statusContainer: {\n display: 'flex',\n flexDirection: 'row',\n },\n title: { fontSize: 14, fontWeight: '700' },\n});\n\nexport type ChannelPreviewMessengerPropsWithContext<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = Pick<ChannelPreviewProps<StreamChatGenerics>, 'channel'> &\n Pick<\n ChannelsContextValue<StreamChatGenerics>,\n | 'maxUnreadCount'\n | 'onSelect'\n | 'PreviewAvatar'\n | 'PreviewMessage'\n | 'PreviewMutedStatus'\n | 'PreviewStatus'\n | 'PreviewTitle'\n | 'PreviewUnreadCount'\n > & {\n /**\n * Latest message on a channel, formatted for preview\n *\n * e.g.,\n *\n * ```json\n * {\n * created_at: '' ,\n * messageObject: { ... },\n * previews: {\n * bold: true,\n * text: 'This is the message preview text'\n * },\n * status: 0 | 1 | 2 // read states of the latest message.\n * }\n * ```\n *\n * The read status is either of the following:\n *\n * 0: The message was not sent by the current user\n * 1: The message was sent by the current user and is unread\n * 2: The message was sent by the current user and is read\n *\n * @overrideType object\n */\n latestMessagePreview: LatestMessagePreview<StreamChatGenerics>;\n /**\n * Formatter function for date of latest message.\n * @param date Message date\n * @returns Formatted date string\n *\n * By default today's date is shown in 'HH:mm A' format and other dates\n * are displayed in 'DD/MM/YY' format. props.latestMessage.created_at is the\n * default formatted date. This default logic is part of ChannelPreview component.\n */\n formatLatestMessageDate?: (date: Date) => string;\n /** Number of unread messages on the channel */\n unread?: number;\n };\n\nconst ChannelPreviewMessengerWithContext = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n props: ChannelPreviewMessengerPropsWithContext<StreamChatGenerics>,\n) => {\n const {\n channel,\n formatLatestMessageDate,\n latestMessagePreview,\n maxUnreadCount,\n onSelect,\n PreviewAvatar = ChannelAvatar,\n PreviewMessage = ChannelPreviewMessage,\n PreviewStatus = ChannelPreviewStatus,\n PreviewTitle = ChannelPreviewTitle,\n PreviewUnreadCount = ChannelPreviewUnreadCount,\n PreviewMutedStatus = ChannelPreviewMutedStatus,\n unread,\n } = props;\n const { vw } = useViewport();\n\n const maxWidth = vw(80) - 16 - 40;\n\n const {\n theme: {\n channelPreview: { container, contentContainer, row, title },\n colors: { border, white_snow },\n },\n } = useTheme();\n\n const { client } = useChatContext<StreamChatGenerics>();\n\n const displayName = useChannelPreviewDisplayName(\n channel,\n Math.floor(maxWidth / ((title.fontSize || styles.title.fontSize) / 2)),\n );\n\n const [isChannelMuted, setIsChannelMuted] = useState(() => channel.muteStatus().muted);\n\n useEffect(() => {\n const handleEvent = () => setIsChannelMuted(channel.muteStatus().muted);\n\n client.on('notification.channel_mutes_updated', handleEvent);\n return () => client.off('notification.channel_mutes_updated', handleEvent);\n }, [client]);\n\n return (\n <TouchableOpacity\n onPress={() => {\n if (onSelect) {\n onSelect(channel);\n }\n }}\n style={[\n styles.container,\n { backgroundColor: white_snow, borderBottomColor: border },\n container,\n ]}\n testID='channel-preview-button'\n >\n <PreviewAvatar channel={channel} />\n <View\n style={[styles.contentContainer, contentContainer]}\n testID={`channel-preview-content-${channel.id}`}\n >\n <View style={[styles.row, row]}>\n <PreviewTitle channel={channel} displayName={displayName} />\n <View style={[styles.statusContainer, row]}>\n {isChannelMuted && <PreviewMutedStatus />}\n <PreviewUnreadCount channel={channel} maxUnreadCount={maxUnreadCount} unread={unread} />\n </View>\n </View>\n <View style={[styles.row, row]}>\n <PreviewMessage latestMessagePreview={latestMessagePreview} />\n <PreviewStatus\n channel={channel}\n formatLatestMessageDate={formatLatestMessageDate}\n latestMessagePreview={latestMessagePreview}\n />\n </View>\n </View>\n </TouchableOpacity>\n );\n};\n\nexport type ChannelPreviewMessengerProps<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = Partial<\n Omit<\n ChannelPreviewMessengerPropsWithContext<StreamChatGenerics>,\n 'channel' | 'latestMessagePreview'\n >\n> &\n Pick<\n ChannelPreviewMessengerPropsWithContext<StreamChatGenerics>,\n 'channel' | 'latestMessagePreview'\n >;\n\nconst MemoizedChannelPreviewMessengerWithContext = React.memo(\n ChannelPreviewMessengerWithContext,\n) as typeof ChannelPreviewMessengerWithContext;\n\n/**\n * This UI component displays an individual preview item for each channel in a list. It also receives all props\n * from the ChannelPreview component.\n */\nexport const ChannelPreviewMessenger = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n props: ChannelPreviewMessengerProps<StreamChatGenerics>,\n) => {\n const {\n maxUnreadCount,\n onSelect,\n PreviewAvatar,\n PreviewMessage,\n PreviewMutedStatus,\n PreviewStatus,\n PreviewTitle,\n PreviewUnreadCount,\n } = useChannelsContext<StreamChatGenerics>();\n return (\n <MemoizedChannelPreviewMessengerWithContext\n {...{\n maxUnreadCount,\n onSelect,\n PreviewAvatar,\n PreviewMessage,\n PreviewMutedStatus,\n PreviewStatus,\n PreviewTitle,\n PreviewUnreadCount,\n }}\n {...props}\n />\n );\n};\n\nChannelPreviewMessenger.displayName = 'ChannelPreviewMessenger{channelPreview}';\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,0BAAA,GAAAF,OAAA;AAEA,IAAAG,cAAA,GAAAH,OAAA;AAEA,IAAAI,sBAAA,GAAAJ,OAAA;AACA,IAAAK,0BAAA,GAAAL,OAAA;AACA,IAAAM,qBAAA,GAAAN,OAAA;AACA,IAAAO,oBAAA,GAAAP,OAAA;AACA,IAAAQ,0BAAA,GAAAR,OAAA;AACA,IAAAS,6BAAA,GAAAT,OAAA;AAIA,IAAAU,gBAAA,GAAAV,OAAA;AAIA,IAAAW,YAAA,GAAAX,OAAA;AACA,IAAAY,aAAA,GAAAZ,OAAA;AACA,IAAAa,aAAA,GAAAb,OAAA;AAAsD,IAAAc,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,SAAAlB,wBAAAsB,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,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,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this,
43
43
  __source: {
44
44
  fileName: _jsxFileName,
45
- lineNumber: 48,
45
+ lineNumber: 50,
46
46
  columnNumber: 5
47
47
  }
48
48
  }, status === _useLatestMessagePreview.MessageReadStatus.READ ? _react["default"].createElement(_icons.CheckAll, (0, _extends2["default"])({
@@ -51,7 +51,7 @@ var ChannelPreviewStatus = function ChannelPreviewStatus(props) {
51
51
  __self: _this,
52
52
  __source: {
53
53
  fileName: _jsxFileName,
54
- lineNumber: 50,
54
+ lineNumber: 52,
55
55
  columnNumber: 9
56
56
  }
57
57
  })) : status === _useLatestMessagePreview.MessageReadStatus.UNREAD ? _react["default"].createElement(_icons.Check, (0, _extends2["default"])({
@@ -60,7 +60,7 @@ var ChannelPreviewStatus = function ChannelPreviewStatus(props) {
60
60
  __self: _this,
61
61
  __source: {
62
62
  fileName: _jsxFileName,
63
- lineNumber: 52,
63
+ lineNumber: 54,
64
64
  columnNumber: 9
65
65
  }
66
66
  })) : null, _react["default"].createElement(_reactNative.Text, {
@@ -70,7 +70,7 @@ var ChannelPreviewStatus = function ChannelPreviewStatus(props) {
70
70
  __self: _this,
71
71
  __source: {
72
72
  fileName: _jsxFileName,
73
- lineNumber: 54,
73
+ lineNumber: 56,
74
74
  columnNumber: 7
75
75
  }
76
76
  }, formatLatestMessageDate && latestMessageDate ? formatLatestMessageDate(latestMessageDate) : latestMessagePreview.created_at));
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_useLatestMessagePreview","_ThemeContext","_icons","_this","_jsxFileName","styles","StyleSheet","create","date","fontSize","marginLeft","textAlign","flexRow","flexDirection","ChannelPreviewStatus","props","_latestMessagePreview","formatLatestMessageDate","latestMessagePreview","_useTheme","useTheme","_useTheme$theme","theme","_useTheme$theme$chann","channelPreview","checkAllIcon","checkIcon","_useTheme$theme$color","colors","accent_blue","grey","created_at","messageObject","latestMessageDate","Date","status","createElement","View","style","__self","__source","fileName","lineNumber","columnNumber","MessageReadStatus","READ","CheckAll","_extends2","pathFill","UNREAD","Check","Text","color","exports"],"sources":["ChannelPreviewStatus.tsx"],"sourcesContent":["import React from 'react';\nimport { StyleSheet, Text, View } from 'react-native';\n\nimport type { ChannelPreviewMessengerPropsWithContext } from './ChannelPreviewMessenger';\nimport { MessageReadStatus } from './hooks/useLatestMessagePreview';\n\nimport { useTheme } from '../../contexts/themeContext/ThemeContext';\nimport { Check, CheckAll } from '../../icons';\n\nimport type { DefaultStreamChatGenerics } from '../../types/types';\n\nconst styles = StyleSheet.create({\n date: {\n fontSize: 12,\n marginLeft: 2,\n textAlign: 'right',\n },\n flexRow: {\n flexDirection: 'row',\n },\n});\n\nexport type ChannelPreviewStatusProps<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = Pick<\n ChannelPreviewMessengerPropsWithContext<StreamChatGenerics>,\n 'latestMessagePreview' | 'formatLatestMessageDate'\n>;\n\nexport const ChannelPreviewStatus = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n props: ChannelPreviewStatusProps<StreamChatGenerics>,\n) => {\n const { formatLatestMessageDate, latestMessagePreview } = props;\n const {\n theme: {\n channelPreview: { checkAllIcon, checkIcon, date },\n colors: { accent_blue, grey },\n },\n } = useTheme();\n\n const created_at = latestMessagePreview.messageObject?.created_at;\n const latestMessageDate = created_at ? new Date(created_at) : new Date();\n const status = latestMessagePreview.status;\n\n return (\n <View style={styles.flexRow}>\n {status === MessageReadStatus.READ ? (\n <CheckAll pathFill={accent_blue} {...checkAllIcon} />\n ) : status === MessageReadStatus.UNREAD ? (\n <Check pathFill={grey} {...checkIcon} />\n ) : null}\n <Text style={[styles.date, { color: grey }, date]}>\n {formatLatestMessageDate && latestMessageDate\n ? formatLatestMessageDate(latestMessageDate)\n : latestMessagePreview.created_at}\n </Text>\n </View>\n );\n};\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,O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AAEjC,MAAM,CAACO,OAAQ;IAAA2B,MAAA,EAAApC,KAAA;IAAAqC,QAAA;MAAAC,QAAA,EAAArC,YAAA;MAAAsC,UAAA;MAAAC,YAAA;IAAA;EAAA,GACzBR,MAAM,KAAKS,0CAAiB,CAACC,IAAI,GAChCjD,MAAA,YAAAwC,aAAA,CAAClC,MAAA,CAAA4C,QAAQ,MAAAC,SAAA;IAACC,QAAQ,EAAEnB;EAAY,GAAKJ,YAAY;IAAAc,MAAA,EAAApC,KAAA;IAAAqC,QAAA;MAAAC,QAAA,EAAArC,YAAA;MAAAsC,UAAA;MAAAC,YAAA;IAAA;EAAA,EAAG,CAAC,GACnDR,MAAM,KAAKS,0CAAiB,CAACK,MAAM,GACrCrD,MAAA,YAAAwC,aAAA,CAAClC,MAAA,CAAAgD,KAAK,MAAAH,SAAA;IAACC,QAAQ,EAAElB;EAAK,GAAKJ,SAAS;IAAAa,MAAA,EAAApC,KAAA;IAAAqC,QAAA;MAAAC,QAAA,EAAArC,YAAA;MAAAsC,UAAA;MAAAC,YAAA;IAAA;EAAA,EAAG,CAAC,GACtC,IAAI,EACR/C,MAAA,YAAAwC,aAAA,CAACrC,YAAA,CAAAoD,IAAI;IAACb,KAAK,EAAE,CAACjC,MAAM,CAACG,IAAI,EAAE;MAAE4C,KAAK,EAAEtB;IAAK,CAAC,EAAEtB,IAAI,CAAE;IAAA+B,MAAA,EAAApC,KAAA;IAAAqC,QAAA;MAAAC,QAAA,EAAArC,YAAA;MAAAsC,UAAA;MAAAC,YAAA;IAAA;EAAA,GAC/C1B,uBAAuB,IAAIgB,iBAAiB,GACzChB,uBAAuB,CAACgB,iBAAiB,CAAC,GAC1Cf,oBAAoB,CAACa,UACrB,CACF,CAAC;AAEX,CAAC;AAACsB,OAAA,CAAAvC,oBAAA,GAAAA,oBAAA"}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_useLatestMessagePreview","_ThemeContext","_icons","_this","_jsxFileName","styles","StyleSheet","create","date","fontSize","marginLeft","textAlign","flexRow","flexDirection","ChannelPreviewStatus","props","_latestMessagePreview","formatLatestMessageDate","latestMessagePreview","_useTheme","useTheme","_useTheme$theme","theme","_useTheme$theme$chann","channelPreview","checkAllIcon","checkIcon","_useTheme$theme$color","colors","accent_blue","grey","created_at","messageObject","latestMessageDate","Date","status","createElement","View","style","__self","__source","fileName","lineNumber","columnNumber","MessageReadStatus","READ","CheckAll","_extends2","pathFill","UNREAD","Check","Text","color","exports"],"sources":["ChannelPreviewStatus.tsx"],"sourcesContent":["import React from 'react';\nimport { StyleSheet, Text, View } from 'react-native';\n\nimport { ChannelPreviewProps } from './ChannelPreview';\nimport type { ChannelPreviewMessengerPropsWithContext } from './ChannelPreviewMessenger';\nimport { MessageReadStatus } from './hooks/useLatestMessagePreview';\n\nimport { useTheme } from '../../contexts/themeContext/ThemeContext';\nimport { Check, CheckAll } from '../../icons';\n\nimport type { DefaultStreamChatGenerics } from '../../types/types';\n\nconst styles = StyleSheet.create({\n date: {\n fontSize: 12,\n marginLeft: 2,\n textAlign: 'right',\n },\n flexRow: {\n flexDirection: 'row',\n },\n});\n\nexport type ChannelPreviewStatusProps<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = Pick<\n ChannelPreviewMessengerPropsWithContext<StreamChatGenerics>,\n 'latestMessagePreview' | 'formatLatestMessageDate'\n> &\n Pick<ChannelPreviewProps<StreamChatGenerics>, 'channel'>;\n\nexport const ChannelPreviewStatus = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n props: ChannelPreviewStatusProps<StreamChatGenerics>,\n) => {\n const { formatLatestMessageDate, latestMessagePreview } = props;\n const {\n theme: {\n channelPreview: { checkAllIcon, checkIcon, date },\n colors: { accent_blue, grey },\n },\n } = useTheme();\n\n const created_at = latestMessagePreview.messageObject?.created_at;\n const latestMessageDate = created_at ? new Date(created_at) : new Date();\n const status = latestMessagePreview.status;\n\n return (\n <View style={styles.flexRow}>\n {status === MessageReadStatus.READ ? (\n <CheckAll pathFill={accent_blue} {...checkAllIcon} />\n ) : status === MessageReadStatus.UNREAD ? (\n <Check pathFill={grey} {...checkIcon} />\n ) : null}\n <Text style={[styles.date, { color: grey }, date]}>\n {formatLatestMessageDate && latestMessageDate\n ? formatLatestMessageDate(latestMessageDate)\n : latestMessagePreview.created_at}\n </Text>\n </View>\n );\n};\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAIA,IAAAE,wBAAA,GAAAF,OAAA;AAEA,IAAAG,aAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AAA8C,IAAAK,KAAA;EAAAC,YAAA;AAI9C,IAAMC,MAAM,GAAGC,uBAAU,CAACC,MAAM,CAAC;EAC/BC,IAAI,EAAE;IACJC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,CAAC;IACbC,SAAS,EAAE;EACb,CAAC;EACDC,OAAO,EAAE;IACPC,aAAa,EAAE;EACjB;AACF,CAAC,CAAC;AAUK,IAAMC,oBAAoB,GAAG,SAAvBA,oBAAoBA,CAG/BC,KAAoD,EACjD;EAAA,IAAAC,qBAAA;EACH,IAAQC,uBAAuB,GAA2BF,KAAK,CAAvDE,uBAAuB;IAAEC,oBAAoB,GAAKH,KAAK,CAA9BG,oBAAoB;EACrD,IAAAC,SAAA,GAKI,IAAAC,sBAAQ,EAAC,CAAC;IAAAC,eAAA,GAAAF,SAAA,CAJZG,KAAK;IAAAC,qBAAA,GAAAF,eAAA,CACHG,cAAc;IAAIC,YAAY,GAAAF,qBAAA,CAAZE,YAAY;IAAEC,SAAS,GAAAH,qBAAA,CAATG,SAAS;IAAElB,IAAI,GAAAe,qBAAA,CAAJf,IAAI;IAAAmB,qBAAA,GAAAN,eAAA,CAC/CO,MAAM;IAAIC,WAAW,GAAAF,qBAAA,CAAXE,WAAW;IAAEC,IAAI,GAAAH,qB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MAAAC,QAAA,EAAArC,YAAA;MAAAsC,UAAA;MAAAC,YAAA;IAAA;EAAA,GAC/C1B,uBAAuB,IAAIgB,iBAAiB,GACzChB,uBAAuB,CAACgB,iBAAiB,CAAC,GAC1Cf,oBAAoB,CAACa,UACrB,CACF,CAAC;AAEX,CAAC;AAACsB,OAAA,CAAAvC,oBAAA,GAAAA,oBAAA"}
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "1 Reply": "1 respuesta",
3
- "1 Thread Reply": "1 respuesta de hilo",
3
+ "1 Thread Reply": "",
4
4
  "Allow access to your Gallery": "Permitir acceso a tu galería",
5
5
  "Allow camera access in device settings": "Permitir el acceso a la cámara en la configuración del dispositivo",
6
- "Also send to channel": "También enviar al canal",
6
+ "Also send to channel": "",
7
7
  "Are you sure you want to permanently delete this message?": "¿Estás seguro de que deseas eliminar permanentemente este mensaje?",
8
8
  "Are you sure?": "¿Estás seguro?",
9
9
  "Block User": "Bloquear usuario",
@@ -16,50 +16,50 @@
16
16
  "Device camera is used to take photos or videos.": "La cámara del dispositivo se utiliza para tomar fotografías o vídeos.",
17
17
  "Do you want to send a copy of this message to a moderator for further investigation?": "¿Deseas enviar una copia de este mensaje a un moderador para una investigación adicional?",
18
18
  "Edit Message": "Editar mensaje",
19
- "Editing Message": "Editando mensaje",
20
- "Emoji matching": "Coincidencia de emoji",
21
- "Empty message...": "Mensaje vacío...",
22
- "Error loading": "Error al cargar",
23
- "Error loading channel list...": "Error al cargar la lista de canales...",
24
- "Error loading messages for this channel...": "Error al cargar los mensajes de este canal...",
25
- "Error while loading, please reload/refresh": "Error al cargar, por favor recarga/actualiza",
19
+ "Editing Message": "",
20
+ "Emoji matching": "",
21
+ "Empty message...": "",
22
+ "Error loading": "",
23
+ "Error loading channel list...": "",
24
+ "Error loading messages for this channel...": "",
25
+ "Error while loading, please reload/refresh": "",
26
26
  "File type not supported": "Tipo de archivo no admitido",
27
27
  "Flag": "Reportar",
28
28
  "Flag Message": "Reportar mensaje",
29
29
  "Flag action failed either due to a network issue or the message is already flagged": "El reporte falló debido a un problema de red o el mensaje ya fue reportado.",
30
- "How about sending your first message to a friend?": "¿Qué tal enviar tu primer mensaje a un amigo?",
31
- "Instant Commands": "Comandos instantáneos",
32
- "Let's start chatting!": "¡Empecemos a charlar!",
33
- "Links are disabled": "Los enlaces están desactivados",
34
- "Loading channels...": "Cargando canales...",
35
- "Loading messages...": "Cargando mensajes...",
36
- "Loading...": "Cargando...",
37
- "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "El archivo supera el tamaño máximo permitido. Por favor, selecciona un archivo menor a {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.",
38
- "Message Reactions": "Reacciones al mensaje",
39
- "Message deleted": "Mensaje eliminado",
30
+ "How about sending your first message to a friend?": "",
31
+ "Instant Commands": "",
32
+ "Let's start chatting!": "",
33
+ "Links are disabled": "",
34
+ "Loading channels...": "",
35
+ "Loading messages...": "",
36
+ "Loading...": "",
37
+ "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
38
+ "Message Reactions": "",
39
+ "Message deleted": "",
40
40
  "Message flagged": "Mensaje reportado",
41
41
  "Mute User": "Silenciar usuario",
42
42
  "Not supported": "No admitido",
43
- "Nothing yet...": "Aún no hay nada...",
43
+ "Nothing yet...": "",
44
44
  "Ok": "Aceptar",
45
- "Only visible to you": "Solo visible para ti",
45
+ "Only visible to you": "",
46
46
  "Open Settings": "Configuración abierta",
47
- "Photo": "Foto",
47
+ "Photo": "",
48
48
  "Photos and Videos": "Fotos y videos",
49
49
  "Pin to Conversation": "Fijar a la conversación",
50
- "Pinned by": "Fijado por",
50
+ "Pinned by": "",
51
51
  "Please enable access to your photos and videos so you can share them.": "Por favor, habilita el acceso a tus fotos y videos para poder compartirlos.",
52
- "Please select a channel first": "Por favor, selecciona primero un canal",
53
- "Reconnecting...": "Reconectando...",
52
+ "Please select a channel first": "",
53
+ "Reconnecting...": "",
54
54
  "Reply": "Responder",
55
- "Reply to Message": "Responder al mensaje",
55
+ "Reply to Message": "",
56
56
  "Resend": "Reenviar",
57
- "Search GIFs": "Buscar GIFs",
57
+ "Search GIFs": "",
58
58
  "Select More Photos": "Seleccionar más fotos",
59
59
  "Send Anyway": "Enviar de todos modos",
60
- "Send a message": "Enviar un mensaje",
61
- "Sending links is not allowed in this conversation": "No está permitido enviar enlaces en esta conversación",
62
- "Slow mode ON": "Modo lento ACTIVADO",
60
+ "Send a message": "",
61
+ "Sending links is not allowed in this conversation": "",
62
+ "Slow mode ON": "",
63
63
  "The message has been reported to a moderator.": "El mensaje ha sido reportado a un moderador.",
64
64
  "Thread Reply": "Respuesta de hilo",
65
65
  "Unblock User": "Desbloquear usuario",
@@ -67,13 +67,13 @@
67
67
  "Unmute User": "Activar sonido del usuario",
68
68
  "Unpin from Conversation": "Desmarcar de la conversación",
69
69
  "Unread Messages": "Mensajes no leídos",
70
- "Video": "Video",
71
- "You": "",
72
- "You can't send messages in this channel": "No puedes enviar mensajes en este canal",
73
- "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} y {{ nonSelfUserLength }} más están escribiendo",
70
+ "Video": "",
71
+ "You": "",
72
+ "You can't send messages in this channel": "",
73
+ "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
74
74
  "{{ index }} of {{ photoLength }}": "{{ index }} de {{ photoLength }}",
75
75
  "{{ replyCount }} Replies": "{{ replyCount }} Respuestas",
76
- "{{ replyCount }} Thread Replies": "{{ replyCount }} respuestas de hilo",
77
- "{{ user }} is typing": "{{ user }} está escribiendo",
78
- "🏙 Attachment...": "🏙 Adjunto..."
76
+ "{{ replyCount }} Thread Replies": "",
77
+ "{{ user }} is typing": "",
78
+ "🏙 Attachment...": ""
79
79
  }
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "1 Reply": "1 Réponse",
3
- "1 Thread Reply": "Réponse à 1 fil",
3
+ "1 Thread Reply": "",
4
4
  "Allow access to your Gallery": "Autoriser l'accès à votre galerie",
5
5
  "Allow camera access in device settings": "Autoriser l'accès à la caméra dans les paramètres de l'appareil",
6
- "Also send to channel": "Envoyer également à la chaîne",
6
+ "Also send to channel": "",
7
7
  "Are you sure you want to permanently delete this message?": "Êtes-vous sûr de vouloir supprimer définitivement ce message?",
8
8
  "Are you sure?": "Es-tu sûr ?",
9
9
  "Block User": "Bloquer un utilisateur",
@@ -16,50 +16,50 @@
16
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.",
17
17
  "Do you want to send a copy of this message to a moderator for further investigation?": "Voulez-vous envoyer une copie de ce message à un modérateur pour une enquête plus approfondie?",
18
18
  "Edit Message": "Éditer un message",
19
- "Editing Message": "Édite un message",
20
- "Emoji matching": "Correspondance Emoji",
21
- "Empty message...": "Message vide...",
22
- "Error loading": "Erreur lors du chargement",
23
- "Error loading channel list...": "Erreur lors du chargement de la liste de canaux...",
24
- "Error loading messages for this channel...": "Erreur lors du chargement des messages de ce canal...",
25
- "Error while loading, please reload/refresh": "Erreur lors du chargement, veuillez recharger/rafraîchir",
19
+ "Editing Message": "",
20
+ "Emoji matching": "",
21
+ "Empty message...": "",
22
+ "Error loading": "",
23
+ "Error loading channel list...": "",
24
+ "Error loading messages for this channel...": "",
25
+ "Error while loading, please reload/refresh": "",
26
26
  "File type not supported": "Le type de fichier n'est pas pris en charge",
27
27
  "Flag": "Signaler",
28
28
  "Flag Message": "Signaler le message",
29
29
  "Flag action failed either due to a network issue or the message is already flagged": "L'action de signalisation a échoué en raison d'un problème de réseau ou le message est déjà signalé.",
30
- "How about sending your first message to a friend?": "Et si vous envoyiez votre premier message à un ami ?",
31
- "Instant Commands": "Commandes Instantanées",
32
- "Let's start chatting!": "Commençons à discuter !",
33
- "Links are disabled": "Links are disabled",
34
- "Loading channels...": "Chargement des canaux...",
35
- "Loading messages...": "Chargement des messages...",
36
- "Loading...": "Chargement...",
37
- "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "Taille maximale de téléchargement de fichier atteinte. Veuillez télécharger un fichier inférieur à {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} Mo.",
38
- "Message Reactions": "Réactions aux messages",
39
- "Message deleted": "Message supprimé",
30
+ "How about sending your first message to a friend?": "",
31
+ "Instant Commands": "",
32
+ "Let's start chatting!": "",
33
+ "Links are disabled": "",
34
+ "Loading channels...": "",
35
+ "Loading messages...": "",
36
+ "Loading...": "",
37
+ "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
38
+ "Message Reactions": "",
39
+ "Message deleted": "",
40
40
  "Message flagged": "Message signalé",
41
41
  "Mute User": "Utilisateur muet",
42
42
  "Not supported": "Non pris en charge",
43
- "Nothing yet...": "Aucun message...",
43
+ "Nothing yet...": "",
44
44
  "Ok": "Ok",
45
- "Only visible to you": "Seulement visible par vous",
45
+ "Only visible to you": "",
46
46
  "Open Settings": "Ouvrir les paramètres",
47
- "Photo": "Photo",
47
+ "Photo": "",
48
48
  "Photos and Videos": "Photos et vidéos",
49
49
  "Pin to Conversation": "Épingler à la conversation",
50
- "Pinned by": "Épinglé par",
50
+ "Pinned by": "",
51
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.",
52
- "Please select a channel first": "Veuillez d'abord selectionnez un canal",
53
- "Reconnecting...": "Se Reconnecter...",
52
+ "Please select a channel first": "",
53
+ "Reconnecting...": "",
54
54
  "Reply": "Répondre",
55
- "Reply to Message": "Répondre au message",
55
+ "Reply to Message": "",
56
56
  "Resend": "Renvoyer",
57
- "Search GIFs": "Rechercher des GIF",
57
+ "Search GIFs": "",
58
58
  "Select More Photos": "Sélectionner plus de photos",
59
59
  "Send Anyway": "Envoyer quand même",
60
- "Send a message": "Envoyer un message",
61
- "Sending links is not allowed in this conversation": "Sending links is not allowed in this conversation",
62
- "Slow mode ON": "Mode lent activé",
60
+ "Send a message": "",
61
+ "Sending links is not allowed in this conversation": "",
62
+ "Slow mode ON": "",
63
63
  "The message has been reported to a moderator.": "Le message a été signalé à un modérateur.",
64
64
  "Thread Reply": "Réponse à la discussion",
65
65
  "Unblock User": "Débloquer Utilisateur",
@@ -67,13 +67,13 @@
67
67
  "Unmute User": "Activer le son de Utilisateur",
68
68
  "Unpin from Conversation": "Décrocher de la conversation",
69
69
  "Unread Messages": "Messages non lus",
70
- "Video": "Vidéo",
71
- "You": "Toi",
72
- "You can't send messages in this channel": "You can't send messages in this channel",
73
- "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} et {{ nonSelfUserLength }} autres sont en train d'écrire",
70
+ "Video": "",
71
+ "You": "",
72
+ "You can't send messages in this channel": "",
73
+ "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
74
74
  "{{ index }} of {{ photoLength }}": "{{ index }} sur {{ photoLength }}",
75
75
  "{{ replyCount }} Replies": "{{ replyCount }} Réponses",
76
- "{{ replyCount }} Thread Replies": "{{replyCount}} Réponses à la discussion",
77
- "{{ user }} is typing": "{{ user }} est en train d'écrire",
78
- "🏙 Attachment...": "🏙 Pièce jointe..."
76
+ "{{ replyCount }} Thread Replies": "",
77
+ "{{ user }} is typing": "",
78
+ "🏙 Attachment...": ""
79
79
  }
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "1 Reply": "תגובה אחת",
3
- "1 Thread Reply": "תגובה אחת לשרשור",
3
+ "1 Thread Reply": "",
4
4
  "Allow access to your Gallery": "אפשר גישה לגלריה שלך",
5
5
  "Allow camera access in device settings": "אפשר גישה למצלמה בהגדרות המכשיר",
6
- "Also send to channel": "שלח/י הודעה לשיחה",
6
+ "Also send to channel": "",
7
7
  "Are you sure you want to permanently delete this message?": "האם את/ה בטוח/ה שאת/ה רוצה למחוק את ההודעה הזו לצמיתות?",
8
8
  "Are you sure?": "האם אתה בטוח?",
9
9
  "Block User": "חסום משתמש",
@@ -16,50 +16,50 @@
16
16
  "Device camera is used to take photos or videos.": "מצלמת המכשיר משמשת לצילום תמונות או סרטונים.",
17
17
  "Do you want to send a copy of this message to a moderator for further investigation?": "האם את/ה רוצה לשלוח עותק של הודעה זו למנחה להמשך חקירה?",
18
18
  "Edit Message": "ערוך הודעה",
19
- "Editing Message": "הודעה בעריכה",
20
- "Emoji matching": "התאמת אמוג'י",
21
- "Empty message...": "הודעה ריקה...",
22
- "Error loading": "שגיאה ארעה בעת הטעינה",
23
- "Error loading channel list...": "שגיאה ארעה בטעינת השיחות...",
24
- "Error loading messages for this channel...": "שגיאה ארעה בטעינת הודעות עבור שיחה זאת...",
25
- "Error while loading, please reload/refresh": "שגיאה ארעה בזמן הטעינה, אנא טען מחדש/רענן",
19
+ "Editing Message": "",
20
+ "Emoji matching": "",
21
+ "Empty message...": "",
22
+ "Error loading": "",
23
+ "Error loading channel list...": "",
24
+ "Error loading messages for this channel...": "",
25
+ "Error while loading, please reload/refresh": "",
26
26
  "File type not supported": "סוג הקובץ אינו נתמך",
27
27
  "Flag": "סמן",
28
28
  "Flag Message": "סמן הודעה",
29
29
  "Flag action failed either due to a network issue or the message is already flagged": "פעולת הסימון נכשלה בגלל בעיית רשת או שההודעה כבר סומנה.",
30
- "How about sending your first message to a friend?": "מה דעתך לשלוח את ההודעה הראשונה שלך לחבר?",
31
- "Instant Commands": "פעולות מיידיות",
32
- "Let's start chatting!": "בואו נתחיל לשוחח!",
33
- "Links are disabled": "הקישורים מבוטלים",
34
- "Loading channels...": "השיחות בטעינה...",
35
- "Loading messages...": "ההודעות בטעינה..",
36
- "Loading...": "טוען...",
37
- "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "הגעת למגבלת העלאת גודל הקובץ המקסימלית. אנא העלה קובץ מתחת ל-{{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB",
38
- "Message Reactions": "תגובות להודעה",
39
- "Message deleted": "ההודעה נמחקה",
30
+ "How about sending your first message to a friend?": "",
31
+ "Instant Commands": "",
32
+ "Let's start chatting!": "",
33
+ "Links are disabled": "",
34
+ "Loading channels...": "",
35
+ "Loading messages...": "",
36
+ "Loading...": "",
37
+ "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
38
+ "Message Reactions": "",
39
+ "Message deleted": "",
40
40
  "Message flagged": "ההודעה סומנה",
41
41
  "Mute User": "השתק/י משתמש",
42
42
  "Not supported": "לא נתמך",
43
- "Nothing yet...": "אינפורמציה תתקבל בהמשך...",
43
+ "Nothing yet...": "",
44
44
  "Ok": "אוקיי",
45
- "Only visible to you": "גלוי רק לך",
45
+ "Only visible to you": "",
46
46
  "Open Settings": "פתח את ההגדרות",
47
- "Photo": "תמונה",
47
+ "Photo": "",
48
48
  "Photos and Videos": "תמונות ווידאו",
49
49
  "Pin to Conversation": "הצמד/י לשיחה",
50
- "Pinned by": " - הוצמד לשיחה",
50
+ "Pinned by": "",
51
51
  "Please enable access to your photos and videos so you can share them.": "אפשר/י גישה לתמונות ולסרטונים שלך כדי שתוכל/י לשתף אותם.",
52
- "Please select a channel first": "אנא בחר/י שיחה תחילה",
53
- "Reconnecting...": "מתחבר מחדש...",
52
+ "Please select a channel first": "",
53
+ "Reconnecting...": "",
54
54
  "Reply": "השב/י",
55
- "Reply to Message": "השב/י להודעה",
55
+ "Reply to Message": "",
56
56
  "Resend": "שלח/י שוב",
57
- "Search GIFs": "חפש/י GIFs",
57
+ "Search GIFs": "",
58
58
  "Select More Photos": "בחר עוד תמונות",
59
59
  "Send Anyway": "שלח בכל זאת",
60
- "Send a message": "שלח/י הודעה",
61
- "Sending links is not allowed in this conversation": "שליחת קישורים אינה מותרת בשיחה זו",
62
- "Slow mode ON": "מצב איטי מופעל",
60
+ "Send a message": "",
61
+ "Sending links is not allowed in this conversation": "",
62
+ "Slow mode ON": "",
63
63
  "The message has been reported to a moderator.": "ההודעה דווחה למנהל",
64
64
  "Thread Reply": "הגב/י בשרשור",
65
65
  "Unblock User": "בטל/י חסימת משתמש",
@@ -67,13 +67,13 @@
67
67
  "Unmute User": "בטל/י השתקת משתמש",
68
68
  "Unpin from Conversation": "בטל/י הצמדה לשיחה",
69
69
  "Unread Messages": "הודעות שטרם נקרו",
70
- "Video": "וִידֵאוֹ",
71
- "You": "את/ה",
72
- "You can't send messages in this channel": "את/ב לא יכול/ה לשלוח הודעות בשיחה זו",
73
- "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} ו-{{ nonSelfUserLength }} משתמש/ים אחר/ים מקלידים",
70
+ "Video": "",
71
+ "You": "",
72
+ "You can't send messages in this channel": "",
73
+ "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
74
74
  "{{ index }} of {{ photoLength }}": "{{ index }} מתוך {{ photoLength }}",
75
75
  "{{ replyCount }} Replies": "{{ replyCount }} תגובות",
76
- "{{ replyCount }} Thread Replies": "{{ replyCount }} תגובות שרשור",
77
- "{{ user }} is typing": "{{ user }} מקליד/ה",
78
- "🏙 Attachment...": "🏙 קובץ מצורף..."
76
+ "{{ replyCount }} Thread Replies": "",
77
+ "{{ user }} is typing": "",
78
+ "🏙 Attachment...": ""
79
79
  }