stream-chat-react-native-core 5.25.0-beta.5 → 5.25.0-beta.6

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/Chat/Chat.js +10 -6
  2. package/lib/commonjs/components/Chat/Chat.js.map +1 -1
  3. package/lib/commonjs/components/Chat/hooks/useSyncDatabase.js +4 -3
  4. package/lib/commonjs/components/Chat/hooks/useSyncDatabase.js.map +1 -1
  5. package/lib/commonjs/i18n/en.json +1 -1
  6. package/lib/commonjs/i18n/es.json +44 -44
  7. package/lib/commonjs/i18n/fr.json +44 -44
  8. package/lib/commonjs/i18n/he.json +44 -44
  9. package/lib/commonjs/i18n/hi.json +44 -44
  10. package/lib/commonjs/i18n/it.json +44 -44
  11. package/lib/commonjs/i18n/ja.json +44 -44
  12. package/lib/commonjs/i18n/ko.json +44 -44
  13. package/lib/commonjs/i18n/nl.json +44 -44
  14. package/lib/commonjs/i18n/ru.json +44 -44
  15. package/lib/commonjs/i18n/tr.json +44 -44
  16. package/lib/commonjs/version.json +1 -1
  17. package/lib/module/components/Chat/Chat.js +10 -6
  18. package/lib/module/components/Chat/Chat.js.map +1 -1
  19. package/lib/module/components/Chat/hooks/useSyncDatabase.js +4 -3
  20. package/lib/module/components/Chat/hooks/useSyncDatabase.js.map +1 -1
  21. package/lib/module/i18n/en.json +1 -1
  22. package/lib/module/i18n/es.json +44 -44
  23. package/lib/module/i18n/fr.json +44 -44
  24. package/lib/module/i18n/he.json +44 -44
  25. package/lib/module/i18n/hi.json +44 -44
  26. package/lib/module/i18n/it.json +44 -44
  27. package/lib/module/i18n/ja.json +44 -44
  28. package/lib/module/i18n/ko.json +44 -44
  29. package/lib/module/i18n/nl.json +44 -44
  30. package/lib/module/i18n/ru.json +44 -44
  31. package/lib/module/i18n/tr.json +44 -44
  32. package/lib/module/version.json +1 -1
  33. package/lib/typescript/components/Chat/hooks/useSyncDatabase.d.ts +2 -1
  34. package/lib/typescript/i18n/en.json +1 -1
  35. package/lib/typescript/i18n/es.json +44 -44
  36. package/lib/typescript/i18n/fr.json +44 -44
  37. package/lib/typescript/i18n/he.json +44 -44
  38. package/lib/typescript/i18n/hi.json +44 -44
  39. package/lib/typescript/i18n/it.json +44 -44
  40. package/lib/typescript/i18n/ja.json +44 -44
  41. package/lib/typescript/i18n/ko.json +44 -44
  42. package/lib/typescript/i18n/nl.json +44 -44
  43. package/lib/typescript/i18n/ru.json +44 -44
  44. package/lib/typescript/i18n/tr.json +44 -44
  45. package/package.json +1 -1
  46. package/src/components/Chat/Chat.tsx +5 -0
  47. package/src/components/Chat/hooks/useSyncDatabase.ts +4 -2
  48. package/src/i18n/en.json +1 -1
  49. package/src/i18n/es.json +44 -44
  50. package/src/i18n/fr.json +44 -44
  51. package/src/i18n/he.json +44 -44
  52. package/src/i18n/hi.json +44 -44
  53. package/src/i18n/it.json +44 -44
  54. package/src/i18n/ja.json +44 -44
  55. package/src/i18n/ko.json +44 -44
  56. package/src/i18n/nl.json +44 -44
  57. package/src/i18n/ru.json +44 -44
  58. package/src/i18n/tr.json +44 -44
  59. package/src/version.json +1 -1
@@ -97,14 +97,18 @@ var ChatWithContext = function ChatWithContext(props) {
97
97
  });
98
98
  (0, _useSyncDatabase.useSyncDatabase)({
99
99
  client: client,
100
- enableOfflineSupport: enableOfflineSupport
100
+ enableOfflineSupport: enableOfflineSupport,
101
+ initialisedDatabase: initialisedDatabase
101
102
  });
103
+ if (enableOfflineSupport && !initialisedDatabase) {
104
+ return null;
105
+ }
102
106
  return _react["default"].createElement(_ChatContext.ChatProvider, {
103
107
  value: chatContext,
104
108
  __self: _this,
105
109
  __source: {
106
110
  fileName: _jsxFileName,
107
- lineNumber: 221,
111
+ lineNumber: 226,
108
112
  columnNumber: 5
109
113
  }
110
114
  }, _react["default"].createElement(_TranslationContext.TranslationProvider, {
@@ -114,7 +118,7 @@ var ChatWithContext = function ChatWithContext(props) {
114
118
  __self: _this,
115
119
  __source: {
116
120
  fileName: _jsxFileName,
117
- lineNumber: 222,
121
+ lineNumber: 227,
118
122
  columnNumber: 7
119
123
  }
120
124
  }, _react["default"].createElement(_ThemeContext.ThemeProvider, {
@@ -122,14 +126,14 @@ var ChatWithContext = function ChatWithContext(props) {
122
126
  __self: _this,
123
127
  __source: {
124
128
  fileName: _jsxFileName,
125
- lineNumber: 225,
129
+ lineNumber: 230,
126
130
  columnNumber: 9
127
131
  }
128
132
  }, _react["default"].createElement(_ChannelsStateContext.ChannelsStateProvider, {
129
133
  __self: _this,
130
134
  __source: {
131
135
  fileName: _jsxFileName,
132
- lineNumber: 226,
136
+ lineNumber: 231,
133
137
  columnNumber: 11
134
138
  }
135
139
  }, children))));
@@ -143,7 +147,7 @@ var Chat = function Chat(props) {
143
147
  __self: _this,
144
148
  __source: {
145
149
  fileName: _jsxFileName,
146
- lineNumber: 261,
150
+ lineNumber: 266,
147
151
  columnNumber: 10
148
152
  }
149
153
  }));
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_useAppSettings","_useCreateChatContext","_useIsOnline2","_useMutedUsers","_useSyncDatabase","_ChannelsStateContext","_ChatContext","_DebugContext","_OverlayContext","_ThemeContext","_TranslationContext","_useStreami18n","_init","_interopRequireDefault","_native","_QuickSqliteClient","_DBSyncManager","_version","_this","_jsxFileName","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","init","ChatWithContext","props","_client$user2","_client$user3","children","client","_props$closeConnectio","closeConnectionOnBackground","_props$enableOfflineS","enableOfflineSupport","i18nInstance","_props$ImageComponent","ImageComponent","Image","style","_useState","useState","_useState2","_slicedToArray2","channel","setChannel","translators","useStreami18n","_useIsOnline","useIsOnline","connectionRecovering","isOnline","_useState3","_useState4","initialisedDatabase","setInitialisedDatabase","mutedUsers","useMutedUsers","debugRef","useDebugContext","isDebugModeEnabled","__DEV__","current","useEffect","setUserAgent","SDK","Platform","OS","version","recoverStateOnReconnect","persistUserOnConnectionFailure","setEventType","setSendEventParams","action","data","user","setActiveChannel","newChannel","_client$user","id","QuickSqliteClient","initializeDatabase","DBSyncManager","appSettings","useAppSettings","chatContext","useCreateChatContext","useSyncDatabase","createElement","ChatProvider","value","__self","__source","fileName","lineNumber","columnNumber","TranslationProvider","_extends2","userLanguage","language","DEFAULT_USER_LANGUAGE","ThemeProvider","ChannelsStateProvider","Chat","_useOverlayContext","useOverlayContext","exports"],"sources":["Chat.tsx"],"sourcesContent":["import React, { PropsWithChildren, useEffect, useState } from 'react';\nimport { Image, Platform } from 'react-native';\n\nimport type { Channel, StreamChat } from 'stream-chat';\n\nimport { useAppSettings } from './hooks/useAppSettings';\nimport { useCreateChatContext } from './hooks/useCreateChatContext';\nimport { useIsOnline } from './hooks/useIsOnline';\nimport { useMutedUsers } from './hooks/useMutedUsers';\n\nimport { useSyncDatabase } from './hooks/useSyncDatabase';\n\nimport { ChannelsStateProvider } from '../../contexts/channelsStateContext/ChannelsStateContext';\nimport { ChatContextValue, ChatProvider } from '../../contexts/chatContext/ChatContext';\nimport { useDebugContext } from '../../contexts/debugContext/DebugContext';\nimport { useOverlayContext } from '../../contexts/overlayContext/OverlayContext';\nimport { DeepPartial, ThemeProvider } from '../../contexts/themeContext/ThemeContext';\nimport type { Theme } from '../../contexts/themeContext/utils/theme';\nimport {\n DEFAULT_USER_LANGUAGE,\n TranslationProvider,\n} from '../../contexts/translationContext/TranslationContext';\nimport { useStreami18n } from '../../hooks/useStreami18n';\nimport init from '../../init';\n\nimport { SDK } from '../../native';\nimport { QuickSqliteClient } from '../../store/QuickSqliteClient';\nimport type { DefaultStreamChatGenerics } from '../../types/types';\nimport { DBSyncManager } from '../../utils/DBSyncManager';\nimport type { Streami18n } from '../../utils/Streami18n';\nimport { version } from '../../version.json';\n\ninit();\n\nexport type ChatProps<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = Pick<ChatContextValue<StreamChatGenerics>, 'client'> &\n Partial<Pick<ChatContextValue<StreamChatGenerics>, 'ImageComponent'>> & {\n /**\n * When false, ws connection won't be disconnection upon backgrounding the app.\n * To receive push notifications, its necessary that user doesn't have active\n * websocket connection. So by default, we disconnect websocket connection when\n * app goes to background, and reconnect when app comes to foreground.\n */\n closeConnectionOnBackground?: boolean;\n /**\n * Enables offline storage and loading for chat data.\n */\n enableOfflineSupport?: boolean;\n /**\n * Instance of Streami18n class should be provided to Chat component to enable internationalization.\n *\n * Stream provides following list of in-built translations:\n * 1. English (en)\n * 2. Dutch (nl)\n * 3. ...\n * 4. ...\n *\n * Simplest way to start using chat components in one of the in-built languages would be following:\n *\n * ```\n * const i18n = new Streami18n('nl');\n * <Chat client={chatClient} i18nInstance={i18n}>\n * ...\n * </Chat>\n * ```\n *\n * If you would like to override certain keys in in-built translation.\n * UI will be automatically updated in this case.\n *\n * ```\n * const i18n = new Streami18n('nl');\n *\n * i18n.registerTranslation('nl', {\n * 'Nothing yet...': 'Nog Niet ...',\n * '{{ firstUser }} and {{ secondUser }} are typing...': '{{ firstUser }} en {{ secondUser }} zijn aan het typen...',\n * });\n *\n * <Chat client={chatClient} i18nInstance={i18n}>\n * ...\n * </Chat>\n * ```\n *\n * You can use the same function to add whole new language.\n *\n * ```\n * const i18n = new Streami18n('it');\n *\n * i18n.registerTranslation('it', {\n * 'Nothing yet...': 'Non ancora ...',\n * '{{ firstUser }} and {{ secondUser }} are typing...': '{{ firstUser }} a {{ secondUser }} stanno scrivendo...',\n * });\n *\n * // Make sure to call setLanguage to reflect new language in UI.\n * i18n.setLanguage('it');\n * <Chat client={chatClient} i18nInstance={i18n}>\n * ...\n * </Chat>\n * ```\n */\n i18nInstance?: Streami18n;\n /**\n * You can pass the theme object to customize the styles of Chat components. You can check the default theme in [theme.ts](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/contexts/themeContext/utils/theme.ts)\n *\n * Please check section about [themes in cookbook](https://github.com/GetStream/stream-chat-react-native/wiki/Cookbook-v3.0#theme) for details.\n *\n * ```\n * import type { DeepPartial, Theme } from 'stream-chat-react-native';\n *\n * const theme: DeepPartial<Theme> = {\n * messageSimple: {\n * file: {\n * container: {\n * backgroundColor: 'red',\n * },\n * icon: {\n * height: 16,\n * width: 16,\n * },\n * },\n * },\n * };\n *\n * <Chat style={theme}>\n * </Chat>\n * ```\n *\n * @overrideType object\n */\n style?: DeepPartial<Theme>;\n };\n\nconst ChatWithContext = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n props: PropsWithChildren<ChatProps<StreamChatGenerics>>,\n) => {\n const {\n children,\n client,\n closeConnectionOnBackground = true,\n enableOfflineSupport = false,\n i18nInstance,\n ImageComponent = Image,\n style,\n } = props;\n\n const [channel, setChannel] = useState<Channel<StreamChatGenerics>>();\n\n // Setup translators\n const translators = useStreami18n(i18nInstance);\n\n /**\n * Setup connection event listeners\n */\n const { connectionRecovering, isOnline } = useIsOnline<StreamChatGenerics>(\n client,\n closeConnectionOnBackground,\n );\n\n const [initialisedDatabase, setInitialisedDatabase] = useState(false);\n\n /**\n * Setup muted user listener\n * TODO: reimplement\n */\n const mutedUsers = useMutedUsers<StreamChatGenerics>(client);\n\n const debugRef = useDebugContext();\n const isDebugModeEnabled = __DEV__ && debugRef && debugRef.current;\n\n useEffect(() => {\n if (client) {\n client.setUserAgent(`${SDK}-${Platform.OS}-${version}`);\n // This is to disable recovery related logic in js client, since we handle it in this SDK\n client.recoverStateOnReconnect = false;\n client.persistUserOnConnectionFailure = enableOfflineSupport;\n }\n\n if (isDebugModeEnabled) {\n if (debugRef.current.setEventType) debugRef.current.setEventType('send');\n if (debugRef.current.setSendEventParams)\n debugRef.current.setSendEventParams({\n action: 'Client',\n data: client.user,\n });\n }\n }, [client, enableOfflineSupport]);\n\n const setActiveChannel = (newChannel?: Channel<StreamChatGenerics>) => setChannel(newChannel);\n\n useEffect(() => {\n if (client.user?.id && enableOfflineSupport) {\n setInitialisedDatabase(false);\n QuickSqliteClient.initializeDatabase();\n DBSyncManager.init(client as unknown as StreamChat);\n setInitialisedDatabase(true);\n }\n }, [client?.user?.id, enableOfflineSupport]);\n\n const appSettings = useAppSettings(client, isOnline, enableOfflineSupport, initialisedDatabase);\n\n const chatContext = useCreateChatContext({\n appSettings,\n channel,\n client,\n connectionRecovering,\n enableOfflineSupport,\n ImageComponent,\n isOnline,\n mutedUsers,\n setActiveChannel,\n });\n\n useSyncDatabase({\n client,\n enableOfflineSupport,\n });\n\n return (\n <ChatProvider<StreamChatGenerics> value={chatContext}>\n <TranslationProvider\n value={{ ...translators, userLanguage: client.user?.language || DEFAULT_USER_LANGUAGE }}\n >\n <ThemeProvider style={style}>\n <ChannelsStateProvider<StreamChatGenerics>>{children}</ChannelsStateProvider>\n </ThemeProvider>\n </TranslationProvider>\n </ChatProvider>\n );\n};\n\n/**\n * Chat - Wrapper component for Chat. The needs to be placed around any other chat components.\n * This Chat component provides the ChatContext to all other components.\n *\n * The ChatContext provides the following props:\n *\n * - channel - currently active channel\n * - client - client connection\n * - connectionRecovering - whether or not websocket is reconnecting\n * - isOnline - whether or not set user is active\n * - setActiveChannel - function to set the currently active channel\n *\n * The Chat Component takes the following generics in order:\n * - At (AttachmentType) - custom Attachment object extension\n * - Ct (ChannelType) - custom Channel object extension\n * - Co (CommandType) - custom Command string union extension\n * - Ev (EventType) - custom Event object extension\n * - Me (MessageType) - custom Message object extension\n * - Re (ReactionType) - custom Reaction object extension\n * - Us (UserType) - custom User object extension\n */\nexport const Chat = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n props: PropsWithChildren<ChatProps<StreamChatGenerics>>,\n) => {\n const { style } = useOverlayContext();\n\n return <ChatWithContext {...{ style }} {...props} />;\n};\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA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atContext","_useIsOnline2","_useMutedUsers","_useSyncDatabase","_ChannelsStateContext","_ChatContext","_DebugContext","_OverlayContext","_ThemeContext","_TranslationContext","_useStreami18n","_init","_interopRequireDefault","_native","_QuickSqliteClient","_DBSyncManager","_version","_this","_jsxFileName","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","init","ChatWithContext","props","_client$user2","_client$user3","children","client","_props$closeConnectio","closeConnectionOnBackground","_props$enableOfflineS","enableOfflineSupport","i18nInstance","_props$ImageComponent","ImageComponent","Image","style","_useState","useState","_useState2","_slicedToArray2","channel","setChannel","translators","useStreami18n","_useIsOnline","useIsOnline","connectionRecovering","isOnline","_useState3","_useState4","initialisedDatabase","setInitialisedDatabase","mutedUsers","useMutedUsers","debugRef","useDebugContext","isDebugModeEnabled","__DEV__","current","useEffect","setUserAgent","SDK","Platform","OS","version","recoverStateOnReconnect","persistUserOnConnectionFailure","setEventType","setSendEventParams","action","data","user","setActiveChannel","newChannel","_client$user","id","QuickSqliteClient","initializeDatabase","DBSyncManager","appSettings","useAppSettings","chatContext","useCreateChatContext","useSyncDatabase","createElement","ChatProvider","value","__self","__source","fileName","lineNumber","columnNumber","TranslationProvider","_extends2","userLanguage","language","DEFAULT_USER_LANGUAGE","ThemeProvider","ChannelsStateProvider","Chat","_useOverlayContext","useOverlayContext","exports"],"sources":["Chat.tsx"],"sourcesContent":["import React, { PropsWithChildren, useEffect, useState } from 'react';\nimport { Image, Platform } from 'react-native';\n\nimport type { Channel, StreamChat } from 'stream-chat';\n\nimport { useAppSettings } from './hooks/useAppSettings';\nimport { useCreateChatContext } from './hooks/useCreateChatContext';\nimport { useIsOnline } from './hooks/useIsOnline';\nimport { useMutedUsers } from './hooks/useMutedUsers';\n\nimport { useSyncDatabase } from './hooks/useSyncDatabase';\n\nimport { ChannelsStateProvider } from '../../contexts/channelsStateContext/ChannelsStateContext';\nimport { ChatContextValue, ChatProvider } from '../../contexts/chatContext/ChatContext';\nimport { useDebugContext } from '../../contexts/debugContext/DebugContext';\nimport { useOverlayContext } from '../../contexts/overlayContext/OverlayContext';\nimport { DeepPartial, ThemeProvider } from '../../contexts/themeContext/ThemeContext';\nimport type { Theme } from '../../contexts/themeContext/utils/theme';\nimport {\n DEFAULT_USER_LANGUAGE,\n TranslationProvider,\n} from '../../contexts/translationContext/TranslationContext';\nimport { useStreami18n } from '../../hooks/useStreami18n';\nimport init from '../../init';\n\nimport { SDK } from '../../native';\nimport { QuickSqliteClient } from '../../store/QuickSqliteClient';\nimport type { DefaultStreamChatGenerics } from '../../types/types';\nimport { DBSyncManager } from '../../utils/DBSyncManager';\nimport type { Streami18n } from '../../utils/Streami18n';\nimport { version } from '../../version.json';\n\ninit();\n\nexport type ChatProps<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = Pick<ChatContextValue<StreamChatGenerics>, 'client'> &\n Partial<Pick<ChatContextValue<StreamChatGenerics>, 'ImageComponent'>> & {\n /**\n * When false, ws connection won't be disconnection upon backgrounding the app.\n * To receive push notifications, its necessary that user doesn't have active\n * websocket connection. So by default, we disconnect websocket connection when\n * app goes to background, and reconnect when app comes to foreground.\n */\n closeConnectionOnBackground?: boolean;\n /**\n * Enables offline storage and loading for chat data.\n */\n enableOfflineSupport?: boolean;\n /**\n * Instance of Streami18n class should be provided to Chat component to enable internationalization.\n *\n * Stream provides following list of in-built translations:\n * 1. English (en)\n * 2. Dutch (nl)\n * 3. ...\n * 4. ...\n *\n * Simplest way to start using chat components in one of the in-built languages would be following:\n *\n * ```\n * const i18n = new Streami18n('nl');\n * <Chat client={chatClient} i18nInstance={i18n}>\n * ...\n * </Chat>\n * ```\n *\n * If you would like to override certain keys in in-built translation.\n * UI will be automatically updated in this case.\n *\n * ```\n * const i18n = new Streami18n('nl');\n *\n * i18n.registerTranslation('nl', {\n * 'Nothing yet...': 'Nog Niet ...',\n * '{{ firstUser }} and {{ secondUser }} are typing...': '{{ firstUser }} en {{ secondUser }} zijn aan het typen...',\n * });\n *\n * <Chat client={chatClient} i18nInstance={i18n}>\n * ...\n * </Chat>\n * ```\n *\n * You can use the same function to add whole new language.\n *\n * ```\n * const i18n = new Streami18n('it');\n *\n * i18n.registerTranslation('it', {\n * 'Nothing yet...': 'Non ancora ...',\n * '{{ firstUser }} and {{ secondUser }} are typing...': '{{ firstUser }} a {{ secondUser }} stanno scrivendo...',\n * });\n *\n * // Make sure to call setLanguage to reflect new language in UI.\n * i18n.setLanguage('it');\n * <Chat client={chatClient} i18nInstance={i18n}>\n * ...\n * </Chat>\n * ```\n */\n i18nInstance?: Streami18n;\n /**\n * You can pass the theme object to customize the styles of Chat components. You can check the default theme in [theme.ts](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/contexts/themeContext/utils/theme.ts)\n *\n * Please check section about [themes in cookbook](https://github.com/GetStream/stream-chat-react-native/wiki/Cookbook-v3.0#theme) for details.\n *\n * ```\n * import type { DeepPartial, Theme } from 'stream-chat-react-native';\n *\n * const theme: DeepPartial<Theme> = {\n * messageSimple: {\n * file: {\n * container: {\n * backgroundColor: 'red',\n * },\n * icon: {\n * height: 16,\n * width: 16,\n * },\n * },\n * },\n * };\n *\n * <Chat style={theme}>\n * </Chat>\n * ```\n *\n * @overrideType object\n */\n style?: DeepPartial<Theme>;\n };\n\nconst ChatWithContext = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n props: PropsWithChildren<ChatProps<StreamChatGenerics>>,\n) => {\n const {\n children,\n client,\n closeConnectionOnBackground = true,\n enableOfflineSupport = false,\n i18nInstance,\n ImageComponent = Image,\n style,\n } = props;\n\n const [channel, setChannel] = useState<Channel<StreamChatGenerics>>();\n\n // Setup translators\n const translators = useStreami18n(i18nInstance);\n\n /**\n * Setup connection event listeners\n */\n const { connectionRecovering, isOnline } = useIsOnline<StreamChatGenerics>(\n client,\n closeConnectionOnBackground,\n );\n\n const [initialisedDatabase, setInitialisedDatabase] = useState(false);\n\n /**\n * Setup muted user listener\n * TODO: reimplement\n */\n const mutedUsers = useMutedUsers<StreamChatGenerics>(client);\n\n const debugRef = useDebugContext();\n const isDebugModeEnabled = __DEV__ && debugRef && debugRef.current;\n\n useEffect(() => {\n if (client) {\n client.setUserAgent(`${SDK}-${Platform.OS}-${version}`);\n // This is to disable recovery related logic in js client, since we handle it in this SDK\n client.recoverStateOnReconnect = false;\n client.persistUserOnConnectionFailure = enableOfflineSupport;\n }\n\n if (isDebugModeEnabled) {\n if (debugRef.current.setEventType) debugRef.current.setEventType('send');\n if (debugRef.current.setSendEventParams)\n debugRef.current.setSendEventParams({\n action: 'Client',\n data: client.user,\n });\n }\n }, [client, enableOfflineSupport]);\n\n const setActiveChannel = (newChannel?: Channel<StreamChatGenerics>) => setChannel(newChannel);\n\n useEffect(() => {\n if (client.user?.id && enableOfflineSupport) {\n setInitialisedDatabase(false);\n QuickSqliteClient.initializeDatabase();\n DBSyncManager.init(client as unknown as StreamChat);\n setInitialisedDatabase(true);\n }\n }, [client?.user?.id, enableOfflineSupport]);\n\n const appSettings = useAppSettings(client, isOnline, enableOfflineSupport, initialisedDatabase);\n\n const chatContext = useCreateChatContext({\n appSettings,\n channel,\n client,\n connectionRecovering,\n enableOfflineSupport,\n ImageComponent,\n isOnline,\n mutedUsers,\n setActiveChannel,\n });\n\n useSyncDatabase({\n client,\n enableOfflineSupport,\n initialisedDatabase,\n });\n\n if (enableOfflineSupport && !initialisedDatabase) {\n return null;\n }\n\n return (\n <ChatProvider<StreamChatGenerics> value={chatContext}>\n <TranslationProvider\n value={{ ...translators, userLanguage: client.user?.language || DEFAULT_USER_LANGUAGE }}\n >\n <ThemeProvider style={style}>\n <ChannelsStateProvider<StreamChatGenerics>>{children}</ChannelsStateProvider>\n </ThemeProvider>\n </TranslationProvider>\n </ChatProvider>\n );\n};\n\n/**\n * Chat - Wrapper component for Chat. The needs to be placed around any other chat components.\n * This Chat component provides the ChatContext to all other components.\n *\n * The ChatContext provides the following props:\n *\n * - channel - currently active channel\n * - client - client connection\n * - connectionRecovering - whether or not websocket is reconnecting\n * - isOnline - whether or not set user is active\n * - setActiveChannel - function to set the currently active channel\n *\n * The Chat Component takes the following generics in order:\n * - At (AttachmentType) - custom Attachment object extension\n * - Ct (ChannelType) - custom Channel object extension\n * - Co (CommandType) - custom Command string union extension\n * - Ev (EventType) - custom Event object extension\n * - Me (MessageType) - custom Message object extension\n * - Re (ReactionType) - custom Reaction object extension\n * - Us (UserType) - custom User object extension\n */\nexport const Chat = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n props: PropsWithChildren<ChatProps<StreamChatGenerics>>,\n) => {\n const { style } = useOverlayContext();\n\n return <ChatWithContext {...{ style }} {...props} />;\n};\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAIA,IAAAE,eAAA,GAAAF,OAAA;AACA,IAAAG,qBAAA,GAAAH,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;AACA,IAAAK,cAAA,GAAAL,OAAA;AAEA,IAAAM,gBAAA,GAAAN,OAAA;AAEA,IAAAO,qBAAA,GAAAP,OAAA;AACA,IAAAQ,YAAA,GAAAR,OAAA;AACA,IAAAS,aAAA,GAAAT,OAAA;AACA,IAAAU,eAAA,GAAAV,OAAA;AACA,IAAAW,aAAA,GAAAX,OAAA;AAEA,IAAAY,mBAAA,GAAAZ,OAAA;AAIA,IAAAa,cAAA,GAAAb,OAAA;AACA,IAAAc,KAAA,GAAAC,sBAAA,CAAAf,OAAA;AAEA,IAAAgB,OAAA,GAAAhB,OAAA;AACA,IAAAiB,kBAAA,GAAAjB,OAAA;AAEA,IAAAkB,cAAA,GAAAlB,OAAA;AAEA,IAAAmB,QAAA,GAAAnB,OAAA;AAA6C,IA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1BrH,MAAA,YAAA8G,aAAA,CAACrG,qBAAA,CAAAmH,qBAAqB;IAAAX,MAAA,EAAA3F,KAAA;IAAA4F,QAAA;MAAAC,QAAA,EAAA5F,YAAA;MAAA6F,UAAA;MAAAC,YAAA;IAAA;EAAA,GAAsBlE,QAAgC,CAC/D,CACI,CACT,CAAC;AAEnB,CAAC;AAuBM,IAAM0E,IAAI,GAAG,SAAPA,IAAIA,CAGf7E,KAAuD,EACpD;EACH,IAAA8E,kBAAA,GAAkB,IAAAC,iCAAiB,EAAC,CAAC;IAA7BlE,KAAK,GAAAiE,kBAAA,CAALjE,KAAK;EAEb,OAAO7D,MAAA,YAAA8G,aAAA,CAAC/D,eAAe,MAAAwE,SAAA;IAAO1D,KAAK,EAALA;EAAK,GAAQb,KAAK;IAAAiE,MAAA,EAAA3F,KAAA;IAAA4F,QAAA;MAAAC,QAAA,EAAA5F,YAAA;MAAA6F,UAAA;MAAAC,YAAA;IAAA;EAAA,EAAG,CAAC;AACtD,CAAC;AAACW,OAAA,CAAAH,IAAA,GAAAA,IAAA"}
@@ -6,17 +6,18 @@ var _react = require("react");
6
6
  var _handleEventToSyncDB = require("./handleEventToSyncDB");
7
7
  var useSyncDatabase = function useSyncDatabase(_ref) {
8
8
  var client = _ref.client,
9
- enableOfflineSupport = _ref.enableOfflineSupport;
9
+ enableOfflineSupport = _ref.enableOfflineSupport,
10
+ initialisedDatabase = _ref.initialisedDatabase;
10
11
  (0, _react.useEffect)(function () {
11
12
  var listener;
12
- if (enableOfflineSupport) {
13
+ if (enableOfflineSupport && initialisedDatabase) {
13
14
  listener = client == null ? void 0 : client.on(_handleEventToSyncDB.handleEventToSyncDB);
14
15
  }
15
16
  return function () {
16
17
  var _listener;
17
18
  (_listener = listener) == null ? void 0 : _listener.unsubscribe();
18
19
  };
19
- }, [client]);
20
+ }, [client, initialisedDatabase]);
20
21
  };
21
22
  exports.useSyncDatabase = useSyncDatabase;
22
23
  //# sourceMappingURL=useSyncDatabase.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_handleEventToSyncDB","useSyncDatabase","_ref","client","enableOfflineSupport","useEffect","listener","on","handleEventToSyncDB","_listener","unsubscribe","exports"],"sources":["useSyncDatabase.ts"],"sourcesContent":["import { useEffect } from 'react';\n\nimport type { StreamChat } from 'stream-chat';\n\nimport { handleEventToSyncDB } from './handleEventToSyncDB';\n\nimport type { DefaultStreamChatGenerics } from '../../../types/types';\n\ntype Params<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {\n client: StreamChat<StreamChatGenerics>;\n enableOfflineSupport: boolean;\n};\nexport const useSyncDatabase = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>({\n client,\n enableOfflineSupport,\n}: Params<StreamChatGenerics>) => {\n useEffect(() => {\n let listener: ReturnType<StreamChat['on']> | undefined;\n\n if (enableOfflineSupport) {\n listener = client?.on(handleEventToSyncDB);\n }\n\n return () => {\n listener?.unsubscribe();\n };\n }, [client]);\n};\n"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAIA,IAAAC,oBAAA,GAAAD,OAAA;AAQO,IAAME,eAAe,GAAG,SAAlBA,eAAeA,CAAAC,IAAA,EAKM;EAAA,IAFhCC,MAAM,GAAAD,IAAA,CAANC,MAAM;IACNC,oBAAoB,GAAAF,IAAA,CAApBE,oBAAoB;EAEpB,IAAAC,gBAAS,EAAC,YAAM;IACd,IAAIC,QAAkD;IAEtD,IAAIF,oBAAoB,EAAE;MACxBE,QAAQ,GAAGH,MAAM,oBAANA,MAAM,CAAEI,EAAE,CAACC,wCAAmB,CAAC;IAC5C;IAEA,OAAO,YAAM;MAAA,IAAAC,SAAA;MACX,CAAAA,SAAA,GAAAH,QAAQ,qBAARG,SAAA,CAAUC,WAAW,CAAC,CAAC;IACzB,CAAC;EACH,CAAC,EAAE,CAACP,MAAM,CAAC,CAAC;AACd,CAAC;AAACQ,OAAA,CAAAV,eAAA,GAAAA,eAAA"}
1
+ {"version":3,"names":["_react","require","_handleEventToSyncDB","useSyncDatabase","_ref","client","enableOfflineSupport","initialisedDatabase","useEffect","listener","on","handleEventToSyncDB","_listener","unsubscribe","exports"],"sources":["useSyncDatabase.ts"],"sourcesContent":["import { useEffect } from 'react';\n\nimport type { StreamChat } from 'stream-chat';\n\nimport { handleEventToSyncDB } from './handleEventToSyncDB';\n\nimport type { DefaultStreamChatGenerics } from '../../../types/types';\n\ntype Params<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {\n client: StreamChat<StreamChatGenerics>;\n enableOfflineSupport: boolean;\n initialisedDatabase: boolean;\n};\nexport const useSyncDatabase = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>({\n client,\n enableOfflineSupport,\n initialisedDatabase,\n}: Params<StreamChatGenerics>) => {\n useEffect(() => {\n let listener: ReturnType<StreamChat['on']> | undefined;\n\n if (enableOfflineSupport && initialisedDatabase) {\n listener = client?.on(handleEventToSyncDB);\n }\n\n return () => {\n listener?.unsubscribe();\n };\n }, [client, initialisedDatabase]);\n};\n"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAIA,IAAAC,oBAAA,GAAAD,OAAA;AASO,IAAME,eAAe,GAAG,SAAlBA,eAAeA,CAAAC,IAAA,EAMM;EAAA,IAHhCC,MAAM,GAAAD,IAAA,CAANC,MAAM;IACNC,oBAAoB,GAAAF,IAAA,CAApBE,oBAAoB;IACpBC,mBAAmB,GAAAH,IAAA,CAAnBG,mBAAmB;EAEnB,IAAAC,gBAAS,EAAC,YAAM;IACd,IAAIC,QAAkD;IAEtD,IAAIH,oBAAoB,IAAIC,mBAAmB,EAAE;MAC/CE,QAAQ,GAAGJ,MAAM,oBAANA,MAAM,CAAEK,EAAE,CAACC,wCAAmB,CAAC;IAC5C;IAEA,OAAO,YAAM;MAAA,IAAAC,SAAA;MACX,CAAAA,SAAA,GAAAH,QAAQ,qBAARG,SAAA,CAAUC,WAAW,CAAC,CAAC;IACzB,CAAC;EACH,CAAC,EAAE,CAACR,MAAM,EAAEE,mBAAmB,CAAC,CAAC;AACnC,CAAC;AAACO,OAAA,CAAAX,eAAA,GAAAA,eAAA"}
@@ -26,7 +26,7 @@
26
26
  "File type not supported": "File type not supported",
27
27
  "Flag": "Flag",
28
28
  "Flag Message": "Flag Message",
29
- "Flag action failed either due to a network issue or the message is already flagged": "Flag action failed either due to a network issue or the message is already flagged.",
29
+ "Flag action failed either due to a network issue or the message is already flagged": "Flag action failed either due to a network issue or the message is already flagged",
30
30
  "How about sending your first message to a friend?": "How about sending your first message to a friend?",
31
31
  "Instant Commands": "Instant Commands",
32
32
  "Let's start chatting!": "Let's start chatting!",
@@ -1,79 +1,79 @@
1
1
  {
2
- "1 Reply": "",
3
- "1 Thread Reply": "",
4
- "Allow access to your Gallery": "",
5
- "Allow camera access in device settings": "",
2
+ "1 Reply": "1 respuesta",
3
+ "1 Thread Reply": "1 respuesta de hilo",
4
+ "Allow access to your Gallery": "Permitir acceso a tu galería",
5
+ "Allow camera access in device settings": "Permitir el acceso a la cámara en la configuración del dispositivo",
6
6
  "Also send to channel": "También enviar al canal",
7
- "Are you sure you want to permanently delete this message?": "¿Estás seguro de que deseas eliminar permanentemente este mensaje?",
7
+ "Are you sure you want to permanently delete this message?": "",
8
8
  "Are you sure?": "",
9
- "Block User": "Bloquear usuario",
10
- "Cancel": "Cancelar",
11
- "Cannot Flag Message": "No se puede reportar el mensaje",
9
+ "Block User": "",
10
+ "Cancel": "",
11
+ "Cannot Flag Message": "",
12
12
  "Consider how your comment might make others feel and be sure to follow our Community Guidelines": "",
13
- "Copy Message": "Copiar mensaje",
14
- "Delete": "Eliminar",
15
- "Delete Message": "Eliminar mensaje",
16
- "Device camera is used to take photos or videos.": "",
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
- "Edit Message": "Editar mensaje",
13
+ "Copy Message": "",
14
+ "Delete": "",
15
+ "Delete Message": "",
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
+ "Do you want to send a copy of this message to a moderator for further investigation?": "",
18
+ "Edit Message": "",
19
19
  "Editing Message": "",
20
- "Emoji matching": "Coincidencia de emoji",
20
+ "Emoji matching": "",
21
21
  "Empty message...": "",
22
22
  "Error loading": "",
23
23
  "Error loading channel list...": "",
24
24
  "Error loading messages for this channel...": "",
25
25
  "Error while loading, please reload/refresh": "",
26
26
  "File type not supported": "",
27
- "Flag": "Reportar",
28
- "Flag Message": "Reportar mensaje",
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.",
27
+ "Flag": "",
28
+ "Flag Message": "",
29
+ "Flag action failed either due to a network issue or the message is already flagged": "",
30
30
  "How about sending your first message to a friend?": "",
31
- "Instant Commands": "Comandos instantáneos",
31
+ "Instant Commands": "",
32
32
  "Let's start chatting!": "",
33
33
  "Links are disabled": "Los enlaces están desactivados",
34
34
  "Loading channels...": "",
35
35
  "Loading messages...": "",
36
36
  "Loading...": "",
37
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",
38
+ "Message Reactions": "",
39
39
  "Message deleted": "",
40
- "Message flagged": "Mensaje reportado",
41
- "Mute User": "Silenciar usuario",
40
+ "Message flagged": "",
41
+ "Mute User": "",
42
42
  "Not supported": "",
43
43
  "Nothing yet...": "",
44
- "Ok": "Aceptar",
45
- "Only visible to you": "",
46
- "Open Settings": "",
47
- "Photo": "Foto",
48
- "Photos and Videos": "",
49
- "Pin to Conversation": "Fijar a la conversación",
50
- "Pinned by": "",
51
- "Please enable access to your photos and videos so you can share them.": "",
44
+ "Ok": "",
45
+ "Only visible to you": "Solo visible para ti",
46
+ "Open Settings": "Configuración abierta",
47
+ "Photo": "",
48
+ "Photos and Videos": "Fotos y videos",
49
+ "Pin to Conversation": "",
50
+ "Pinned by": "Fijado por",
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
52
  "Please select a channel first": "Por favor, selecciona primero un canal",
53
53
  "Reconnecting...": "",
54
- "Reply": "Responder",
54
+ "Reply": "",
55
55
  "Reply to Message": "",
56
- "Resend": "Reenviar",
56
+ "Resend": "",
57
57
  "Search GIFs": "",
58
- "Select More Photos": "",
58
+ "Select More Photos": "Seleccionar más fotos",
59
59
  "Send Anyway": "",
60
60
  "Send a message": "",
61
61
  "Sending links is not allowed in this conversation": "No está permitido enviar enlaces en esta conversación",
62
62
  "Slow mode ON": "",
63
- "The message has been reported to a moderator.": "El mensaje ha sido reportado a un moderador.",
64
- "Thread Reply": "Respuesta de hilo",
65
- "Unblock User": "Desbloquear usuario",
66
- "Unknown User": "",
67
- "Unmute User": "Activar sonido del usuario",
68
- "Unpin from Conversation": "Desmarcar de la conversación",
69
- "Unread Messages": "Mensajes no leídos",
70
- "Video": "Video",
63
+ "The message has been reported to a moderator.": "",
64
+ "Thread Reply": "",
65
+ "Unblock User": "",
66
+ "Unknown User": "Usuario desconocido",
67
+ "Unmute User": "",
68
+ "Unpin from Conversation": "",
69
+ "Unread Messages": "",
70
+ "Video": "",
71
71
  "You": "",
72
72
  "You can't send messages in this channel": "No puedes enviar mensajes en este canal",
73
73
  "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
74
- "{{ index }} of {{ photoLength }}": "",
75
- "{{ replyCount }} Replies": "",
76
- "{{ replyCount }} Thread Replies": "",
74
+ "{{ index }} of {{ photoLength }}": "{{ index }} de {{ photoLength }}",
75
+ "{{ replyCount }} Replies": "{{ replyCount }} Respuestas",
76
+ "{{ replyCount }} Thread Replies": "{{ replyCount }} respuestas de hilo",
77
77
  "{{ user }} is typing": "",
78
78
  "🏙 Attachment...": ""
79
79
  }
@@ -1,79 +1,79 @@
1
1
  {
2
- "1 Reply": "",
3
- "1 Thread Reply": "",
4
- "Allow access to your Gallery": "",
5
- "Allow camera access in device settings": "",
2
+ "1 Reply": "1 Réponse",
3
+ "1 Thread Reply": "Réponse à 1 fil",
4
+ "Allow access to your Gallery": "Autoriser l'accès à votre galerie",
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": "Envoyer également à la chaîne",
7
- "Are you sure you want to permanently delete this message?": "Êtes-vous sûr de vouloir supprimer définitivement ce message?",
7
+ "Are you sure you want to permanently delete this message?": "",
8
8
  "Are you sure?": "",
9
- "Block User": "Bloquer un utilisateur",
10
- "Cancel": "Annuler",
11
- "Cannot Flag Message": "Impossible de signaler le message",
9
+ "Block User": "",
10
+ "Cancel": "",
11
+ "Cannot Flag Message": "",
12
12
  "Consider how your comment might make others feel and be sure to follow our Community Guidelines": "",
13
- "Copy Message": "Copier le message",
14
- "Delete": "Supprimer",
15
- "Delete Message": "Supprimer un message",
16
- "Device camera is used to take photos or videos.": "",
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
- "Edit Message": "Éditer un message",
13
+ "Copy Message": "",
14
+ "Delete": "",
15
+ "Delete Message": "",
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
+ "Do you want to send a copy of this message to a moderator for further investigation?": "",
18
+ "Edit Message": "",
19
19
  "Editing Message": "",
20
- "Emoji matching": "Correspondance Emoji",
20
+ "Emoji matching": "",
21
21
  "Empty message...": "",
22
22
  "Error loading": "",
23
23
  "Error loading channel list...": "",
24
24
  "Error loading messages for this channel...": "",
25
25
  "Error while loading, please reload/refresh": "",
26
26
  "File type not supported": "",
27
- "Flag": "Signaler",
28
- "Flag Message": "Signaler le message",
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é.",
27
+ "Flag": "",
28
+ "Flag Message": "",
29
+ "Flag action failed either due to a network issue or the message is already flagged": "",
30
30
  "How about sending your first message to a friend?": "",
31
- "Instant Commands": "Commandes Instantanées",
31
+ "Instant Commands": "",
32
32
  "Let's start chatting!": "",
33
33
  "Links are disabled": "Links are disabled",
34
34
  "Loading channels...": "",
35
35
  "Loading messages...": "",
36
36
  "Loading...": "",
37
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",
38
+ "Message Reactions": "",
39
39
  "Message deleted": "",
40
- "Message flagged": "Message signalé",
41
- "Mute User": "Utilisateur muet",
40
+ "Message flagged": "",
41
+ "Mute User": "",
42
42
  "Not supported": "",
43
43
  "Nothing yet...": "",
44
- "Ok": "Ok",
45
- "Only visible to you": "",
46
- "Open Settings": "",
47
- "Photo": "Photo",
48
- "Photos and Videos": "",
49
- "Pin to Conversation": "Épingler à la conversation",
50
- "Pinned by": "",
51
- "Please enable access to your photos and videos so you can share them.": "",
44
+ "Ok": "",
45
+ "Only visible to you": "Seulement visible par vous",
46
+ "Open Settings": "Ouvrir les paramètres",
47
+ "Photo": "",
48
+ "Photos and Videos": "Photos et vidéos",
49
+ "Pin to Conversation": "",
50
+ "Pinned by": "Épinglé par",
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
52
  "Please select a channel first": "Veuillez d'abord selectionnez un canal",
53
53
  "Reconnecting...": "",
54
- "Reply": "Répondre",
54
+ "Reply": "",
55
55
  "Reply to Message": "",
56
- "Resend": "Renvoyer",
56
+ "Resend": "",
57
57
  "Search GIFs": "",
58
- "Select More Photos": "",
58
+ "Select More Photos": "Sélectionner plus de photos",
59
59
  "Send Anyway": "",
60
60
  "Send a message": "",
61
61
  "Sending links is not allowed in this conversation": "Sending links is not allowed in this conversation",
62
62
  "Slow mode ON": "",
63
- "The message has been reported to a moderator.": "Le message a été signalé à un modérateur.",
64
- "Thread Reply": "Réponse à la discussion",
65
- "Unblock User": "Débloquer Utilisateur",
66
- "Unknown User": "",
67
- "Unmute User": "Activer le son de Utilisateur",
68
- "Unpin from Conversation": "Décrocher de la conversation",
69
- "Unread Messages": "Messages non lus",
70
- "Video": "Vidéo",
63
+ "The message has been reported to a moderator.": "",
64
+ "Thread Reply": "",
65
+ "Unblock User": "",
66
+ "Unknown User": "Utilisateur inconnu",
67
+ "Unmute User": "",
68
+ "Unpin from Conversation": "",
69
+ "Unread Messages": "",
70
+ "Video": "",
71
71
  "You": "",
72
72
  "You can't send messages in this channel": "You can't send messages in this channel",
73
73
  "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
74
- "{{ index }} of {{ photoLength }}": "",
75
- "{{ replyCount }} Replies": "",
76
- "{{ replyCount }} Thread Replies": "",
74
+ "{{ index }} of {{ photoLength }}": "{{ index }} sur {{ photoLength }}",
75
+ "{{ replyCount }} Replies": "{{ replyCount }} Réponses",
76
+ "{{ replyCount }} Thread Replies": "{{replyCount}} Réponses à la discussion",
77
77
  "{{ user }} is typing": "",
78
78
  "🏙 Attachment...": ""
79
79
  }
@@ -1,79 +1,79 @@
1
1
  {
2
- "1 Reply": "",
3
- "1 Thread Reply": "",
4
- "Allow access to your Gallery": "",
5
- "Allow camera access in device settings": "",
2
+ "1 Reply": "תגובה אחת",
3
+ "1 Thread Reply": "תגובה אחת לשרשור",
4
+ "Allow access to your Gallery": "אפשר גישה לגלריה שלך",
5
+ "Allow camera access in device settings": "אפשר גישה למצלמה בהגדרות המכשיר",
6
6
  "Also send to channel": "שלח/י הודעה לשיחה",
7
- "Are you sure you want to permanently delete this message?": "האם את/ה בטוח/ה שאת/ה רוצה למחוק את ההודעה הזו לצמיתות?",
7
+ "Are you sure you want to permanently delete this message?": "",
8
8
  "Are you sure?": "",
9
- "Block User": "חסום משתמש",
10
- "Cancel": "ביטול",
11
- "Cannot Flag Message": "סימון הודעה לא אפשרי",
9
+ "Block User": "",
10
+ "Cancel": "",
11
+ "Cannot Flag Message": "",
12
12
  "Consider how your comment might make others feel and be sure to follow our Community Guidelines": "",
13
- "Copy Message": "העתק/י הודעה",
14
- "Delete": "מחק",
15
- "Delete Message": "מחק/י הודעה",
16
- "Device camera is used to take photos or videos.": "",
17
- "Do you want to send a copy of this message to a moderator for further investigation?": "האם את/ה רוצה לשלוח עותק של הודעה זו למנחה להמשך חקירה?",
18
- "Edit Message": "ערוך הודעה",
13
+ "Copy Message": "",
14
+ "Delete": "",
15
+ "Delete Message": "",
16
+ "Device camera is used to take photos or videos.": "מצלמת המכשיר משמשת לצילום תמונות או סרטונים.",
17
+ "Do you want to send a copy of this message to a moderator for further investigation?": "",
18
+ "Edit Message": "",
19
19
  "Editing Message": "",
20
- "Emoji matching": "התאמת אמוג'י",
20
+ "Emoji matching": "",
21
21
  "Empty message...": "",
22
22
  "Error loading": "",
23
23
  "Error loading channel list...": "",
24
24
  "Error loading messages for this channel...": "",
25
25
  "Error while loading, please reload/refresh": "",
26
26
  "File type not supported": "",
27
- "Flag": "סמן",
28
- "Flag Message": "סמן הודעה",
29
- "Flag action failed either due to a network issue or the message is already flagged": "פעולת הסימון נכשלה בגלל בעיית רשת או שההודעה כבר סומנה.",
27
+ "Flag": "",
28
+ "Flag Message": "",
29
+ "Flag action failed either due to a network issue or the message is already flagged": "",
30
30
  "How about sending your first message to a friend?": "",
31
- "Instant Commands": "פעולות מיידיות",
31
+ "Instant Commands": "",
32
32
  "Let's start chatting!": "",
33
33
  "Links are disabled": "הקישורים מבוטלים",
34
34
  "Loading channels...": "",
35
35
  "Loading messages...": "",
36
36
  "Loading...": "",
37
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": "תגובות להודעה",
38
+ "Message Reactions": "",
39
39
  "Message deleted": "",
40
- "Message flagged": "ההודעה סומנה",
41
- "Mute User": "השתק/י משתמש",
40
+ "Message flagged": "",
41
+ "Mute User": "",
42
42
  "Not supported": "",
43
43
  "Nothing yet...": "",
44
- "Ok": "אוקיי",
45
- "Only visible to you": "",
46
- "Open Settings": "",
47
- "Photo": "תמונה",
48
- "Photos and Videos": "",
49
- "Pin to Conversation": "הצמד/י לשיחה",
50
- "Pinned by": "",
51
- "Please enable access to your photos and videos so you can share them.": "",
44
+ "Ok": "",
45
+ "Only visible to you": "גלוי רק לך",
46
+ "Open Settings": "פתח את ההגדרות",
47
+ "Photo": "",
48
+ "Photos and Videos": "תמונות ווידאו",
49
+ "Pin to Conversation": "",
50
+ "Pinned by": " - הוצמד לשיחה",
51
+ "Please enable access to your photos and videos so you can share them.": "אפשר/י גישה לתמונות ולסרטונים שלך כדי שתוכל/י לשתף אותם.",
52
52
  "Please select a channel first": "אנא בחר/י שיחה תחילה",
53
53
  "Reconnecting...": "",
54
- "Reply": "השב/י",
54
+ "Reply": "",
55
55
  "Reply to Message": "",
56
- "Resend": "שלח/י שוב",
56
+ "Resend": "",
57
57
  "Search GIFs": "",
58
- "Select More Photos": "",
58
+ "Select More Photos": "בחר עוד תמונות",
59
59
  "Send Anyway": "",
60
60
  "Send a message": "",
61
61
  "Sending links is not allowed in this conversation": "שליחת קישורים אינה מותרת בשיחה זו",
62
62
  "Slow mode ON": "",
63
- "The message has been reported to a moderator.": "ההודעה דווחה למנהל",
64
- "Thread Reply": "הגב/י בשרשור",
65
- "Unblock User": "בטל/י חסימת משתמש",
66
- "Unknown User": "",
67
- "Unmute User": "בטל/י השתקת משתמש",
68
- "Unpin from Conversation": "בטל/י הצמדה לשיחה",
69
- "Unread Messages": "הודעות שטרם נקרו",
70
- "Video": "וִידֵאוֹ",
63
+ "The message has been reported to a moderator.": "",
64
+ "Thread Reply": "",
65
+ "Unblock User": "",
66
+ "Unknown User": "משתמש לא ידוע",
67
+ "Unmute User": "",
68
+ "Unpin from Conversation": "",
69
+ "Unread Messages": "",
70
+ "Video": "",
71
71
  "You": "",
72
72
  "You can't send messages in this channel": "את/ב לא יכול/ה לשלוח הודעות בשיחה זו",
73
73
  "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
74
- "{{ index }} of {{ photoLength }}": "",
75
- "{{ replyCount }} Replies": "",
76
- "{{ replyCount }} Thread Replies": "",
74
+ "{{ index }} of {{ photoLength }}": "{{ index }} מתוך {{ photoLength }}",
75
+ "{{ replyCount }} Replies": "{{ replyCount }} תגובות",
76
+ "{{ replyCount }} Thread Replies": "{{ replyCount }} תגובות שרשור",
77
77
  "{{ user }} is typing": "",
78
78
  "🏙 Attachment...": ""
79
79
  }