stream-chat-react-native-core 5.15.3-beta.2 → 5.15.3-beta.4
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.
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessenger.js +35 -14
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessenger.js.map +1 -1
- package/lib/commonjs/components/MessageList/MessageList.js +34 -34
- package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewMessenger.js +35 -14
- package/lib/module/components/ChannelPreview/ChannelPreviewMessenger.js.map +1 -1
- package/lib/module/components/MessageList/MessageList.js +34 -34
- package/lib/module/components/MessageList/MessageList.js.map +1 -1
- package/lib/module/version.json +1 -1
- package/package.json +1 -1
- package/src/components/ChannelPreview/ChannelPreviewMessenger.tsx +12 -2
- package/src/components/MessageList/MessageList.tsx +2 -1
- package/src/version.json +1 -1
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
2
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
2
3
|
Object.defineProperty(exports, "__esModule", {
|
|
3
4
|
value: true
|
|
4
5
|
});
|
|
5
6
|
exports.ChannelPreviewMessenger = void 0;
|
|
6
7
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
7
|
-
var
|
|
8
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
9
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
10
|
var _reactNative = require("react-native");
|
|
9
11
|
var _reactNativeGestureHandler = require("react-native-gesture-handler");
|
|
10
12
|
var _ChannelAvatar = require("./ChannelAvatar");
|
|
@@ -15,10 +17,13 @@ var _ChannelPreviewTitle = require("./ChannelPreviewTitle");
|
|
|
15
17
|
var _ChannelPreviewUnreadCount = require("./ChannelPreviewUnreadCount");
|
|
16
18
|
var _useChannelPreviewDisplayName = require("./hooks/useChannelPreviewDisplayName");
|
|
17
19
|
var _ChannelsContext = require("../../contexts/channelsContext/ChannelsContext");
|
|
20
|
+
var _ChatContext = require("../../contexts/chatContext/ChatContext");
|
|
18
21
|
var _ThemeContext = require("../../contexts/themeContext/ThemeContext");
|
|
19
22
|
var _utils = require("../../utils/utils");
|
|
20
23
|
var _this = this,
|
|
21
24
|
_jsxFileName = "/home/runner/work/stream-chat-react-native/stream-chat-react-native/package/src/components/ChannelPreview/ChannelPreviewMessenger.tsx";
|
|
25
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
26
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
22
27
|
var styles = _reactNative.StyleSheet.create({
|
|
23
28
|
container: {
|
|
24
29
|
borderBottomWidth: 1,
|
|
@@ -76,8 +81,24 @@ var ChannelPreviewMessengerWithContext = function ChannelPreviewMessengerWithCon
|
|
|
76
81
|
_useTheme$theme$color = _useTheme$theme.colors,
|
|
77
82
|
border = _useTheme$theme$color.border,
|
|
78
83
|
white_snow = _useTheme$theme$color.white_snow;
|
|
84
|
+
var _useChatContext = (0, _ChatContext.useChatContext)(),
|
|
85
|
+
client = _useChatContext.client;
|
|
79
86
|
var displayName = (0, _useChannelPreviewDisplayName.useChannelPreviewDisplayName)(channel, Math.floor(maxWidth / ((title.fontSize || styles.title.fontSize) / 2)));
|
|
80
|
-
var
|
|
87
|
+
var _useState = (0, _react.useState)(function () {
|
|
88
|
+
return channel.muteStatus().muted;
|
|
89
|
+
}),
|
|
90
|
+
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
91
|
+
isChannelMuted = _useState2[0],
|
|
92
|
+
setIsChannelMuted = _useState2[1];
|
|
93
|
+
(0, _react.useEffect)(function () {
|
|
94
|
+
var handleEvent = function handleEvent() {
|
|
95
|
+
return setIsChannelMuted(channel.muteStatus().muted);
|
|
96
|
+
};
|
|
97
|
+
client.on('notification.channel_mutes_updated', handleEvent);
|
|
98
|
+
return function () {
|
|
99
|
+
return client.off('notification.channel_mutes_updated', handleEvent);
|
|
100
|
+
};
|
|
101
|
+
}, [client]);
|
|
81
102
|
return _react["default"].createElement(_reactNativeGestureHandler.TouchableOpacity, {
|
|
82
103
|
onPress: function onPress() {
|
|
83
104
|
if (onSelect) {
|
|
@@ -92,7 +113,7 @@ var ChannelPreviewMessengerWithContext = function ChannelPreviewMessengerWithCon
|
|
|
92
113
|
__self: _this,
|
|
93
114
|
__source: {
|
|
94
115
|
fileName: _jsxFileName,
|
|
95
|
-
lineNumber:
|
|
116
|
+
lineNumber: 148,
|
|
96
117
|
columnNumber: 5
|
|
97
118
|
}
|
|
98
119
|
}, _react["default"].createElement(PreviewAvatar, {
|
|
@@ -100,7 +121,7 @@ var ChannelPreviewMessengerWithContext = function ChannelPreviewMessengerWithCon
|
|
|
100
121
|
__self: _this,
|
|
101
122
|
__source: {
|
|
102
123
|
fileName: _jsxFileName,
|
|
103
|
-
lineNumber:
|
|
124
|
+
lineNumber: 161,
|
|
104
125
|
columnNumber: 7
|
|
105
126
|
}
|
|
106
127
|
}), _react["default"].createElement(_reactNative.View, {
|
|
@@ -109,7 +130,7 @@ var ChannelPreviewMessengerWithContext = function ChannelPreviewMessengerWithCon
|
|
|
109
130
|
__self: _this,
|
|
110
131
|
__source: {
|
|
111
132
|
fileName: _jsxFileName,
|
|
112
|
-
lineNumber:
|
|
133
|
+
lineNumber: 162,
|
|
113
134
|
columnNumber: 7
|
|
114
135
|
}
|
|
115
136
|
}, _react["default"].createElement(_reactNative.View, {
|
|
@@ -117,7 +138,7 @@ var ChannelPreviewMessengerWithContext = function ChannelPreviewMessengerWithCon
|
|
|
117
138
|
__self: _this,
|
|
118
139
|
__source: {
|
|
119
140
|
fileName: _jsxFileName,
|
|
120
|
-
lineNumber:
|
|
141
|
+
lineNumber: 166,
|
|
121
142
|
columnNumber: 9
|
|
122
143
|
}
|
|
123
144
|
}, _react["default"].createElement(PreviewTitle, {
|
|
@@ -126,7 +147,7 @@ var ChannelPreviewMessengerWithContext = function ChannelPreviewMessengerWithCon
|
|
|
126
147
|
__self: _this,
|
|
127
148
|
__source: {
|
|
128
149
|
fileName: _jsxFileName,
|
|
129
|
-
lineNumber:
|
|
150
|
+
lineNumber: 167,
|
|
130
151
|
columnNumber: 11
|
|
131
152
|
}
|
|
132
153
|
}), _react["default"].createElement(_reactNative.View, {
|
|
@@ -134,14 +155,14 @@ var ChannelPreviewMessengerWithContext = function ChannelPreviewMessengerWithCon
|
|
|
134
155
|
__self: _this,
|
|
135
156
|
__source: {
|
|
136
157
|
fileName: _jsxFileName,
|
|
137
|
-
lineNumber:
|
|
158
|
+
lineNumber: 168,
|
|
138
159
|
columnNumber: 11
|
|
139
160
|
}
|
|
140
161
|
}, isChannelMuted && _react["default"].createElement(PreviewMutedStatus, {
|
|
141
162
|
__self: _this,
|
|
142
163
|
__source: {
|
|
143
164
|
fileName: _jsxFileName,
|
|
144
|
-
lineNumber:
|
|
165
|
+
lineNumber: 169,
|
|
145
166
|
columnNumber: 32
|
|
146
167
|
}
|
|
147
168
|
}), _react["default"].createElement(PreviewUnreadCount, {
|
|
@@ -151,7 +172,7 @@ var ChannelPreviewMessengerWithContext = function ChannelPreviewMessengerWithCon
|
|
|
151
172
|
__self: _this,
|
|
152
173
|
__source: {
|
|
153
174
|
fileName: _jsxFileName,
|
|
154
|
-
lineNumber:
|
|
175
|
+
lineNumber: 170,
|
|
155
176
|
columnNumber: 13
|
|
156
177
|
}
|
|
157
178
|
}))), _react["default"].createElement(_reactNative.View, {
|
|
@@ -159,7 +180,7 @@ var ChannelPreviewMessengerWithContext = function ChannelPreviewMessengerWithCon
|
|
|
159
180
|
__self: _this,
|
|
160
181
|
__source: {
|
|
161
182
|
fileName: _jsxFileName,
|
|
162
|
-
lineNumber:
|
|
183
|
+
lineNumber: 173,
|
|
163
184
|
columnNumber: 9
|
|
164
185
|
}
|
|
165
186
|
}, _react["default"].createElement(PreviewMessage, {
|
|
@@ -167,7 +188,7 @@ var ChannelPreviewMessengerWithContext = function ChannelPreviewMessengerWithCon
|
|
|
167
188
|
__self: _this,
|
|
168
189
|
__source: {
|
|
169
190
|
fileName: _jsxFileName,
|
|
170
|
-
lineNumber:
|
|
191
|
+
lineNumber: 174,
|
|
171
192
|
columnNumber: 11
|
|
172
193
|
}
|
|
173
194
|
}), _react["default"].createElement(PreviewStatus, {
|
|
@@ -177,7 +198,7 @@ var ChannelPreviewMessengerWithContext = function ChannelPreviewMessengerWithCon
|
|
|
177
198
|
__self: _this,
|
|
178
199
|
__source: {
|
|
179
200
|
fileName: _jsxFileName,
|
|
180
|
-
lineNumber:
|
|
201
|
+
lineNumber: 175,
|
|
181
202
|
columnNumber: 11
|
|
182
203
|
}
|
|
183
204
|
}))));
|
|
@@ -206,7 +227,7 @@ var ChannelPreviewMessenger = function ChannelPreviewMessenger(props) {
|
|
|
206
227
|
__self: _this,
|
|
207
228
|
__source: {
|
|
208
229
|
fileName: _jsxFileName,
|
|
209
|
-
lineNumber:
|
|
230
|
+
lineNumber: 223,
|
|
210
231
|
columnNumber: 5
|
|
211
232
|
}
|
|
212
233
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeGestureHandler","_ChannelAvatar","_ChannelPreviewMessage","_ChannelPreviewMutedStatus","_ChannelPreviewStatus","_ChannelPreviewTitle","_ChannelPreviewUnreadCount","_useChannelPreviewDisplayName","_ChannelsContext","_ThemeContext","_utils","_this","_jsxFileName","styles","StyleSheet","create","container","borderBottomWidth","flex","flexDirection","paddingHorizontal","paddingVertical","contentContainer","row","alignItems","justifyContent","paddingLeft","statusContainer","display","title","fontSize","fontWeight","maxWidth","vw","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","_useTheme","useTheme","_useTheme$theme","theme","_useTheme$theme$chann","channelPreview","_useTheme$theme$color","colors","border","white_snow","displayName","useChannelPreviewDisplayName","Math","floor","isChannelMuted","muteStatus","muted","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 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 { useTheme } from '../../contexts/themeContext/ThemeContext';\nimport type { DefaultStreamChatGenerics } from '../../types/types';\nimport { vw } from '../../utils/utils';\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\nconst maxWidth = vw(80) - 16 - 40;\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\n const {\n theme: {\n channelPreview: { container, contentContainer, row, title },\n colors: { border, white_snow },\n },\n } = useTheme();\n\n const displayName = useChannelPreviewDisplayName(\n channel,\n Math.floor(maxWidth / ((title.fontSize || styles.title.fontSize) / 2)),\n );\n\n const isChannelMuted = channel.muteStatus().muted;\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,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,0BAAA,GAAAF,OAAA;AAEA,IAAAG,cAAA,GAAAH,OAAA;AAEA,IAAAI,sBAAA,GAAAJ,OAAA;AACA,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AkB,EAAlBA;EAAkB,GAEhBnB,KAAK;IAAAiD,MAAA,EAAAzE,KAAA;IAAA0E,QAAA;MAAAC,QAAA,EAAA1E,YAAA;MAAA2E,UAAA;MAAAC,YAAA;IAAA;EAAA,EACV,CAAC;AAEN,CAAC;AAACU,OAAA,CAAAJ,uBAAA,GAAAA,uBAAA;AAEFA,uBAAuB,CAACxB,WAAW,GAAG,yCAAyC"}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeGestureHandler","_ChannelAvatar","_ChannelPreviewMessage","_ChannelPreviewMutedStatus","_ChannelPreviewStatus","_ChannelPreviewTitle","_ChannelPreviewUnreadCount","_useChannelPreviewDisplayName","_ChannelsContext","_ChatContext","_ThemeContext","_utils","_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","maxWidth","vw","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","_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 type { DefaultStreamChatGenerics } from '../../types/types';\nimport { vw } from '../../utils/utils';\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\nconst maxWidth = vw(80) - 16 - 40;\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\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;AAEA,IAAAa,MAAA,GAAAb,OAAA;AAAuC,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,IA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MAAAC,YAAA;IAAA;EAAA,EACV,CAAC;AAEN,CAAC;AAACU,OAAA,CAAAJ,uBAAA,GAAAA,uBAAA;AAEFA,uBAAuB,CAACjC,WAAW,GAAG,yCAAyC"}
|
|
@@ -297,7 +297,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
297
297
|
var _message$user;
|
|
298
298
|
var index = _ref2.index,
|
|
299
299
|
message = _ref2.item;
|
|
300
|
-
if (!channel || !channel.initialized && !channel.offlineMode) return null;
|
|
300
|
+
if (!channel || channel.disconnected || !channel.initialized && !channel.offlineMode) return null;
|
|
301
301
|
var lastRead = channel.lastRead();
|
|
302
302
|
function isMessageUnread(messageArrayIndex) {
|
|
303
303
|
var msg = messageList == null ? void 0 : messageList[messageArrayIndex];
|
|
@@ -315,7 +315,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
315
315
|
__self: _this,
|
|
316
316
|
__source: {
|
|
317
317
|
fileName: _jsxFileName,
|
|
318
|
-
lineNumber:
|
|
318
|
+
lineNumber: 564,
|
|
319
319
|
columnNumber: 11
|
|
320
320
|
}
|
|
321
321
|
}, _react["default"].createElement(MessageSystem, {
|
|
@@ -324,14 +324,14 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
324
324
|
__self: _this,
|
|
325
325
|
__source: {
|
|
326
326
|
fileName: _jsxFileName,
|
|
327
|
-
lineNumber:
|
|
327
|
+
lineNumber: 565,
|
|
328
328
|
columnNumber: 13
|
|
329
329
|
}
|
|
330
330
|
})), insertInlineUnreadIndicator && _react["default"].createElement(InlineUnreadIndicator, {
|
|
331
331
|
__self: _this,
|
|
332
332
|
__source: {
|
|
333
333
|
fileName: _jsxFileName,
|
|
334
|
-
lineNumber:
|
|
334
|
+
lineNumber: 567,
|
|
335
335
|
columnNumber: 43
|
|
336
336
|
}
|
|
337
337
|
}));
|
|
@@ -342,7 +342,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
342
342
|
__self: _this,
|
|
343
343
|
__source: {
|
|
344
344
|
fileName: _jsxFileName,
|
|
345
|
-
lineNumber:
|
|
345
|
+
lineNumber: 577,
|
|
346
346
|
columnNumber: 36
|
|
347
347
|
}
|
|
348
348
|
}), _react["default"].createElement(_ThemeContext.ThemeProvider, {
|
|
@@ -350,7 +350,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
350
350
|
__self: _this,
|
|
351
351
|
__source: {
|
|
352
352
|
fileName: _jsxFileName,
|
|
353
|
-
lineNumber:
|
|
353
|
+
lineNumber: 578,
|
|
354
354
|
columnNumber: 9
|
|
355
355
|
}
|
|
356
356
|
}, _react["default"].createElement(_reactNative.View, {
|
|
@@ -358,7 +358,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
358
358
|
__self: _this,
|
|
359
359
|
__source: {
|
|
360
360
|
fileName: _jsxFileName,
|
|
361
|
-
lineNumber:
|
|
361
|
+
lineNumber: 579,
|
|
362
362
|
columnNumber: 11
|
|
363
363
|
}
|
|
364
364
|
}, _react["default"].createElement(Message, {
|
|
@@ -374,7 +374,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
374
374
|
__self: _this,
|
|
375
375
|
__source: {
|
|
376
376
|
fileName: _jsxFileName,
|
|
377
|
-
lineNumber:
|
|
377
|
+
lineNumber: 580,
|
|
378
378
|
columnNumber: 13
|
|
379
379
|
}
|
|
380
380
|
}))), !shouldApplyAndroidWorkaround && (0, _useMessageList.isMessageWithStylesReadByAndDateSeparator)(message) && message.dateSeparator && _react["default"].createElement(InlineDateSeparator, {
|
|
@@ -382,14 +382,14 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
382
382
|
__self: _this,
|
|
383
383
|
__source: {
|
|
384
384
|
fileName: _jsxFileName,
|
|
385
|
-
lineNumber:
|
|
385
|
+
lineNumber: 597,
|
|
386
386
|
columnNumber: 36
|
|
387
387
|
}
|
|
388
388
|
}), insertInlineUnreadIndicator && _react["default"].createElement(InlineUnreadIndicator, {
|
|
389
389
|
__self: _this,
|
|
390
390
|
__source: {
|
|
391
391
|
fileName: _jsxFileName,
|
|
392
|
-
lineNumber:
|
|
392
|
+
lineNumber: 599,
|
|
393
393
|
columnNumber: 41
|
|
394
394
|
}
|
|
395
395
|
})) : _react["default"].createElement(_react["default"].Fragment, null, _react["default"].createElement(_reactNative.View, {
|
|
@@ -397,7 +397,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
397
397
|
__self: _this,
|
|
398
398
|
__source: {
|
|
399
399
|
fileName: _jsxFileName,
|
|
400
|
-
lineNumber:
|
|
400
|
+
lineNumber: 603,
|
|
401
401
|
columnNumber: 9
|
|
402
402
|
}
|
|
403
403
|
}, shouldApplyAndroidWorkaround && (0, _useMessageList.isMessageWithStylesReadByAndDateSeparator)(message) && message.dateSeparator && _react["default"].createElement(InlineDateSeparator, {
|
|
@@ -405,7 +405,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
405
405
|
__self: _this,
|
|
406
406
|
__source: {
|
|
407
407
|
fileName: _jsxFileName,
|
|
408
|
-
lineNumber:
|
|
408
|
+
lineNumber: 606,
|
|
409
409
|
columnNumber: 38
|
|
410
410
|
}
|
|
411
411
|
}), _react["default"].createElement(Message, {
|
|
@@ -421,7 +421,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
421
421
|
__self: _this,
|
|
422
422
|
__source: {
|
|
423
423
|
fileName: _jsxFileName,
|
|
424
|
-
lineNumber:
|
|
424
|
+
lineNumber: 607,
|
|
425
425
|
columnNumber: 11
|
|
426
426
|
}
|
|
427
427
|
})), !shouldApplyAndroidWorkaround && (0, _useMessageList.isMessageWithStylesReadByAndDateSeparator)(message) && message.dateSeparator && _react["default"].createElement(InlineDateSeparator, {
|
|
@@ -429,14 +429,14 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
429
429
|
__self: _this,
|
|
430
430
|
__source: {
|
|
431
431
|
fileName: _jsxFileName,
|
|
432
|
-
lineNumber:
|
|
432
|
+
lineNumber: 627,
|
|
433
433
|
columnNumber: 36
|
|
434
434
|
}
|
|
435
435
|
}), insertInlineUnreadIndicator && _react["default"].createElement(InlineUnreadIndicator, {
|
|
436
436
|
__self: _this,
|
|
437
437
|
__source: {
|
|
438
438
|
fileName: _jsxFileName,
|
|
439
|
-
lineNumber:
|
|
439
|
+
lineNumber: 629,
|
|
440
440
|
columnNumber: 41
|
|
441
441
|
}
|
|
442
442
|
}));
|
|
@@ -744,7 +744,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
744
744
|
__self: _this,
|
|
745
745
|
__source: {
|
|
746
746
|
fileName: _jsxFileName,
|
|
747
|
-
lineNumber:
|
|
747
|
+
lineNumber: 1006,
|
|
748
748
|
columnNumber: 7
|
|
749
749
|
}
|
|
750
750
|
}, _react["default"].createElement(EmptyStateIndicator, {
|
|
@@ -752,7 +752,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
752
752
|
__self: _this,
|
|
753
753
|
__source: {
|
|
754
754
|
fileName: _jsxFileName,
|
|
755
|
-
lineNumber:
|
|
755
|
+
lineNumber: 1010,
|
|
756
756
|
columnNumber: 9
|
|
757
757
|
}
|
|
758
758
|
}));
|
|
@@ -763,14 +763,14 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
763
763
|
__self: _this,
|
|
764
764
|
__source: {
|
|
765
765
|
fileName: _jsxFileName,
|
|
766
|
-
lineNumber:
|
|
766
|
+
lineNumber: 1018,
|
|
767
767
|
columnNumber: 7
|
|
768
768
|
}
|
|
769
769
|
}, _react["default"].createElement(FooterComponent, {
|
|
770
770
|
__self: _this,
|
|
771
771
|
__source: {
|
|
772
772
|
fileName: _jsxFileName,
|
|
773
|
-
lineNumber:
|
|
773
|
+
lineNumber: 1019,
|
|
774
774
|
columnNumber: 9
|
|
775
775
|
}
|
|
776
776
|
}));
|
|
@@ -781,14 +781,14 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
781
781
|
__self: _this,
|
|
782
782
|
__source: {
|
|
783
783
|
fileName: _jsxFileName,
|
|
784
|
-
lineNumber:
|
|
784
|
+
lineNumber: 1027,
|
|
785
785
|
columnNumber: 7
|
|
786
786
|
}
|
|
787
787
|
}, _react["default"].createElement(HeaderComponent, {
|
|
788
788
|
__self: _this,
|
|
789
789
|
__source: {
|
|
790
790
|
fileName: _jsxFileName,
|
|
791
|
-
lineNumber:
|
|
791
|
+
lineNumber: 1028,
|
|
792
792
|
columnNumber: 9
|
|
793
793
|
}
|
|
794
794
|
}));
|
|
@@ -800,7 +800,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
800
800
|
__self: _this,
|
|
801
801
|
__source: {
|
|
802
802
|
fileName: _jsxFileName,
|
|
803
|
-
lineNumber:
|
|
803
|
+
lineNumber: 1038,
|
|
804
804
|
columnNumber: 7
|
|
805
805
|
}
|
|
806
806
|
}, _react["default"].createElement(LoadingIndicator, {
|
|
@@ -808,7 +808,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
808
808
|
__self: _this,
|
|
809
809
|
__source: {
|
|
810
810
|
fileName: _jsxFileName,
|
|
811
|
-
lineNumber:
|
|
811
|
+
lineNumber: 1039,
|
|
812
812
|
columnNumber: 9
|
|
813
813
|
}
|
|
814
814
|
}));
|
|
@@ -820,7 +820,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
820
820
|
__self: _this,
|
|
821
821
|
__source: {
|
|
822
822
|
fileName: _jsxFileName,
|
|
823
|
-
lineNumber:
|
|
823
|
+
lineNumber: 1046,
|
|
824
824
|
columnNumber: 30
|
|
825
825
|
}
|
|
826
826
|
});
|
|
@@ -829,7 +829,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
829
829
|
__self: _this,
|
|
830
830
|
__source: {
|
|
831
831
|
fileName: _jsxFileName,
|
|
832
|
-
lineNumber:
|
|
832
|
+
lineNumber: 1047,
|
|
833
833
|
columnNumber: 46
|
|
834
834
|
}
|
|
835
835
|
});
|
|
@@ -850,7 +850,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
850
850
|
__self: _this,
|
|
851
851
|
__source: {
|
|
852
852
|
fileName: _jsxFileName,
|
|
853
|
-
lineNumber:
|
|
853
|
+
lineNumber: 1063,
|
|
854
854
|
columnNumber: 5
|
|
855
855
|
}
|
|
856
856
|
}, _react["default"].createElement(FlatList, (0, _extends2["default"])({
|
|
@@ -886,7 +886,7 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
886
886
|
__self: _this,
|
|
887
887
|
__source: {
|
|
888
888
|
fileName: _jsxFileName,
|
|
889
|
-
lineNumber:
|
|
889
|
+
lineNumber: 1067,
|
|
890
890
|
columnNumber: 7
|
|
891
891
|
}
|
|
892
892
|
})), !loading && _react["default"].createElement(_react["default"].Fragment, null, _react["default"].createElement(_reactNative.View, {
|
|
@@ -894,28 +894,28 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
894
894
|
__self: _this,
|
|
895
895
|
__source: {
|
|
896
896
|
fileName: _jsxFileName,
|
|
897
|
-
lineNumber:
|
|
897
|
+
lineNumber: 1112,
|
|
898
898
|
columnNumber: 11
|
|
899
899
|
}
|
|
900
900
|
}, _react["default"].createElement(StickyHeaderComponent, {
|
|
901
901
|
__self: _this,
|
|
902
902
|
__source: {
|
|
903
903
|
fileName: _jsxFileName,
|
|
904
|
-
lineNumber:
|
|
904
|
+
lineNumber: 1113,
|
|
905
905
|
columnNumber: 13
|
|
906
906
|
}
|
|
907
907
|
})), !disableTypingIndicator && TypingIndicator && _react["default"].createElement(TypingIndicatorContainer, {
|
|
908
908
|
__self: _this,
|
|
909
909
|
__source: {
|
|
910
910
|
fileName: _jsxFileName,
|
|
911
|
-
lineNumber:
|
|
911
|
+
lineNumber: 1116,
|
|
912
912
|
columnNumber: 13
|
|
913
913
|
}
|
|
914
914
|
}, _react["default"].createElement(TypingIndicator, {
|
|
915
915
|
__self: _this,
|
|
916
916
|
__source: {
|
|
917
917
|
fileName: _jsxFileName,
|
|
918
|
-
lineNumber:
|
|
918
|
+
lineNumber: 1117,
|
|
919
919
|
columnNumber: 15
|
|
920
920
|
}
|
|
921
921
|
})), _react["default"].createElement(ScrollToBottomButton, {
|
|
@@ -925,14 +925,14 @@ var MessageListWithContext = function MessageListWithContext(props) {
|
|
|
925
925
|
__self: _this,
|
|
926
926
|
__source: {
|
|
927
927
|
fileName: _jsxFileName,
|
|
928
|
-
lineNumber:
|
|
928
|
+
lineNumber: 1120,
|
|
929
929
|
columnNumber: 11
|
|
930
930
|
}
|
|
931
931
|
})), _react["default"].createElement(NetworkDownIndicator, {
|
|
932
932
|
__self: _this,
|
|
933
933
|
__source: {
|
|
934
934
|
fileName: _jsxFileName,
|
|
935
|
-
lineNumber:
|
|
935
|
+
lineNumber: 1127,
|
|
936
936
|
columnNumber: 7
|
|
937
937
|
}
|
|
938
938
|
}));
|
|
@@ -1039,7 +1039,7 @@ var MessageList = function MessageList(props) {
|
|
|
1039
1039
|
__self: _this,
|
|
1040
1040
|
__source: {
|
|
1041
1041
|
fileName: _jsxFileName,
|
|
1042
|
-
lineNumber:
|
|
1042
|
+
lineNumber: 1185,
|
|
1043
1043
|
columnNumber: 5
|
|
1044
1044
|
}
|
|
1045
1045
|
}));
|