@planningcenter/chat-react-native 4.3.0-rc.9 → 4.3.1-qa-989.0
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/build/components/conversation/attachments/giphy_attachment.d.ts.map +1 -1
- package/build/components/conversation/attachments/giphy_attachment.js +2 -2
- package/build/components/conversation/attachments/giphy_attachment.js.map +1 -1
- package/build/components/conversation/attachments/image_attachment.d.ts.map +1 -1
- package/build/components/conversation/attachments/image_attachment.js +5 -3
- package/build/components/conversation/attachments/image_attachment.js.map +1 -1
- package/build/components/conversation/message.d.ts +3 -1
- package/build/components/conversation/message.d.ts.map +1 -1
- package/build/components/conversation/message.js +183 -158
- package/build/components/conversation/message.js.map +1 -1
- package/build/components/conversation/message_form.d.ts.map +1 -1
- package/build/components/conversation/message_form.js +3 -3
- package/build/components/conversation/message_form.js.map +1 -1
- package/build/components/conversation/message_list.d.ts.map +1 -1
- package/build/components/conversation/message_list.js +143 -88
- package/build/components/conversation/message_list.js.map +1 -1
- package/build/components/conversation/system_message.js +3 -3
- package/build/components/conversation/system_message.js.map +1 -1
- package/build/components/conversations/conversations.d.ts.map +1 -1
- package/build/components/conversations/conversations.js +0 -6
- package/build/components/conversations/conversations.js.map +1 -1
- package/build/contexts/api_provider.d.ts.map +1 -1
- package/build/contexts/api_provider.js +28 -25
- package/build/contexts/api_provider.js.map +1 -1
- package/build/hooks/use_animated_message_background_color.d.ts +1 -0
- package/build/hooks/use_animated_message_background_color.d.ts.map +1 -1
- package/build/hooks/use_animated_message_background_color.js +26 -9
- package/build/hooks/use_animated_message_background_color.js.map +1 -1
- package/build/hooks/use_chat_permissions.d.ts +10 -2
- package/build/hooks/use_chat_permissions.d.ts.map +1 -1
- package/build/hooks/use_chat_permissions.js +8 -0
- package/build/hooks/use_chat_permissions.js.map +1 -1
- package/build/hooks/use_debounced_search_term.d.ts +2 -0
- package/build/hooks/use_debounced_search_term.d.ts.map +1 -0
- package/build/hooks/use_debounced_search_term.js +40 -0
- package/build/hooks/use_debounced_search_term.js.map +1 -0
- package/build/hooks/use_features.d.ts +2 -0
- package/build/hooks/use_features.d.ts.map +1 -1
- package/build/hooks/use_features.js +3 -1
- package/build/hooks/use_features.js.map +1 -1
- package/build/hooks/use_jolt.d.ts.map +1 -1
- package/build/hooks/use_jolt.js +2 -1
- package/build/hooks/use_jolt.js.map +1 -1
- package/build/hooks/use_product_analytics.d.ts +9 -0
- package/build/hooks/use_product_analytics.d.ts.map +1 -1
- package/build/hooks/use_product_analytics.js +4 -2
- package/build/hooks/use_product_analytics.js.map +1 -1
- package/build/hooks/use_search_enabled.d.ts +2 -0
- package/build/hooks/use_search_enabled.d.ts.map +1 -0
- package/build/hooks/use_search_enabled.js +18 -0
- package/build/hooks/use_search_enabled.js.map +1 -0
- package/build/hooks/use_search_results.d.ts +19 -0
- package/build/hooks/use_search_results.d.ts.map +1 -0
- package/build/hooks/use_search_results.js +153 -0
- package/build/hooks/use_search_results.js.map +1 -0
- package/build/screens/age_check/age_check_underage_screen.d.ts.map +1 -1
- package/build/screens/age_check/age_check_underage_screen.js +2 -1
- package/build/screens/age_check/age_check_underage_screen.js.map +1 -1
- package/build/screens/attachment_actions/attachment_actions_screen.d.ts.map +1 -1
- package/build/screens/attachment_actions/attachment_actions_screen.js +5 -2
- package/build/screens/attachment_actions/attachment_actions_screen.js.map +1 -1
- package/build/screens/bug_report_screen.d.ts.map +1 -1
- package/build/screens/bug_report_screen.js +2 -2
- package/build/screens/bug_report_screen.js.map +1 -1
- package/build/screens/conversation_select_recipients/components/view_more_link_row.d.ts +2 -1
- package/build/screens/conversation_select_recipients/components/view_more_link_row.d.ts.map +1 -1
- package/build/screens/conversation_select_recipients/components/view_more_link_row.js +39 -24
- package/build/screens/conversation_select_recipients/components/view_more_link_row.js.map +1 -1
- package/build/screens/conversation_select_recipients/conversation_select_direct_message_recipients_screen.d.ts.map +1 -1
- package/build/screens/conversation_select_recipients/conversation_select_direct_message_recipients_screen.js +142 -158
- package/build/screens/conversation_select_recipients/conversation_select_direct_message_recipients_screen.js.map +1 -1
- package/build/screens/conversations/components/search_list_header_component.js +3 -3
- package/build/screens/conversations/components/search_list_header_component.js.map +1 -1
- package/build/screens/conversations/conversations_screen.d.ts.map +1 -1
- package/build/screens/conversations/conversations_screen.js +2 -5
- package/build/screens/conversations/conversations_screen.js.map +1 -1
- package/build/screens/get_help_screen.js +2 -2
- package/build/screens/get_help_screen.js.map +1 -1
- package/build/screens/message_actions_screen.js +6 -2
- package/build/screens/message_actions_screen.js.map +1 -1
- package/build/screens/search/components/conversation_result_row.d.ts +8 -0
- package/build/screens/search/components/conversation_result_row.d.ts.map +1 -0
- package/build/screens/search/components/conversation_result_row.js +80 -0
- package/build/screens/search/components/conversation_result_row.js.map +1 -0
- package/build/screens/search/components/conversation_results.d.ts +8 -0
- package/build/screens/search/components/conversation_results.d.ts.map +1 -0
- package/build/screens/search/components/conversation_results.js +77 -0
- package/build/screens/search/components/conversation_results.js.map +1 -0
- package/build/screens/search/components/message_result_row.d.ts +8 -0
- package/build/screens/search/components/message_result_row.d.ts.map +1 -0
- package/build/screens/search/components/message_result_row.js +152 -0
- package/build/screens/search/components/message_result_row.js.map +1 -0
- package/build/screens/search/components/result_row.d.ts +10 -0
- package/build/screens/search/components/result_row.d.ts.map +1 -0
- package/build/screens/search/components/result_row.js +102 -0
- package/build/screens/search/components/result_row.js.map +1 -0
- package/build/screens/search/components/results_section.d.ts +9 -0
- package/build/screens/search/components/results_section.d.ts.map +1 -0
- package/build/screens/search/components/results_section.js +51 -0
- package/build/screens/search/components/results_section.js.map +1 -0
- package/build/screens/search/components/search_results_list.d.ts +13 -0
- package/build/screens/search/components/search_results_list.d.ts.map +1 -0
- package/build/screens/search/components/search_results_list.js +344 -0
- package/build/screens/search/components/search_results_list.js.map +1 -0
- package/build/screens/search/components/snippet.d.ts +8 -0
- package/build/screens/search/components/snippet.d.ts.map +1 -0
- package/build/screens/search/components/snippet.js +68 -0
- package/build/screens/search/components/snippet.js.map +1 -0
- package/build/screens/search/search_screen.d.ts.map +1 -1
- package/build/screens/search/search_screen.js +92 -20
- package/build/screens/search/search_screen.js.map +1 -1
- package/build/utils/client/request_helpers.js +1 -1
- package/build/utils/client/request_helpers.js.map +1 -1
- package/build/utils/native_adapters/linking.d.ts +11 -3
- package/build/utils/native_adapters/linking.d.ts.map +1 -1
- package/build/utils/native_adapters/linking.js.map +1 -1
- package/build/utils/response_error.d.ts +1 -1
- package/build/utils/response_error.d.ts.map +1 -1
- package/build/utils/response_error.js +1 -1
- package/build/utils/response_error.js.map +1 -1
- package/package.json +3 -3
- package/src/__tests__/components/conversation/attachments/giphy_attachment.test.tsx +76 -0
- package/src/__tests__/contexts/api_provider.test.tsx +50 -0
- package/src/__tests__/screens/attachment_actions_screen.test.tsx +81 -0
- package/src/__tests__/screens/get_help_screen.test.ts +36 -0
- package/src/__tests__/screens/message_actions_screen.test.tsx +136 -0
- package/src/__tests__/utils/client.ts +3 -4
- package/src/components/conversation/__tests__/message_form.test.tsx +83 -0
- package/src/components/conversation/__tests__/message_list.test.tsx +71 -3
- package/src/components/conversation/attachments/giphy_attachment.tsx +2 -3
- package/src/components/conversation/attachments/image_attachment.tsx +2 -3
- package/src/components/conversation/message.tsx +12 -1
- package/src/components/conversation/message_form.tsx +2 -2
- package/src/components/conversation/message_list.tsx +26 -1
- package/src/components/conversation/system_message.tsx +3 -3
- package/src/components/conversations/conversations.tsx +0 -7
- package/src/contexts/__tests__/api_provider.test.tsx +106 -0
- package/src/contexts/api_provider.tsx +6 -9
- package/src/hooks/__tests__/use_debounced_search_term.test.tsx +38 -0
- package/src/hooks/__tests__/use_jolt.test.tsx +70 -0
- package/src/hooks/__tests__/use_search_results.test.tsx +88 -0
- package/src/hooks/use_animated_message_background_color.ts +37 -12
- package/src/hooks/use_chat_permissions.ts +15 -2
- package/src/hooks/use_debounced_search_term.ts +20 -0
- package/src/hooks/use_features.ts +2 -0
- package/src/hooks/use_jolt.ts +10 -7
- package/src/hooks/use_product_analytics.ts +3 -1
- package/src/hooks/use_search_enabled.ts +9 -0
- package/src/hooks/use_search_results.ts +78 -0
- package/src/screens/age_check/age_check_underage_screen.tsx +2 -1
- package/src/screens/attachment_actions/attachment_actions_screen.tsx +3 -2
- package/src/screens/bug_report_screen.tsx +2 -10
- package/src/screens/conversation_select_recipients/components/view_more_link_row.tsx +12 -3
- package/src/screens/conversation_select_recipients/conversation_select_direct_message_recipients_screen.tsx +3 -8
- package/src/screens/conversations/__tests__/conversations_screen.test.tsx +71 -0
- package/src/screens/conversations/components/search_list_header_component.tsx +1 -1
- package/src/screens/conversations/conversations_screen.tsx +2 -3
- package/src/screens/get_help_screen.tsx +2 -2
- package/src/screens/message_actions_screen.tsx +6 -2
- package/src/screens/search/__tests__/search_screen.test.tsx +194 -0
- package/src/screens/search/components/__tests__/conversation_results.test.tsx +55 -0
- package/src/screens/search/components/__tests__/message_result_row.test.tsx +65 -0
- package/src/screens/search/components/__tests__/result_row.test.tsx +33 -0
- package/src/screens/search/components/__tests__/search_results_list.test.tsx +180 -0
- package/src/screens/search/components/conversation_result_row.tsx +36 -0
- package/src/screens/search/components/conversation_results.tsx +43 -0
- package/src/screens/search/components/message_result_row.tsx +48 -0
- package/src/screens/search/components/result_row.tsx +58 -0
- package/src/screens/search/components/results_section.tsx +34 -0
- package/src/screens/search/components/search_results_list.tsx +168 -0
- package/src/screens/search/components/snippet.tsx +37 -0
- package/src/screens/search/search_screen.tsx +50 -4
- package/src/utils/__tests__/response_error.test.ts +7 -2
- package/src/utils/client/__tests__/request_helpers.test.ts +40 -0
- package/src/utils/client/request_helpers.ts +1 -1
- package/src/utils/native_adapters/__tests__/linking.test.ts +12 -0
- package/src/utils/native_adapters/linking.ts +12 -3
- package/src/utils/response_error.ts +2 -2
|
@@ -27,14 +27,17 @@ import { TheirReplyConnector, MyReplyConnector, AVATAR_CONNECTOR_SPACING } from
|
|
|
27
27
|
*/
|
|
28
28
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
29
29
|
export const Message = memo(function MessageRow(t0) {
|
|
30
|
-
const $ = _c(
|
|
30
|
+
const $ = _c(73);
|
|
31
31
|
const {
|
|
32
32
|
canDeleteNonAuthoredMessages,
|
|
33
33
|
conversation_id,
|
|
34
34
|
readByOthers,
|
|
35
35
|
inReplyScreen,
|
|
36
|
+
highlighted: t1,
|
|
37
|
+
onHighlightShown,
|
|
36
38
|
...message
|
|
37
39
|
} = t0;
|
|
40
|
+
const highlighted = t1 === undefined ? false : t1;
|
|
38
41
|
const {
|
|
39
42
|
reactionCounts,
|
|
40
43
|
pending,
|
|
@@ -60,6 +63,7 @@ export const Message = memo(function MessageRow(t0) {
|
|
|
60
63
|
const [messageBubbleHeight, setMessageBubbleHeight] = React.useState(0);
|
|
61
64
|
const {
|
|
62
65
|
animatedBackgroundColor,
|
|
66
|
+
flash,
|
|
63
67
|
handleMessagePressIn,
|
|
64
68
|
handleMessagePressOut
|
|
65
69
|
} = useAnimatedMessageBackgroundColor();
|
|
@@ -91,6 +95,27 @@ export const Message = memo(function MessageRow(t0) {
|
|
|
91
95
|
const replyCountLabel = isReplyRootMessage ? replyCountText : "";
|
|
92
96
|
const saveStatusLabel = error ? `Failed to ${isPersisted ? "edit" : "send"}` : pending ? messagePendingLabel : "";
|
|
93
97
|
const accessibilityLabel = `${author?.name || ""} ${messageIsReplyLabel} ${attachmentLabel} ${messageText || ""} ${saveStatusLabel} ${timestamp} ${replyCountLabel}`;
|
|
98
|
+
let t2;
|
|
99
|
+
let t3;
|
|
100
|
+
if ($[0] !== flash || $[1] !== highlighted || $[2] !== onHighlightShown) {
|
|
101
|
+
t2 = () => {
|
|
102
|
+
if (!highlighted) {
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
flash();
|
|
106
|
+
onHighlightShown?.();
|
|
107
|
+
};
|
|
108
|
+
t3 = [highlighted, flash, onHighlightShown];
|
|
109
|
+
$[0] = flash;
|
|
110
|
+
$[1] = highlighted;
|
|
111
|
+
$[2] = onHighlightShown;
|
|
112
|
+
$[3] = t2;
|
|
113
|
+
$[4] = t3;
|
|
114
|
+
} else {
|
|
115
|
+
t2 = $[3];
|
|
116
|
+
t3 = $[4];
|
|
117
|
+
}
|
|
118
|
+
useEffect(t2, t3);
|
|
94
119
|
useEffect(() => {
|
|
95
120
|
if (pending) {
|
|
96
121
|
const timer = setTimeout(() => {
|
|
@@ -112,17 +137,17 @@ export const Message = memo(function MessageRow(t0) {
|
|
|
112
137
|
});
|
|
113
138
|
}
|
|
114
139
|
};
|
|
115
|
-
let
|
|
116
|
-
if ($[
|
|
117
|
-
|
|
140
|
+
let t4;
|
|
141
|
+
if ($[5] !== showMessageMetaToggle) {
|
|
142
|
+
t4 = () => {
|
|
118
143
|
setShowMessageMetaToggle(!showMessageMetaToggle);
|
|
119
144
|
};
|
|
120
|
-
$[
|
|
121
|
-
$[
|
|
145
|
+
$[5] = showMessageMetaToggle;
|
|
146
|
+
$[6] = t4;
|
|
122
147
|
} else {
|
|
123
|
-
|
|
148
|
+
t4 = $[6];
|
|
124
149
|
}
|
|
125
|
-
const handleMessagePress =
|
|
150
|
+
const handleMessagePress = t4;
|
|
126
151
|
const handleMessageLongPress = () => {
|
|
127
152
|
if (!isPersisted) {
|
|
128
153
|
return;
|
|
@@ -162,56 +187,56 @@ export const Message = memo(function MessageRow(t0) {
|
|
|
162
187
|
reply_root_author_name: author.name
|
|
163
188
|
});
|
|
164
189
|
};
|
|
165
|
-
let
|
|
166
|
-
if ($[
|
|
167
|
-
|
|
190
|
+
let t5;
|
|
191
|
+
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
192
|
+
t5 = [{
|
|
168
193
|
name: "navigateToReplies",
|
|
169
194
|
label: "Navigate to replies"
|
|
170
195
|
}];
|
|
171
|
-
$[
|
|
196
|
+
$[7] = t5;
|
|
172
197
|
} else {
|
|
173
|
-
|
|
198
|
+
t5 = $[7];
|
|
174
199
|
}
|
|
175
|
-
const accessibilityActions =
|
|
200
|
+
const accessibilityActions = t5;
|
|
176
201
|
const handleAccessibilityAction = event => {
|
|
177
202
|
if (event.nativeEvent.actionName === "navigateToReplies") {
|
|
178
203
|
handleNavigateToReplyPress();
|
|
179
204
|
}
|
|
180
205
|
};
|
|
181
206
|
const T0 = Pressable;
|
|
182
|
-
const
|
|
183
|
-
const
|
|
184
|
-
const
|
|
185
|
-
const
|
|
186
|
-
const
|
|
187
|
-
let
|
|
188
|
-
if ($[
|
|
189
|
-
|
|
207
|
+
const t6 = `message-${message.id}`;
|
|
208
|
+
const t7 = isDeleting ? undefined : handleMessageLongPress;
|
|
209
|
+
const t8 = isDeleting ? undefined : handleMessagePress;
|
|
210
|
+
const t9 = isDeleting ? undefined : handleMessagePressIn;
|
|
211
|
+
const t10 = isDeleting ? undefined : handleMessagePressOut;
|
|
212
|
+
let t11;
|
|
213
|
+
if ($[8] !== colors.androidRippleNeutral) {
|
|
214
|
+
t11 = {
|
|
190
215
|
color: colors.androidRippleNeutral,
|
|
191
216
|
borderless: false,
|
|
192
217
|
foreground: true
|
|
193
218
|
};
|
|
194
|
-
$[
|
|
195
|
-
$[
|
|
219
|
+
$[8] = colors.androidRippleNeutral;
|
|
220
|
+
$[9] = t11;
|
|
196
221
|
} else {
|
|
197
|
-
|
|
222
|
+
t11 = $[9];
|
|
198
223
|
}
|
|
199
|
-
const
|
|
200
|
-
const
|
|
201
|
-
const
|
|
202
|
-
const
|
|
203
|
-
const
|
|
204
|
-
const
|
|
205
|
-
let
|
|
206
|
-
if ($[
|
|
207
|
-
|
|
208
|
-
$[
|
|
209
|
-
$[
|
|
210
|
-
$[
|
|
224
|
+
const t12 = "button";
|
|
225
|
+
const t13 = "Long press to view message actions like reacting and copying.";
|
|
226
|
+
const t14 = isReplyRootMessage ? accessibilityActions : undefined;
|
|
227
|
+
const t15 = isReplyRootMessage ? handleAccessibilityAction : undefined;
|
|
228
|
+
const t16 = isDeletedReplyRootMessage || isDeleting;
|
|
229
|
+
const t17 = Animated;
|
|
230
|
+
let t18;
|
|
231
|
+
if ($[10] !== animatedBackgroundColor || $[11] !== styles.message) {
|
|
232
|
+
t18 = [styles.message, animatedBackgroundColor];
|
|
233
|
+
$[10] = animatedBackgroundColor;
|
|
234
|
+
$[11] = styles.message;
|
|
235
|
+
$[12] = t18;
|
|
211
236
|
} else {
|
|
212
|
-
|
|
237
|
+
t18 = $[12];
|
|
213
238
|
}
|
|
214
|
-
const
|
|
239
|
+
const t19 = !message.mine && /*#__PURE__*/_jsxs(View, {
|
|
215
240
|
children: [renderAuthor ? /*#__PURE__*/_jsx(Avatar, {
|
|
216
241
|
size: "md",
|
|
217
242
|
sourceUri: author.avatar,
|
|
@@ -228,38 +253,38 @@ export const Message = memo(function MessageRow(t0) {
|
|
|
228
253
|
})]
|
|
229
254
|
});
|
|
230
255
|
const T1 = View;
|
|
231
|
-
let
|
|
232
|
-
if ($[
|
|
233
|
-
|
|
256
|
+
let t20;
|
|
257
|
+
if ($[13] !== messageBottomMargin) {
|
|
258
|
+
t20 = {
|
|
234
259
|
marginBottom: messageBottomMargin
|
|
235
260
|
};
|
|
236
|
-
$[
|
|
237
|
-
$[
|
|
261
|
+
$[13] = messageBottomMargin;
|
|
262
|
+
$[14] = t20;
|
|
238
263
|
} else {
|
|
239
|
-
|
|
264
|
+
t20 = $[14];
|
|
240
265
|
}
|
|
241
|
-
let
|
|
242
|
-
if ($[
|
|
243
|
-
|
|
244
|
-
$[
|
|
245
|
-
$[
|
|
246
|
-
$[
|
|
266
|
+
let t21;
|
|
267
|
+
if ($[15] !== styles.messageContent || $[16] !== t20) {
|
|
268
|
+
t21 = [styles.messageContent, t20];
|
|
269
|
+
$[15] = styles.messageContent;
|
|
270
|
+
$[16] = t20;
|
|
271
|
+
$[17] = t21;
|
|
247
272
|
} else {
|
|
248
|
-
|
|
273
|
+
t21 = $[17];
|
|
249
274
|
}
|
|
250
|
-
const
|
|
275
|
+
const t22 = renderAuthor && !isDeletedReplyRootMessage && /*#__PURE__*/_jsx(Text, {
|
|
251
276
|
variant: "footnote",
|
|
252
277
|
style: styles.authorName,
|
|
253
278
|
children: author.name
|
|
254
279
|
});
|
|
255
|
-
let
|
|
256
|
-
if ($[
|
|
257
|
-
|
|
258
|
-
$[
|
|
280
|
+
let t23;
|
|
281
|
+
if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
|
|
282
|
+
t23 = e => setMessageBubbleHeight(e.nativeEvent.layout.height);
|
|
283
|
+
$[18] = t23;
|
|
259
284
|
} else {
|
|
260
|
-
|
|
285
|
+
t23 = $[18];
|
|
261
286
|
}
|
|
262
|
-
const
|
|
287
|
+
const t24 = isDeletedReplyRootMessage ? /*#__PURE__*/_jsx(View, {
|
|
263
288
|
style: styles.messageText,
|
|
264
289
|
children: /*#__PURE__*/_jsx(Text, {
|
|
265
290
|
style: styles.replyRootDeletedText,
|
|
@@ -280,20 +305,20 @@ export const Message = memo(function MessageRow(t0) {
|
|
|
280
305
|
})
|
|
281
306
|
})]
|
|
282
307
|
});
|
|
283
|
-
let
|
|
284
|
-
if ($[
|
|
285
|
-
|
|
308
|
+
let t25;
|
|
309
|
+
if ($[19] !== styles.messageBubble || $[20] !== t24) {
|
|
310
|
+
t25 = /*#__PURE__*/_jsx(View, {
|
|
286
311
|
style: styles.messageBubble,
|
|
287
|
-
onLayout:
|
|
288
|
-
children:
|
|
312
|
+
onLayout: t23,
|
|
313
|
+
children: t24
|
|
289
314
|
});
|
|
290
|
-
$[
|
|
291
|
-
$[
|
|
292
|
-
$[
|
|
315
|
+
$[19] = styles.messageBubble;
|
|
316
|
+
$[20] = t24;
|
|
317
|
+
$[21] = t25;
|
|
293
318
|
} else {
|
|
294
|
-
|
|
319
|
+
t25 = $[21];
|
|
295
320
|
}
|
|
296
|
-
const
|
|
321
|
+
const t26 = showReplyCountButton && /*#__PURE__*/_jsx(TextButton, {
|
|
297
322
|
variant: "footnote",
|
|
298
323
|
onPress: handleNavigateToReplyPress,
|
|
299
324
|
style: styles.messageReplyCount,
|
|
@@ -301,7 +326,7 @@ export const Message = memo(function MessageRow(t0) {
|
|
|
301
326
|
accessibilityRole: "link",
|
|
302
327
|
children: replyCountText
|
|
303
328
|
});
|
|
304
|
-
const
|
|
329
|
+
const t27 = hasReactions && !isDeletedReplyRootMessage && /*#__PURE__*/_jsx(View, {
|
|
305
330
|
style: styles.messageReactions,
|
|
306
331
|
children: reactionCounts.map(reaction_0 => /*#__PURE__*/_jsx(MessageReaction, {
|
|
307
332
|
reaction: reaction_0,
|
|
@@ -310,9 +335,9 @@ export const Message = memo(function MessageRow(t0) {
|
|
|
310
335
|
conversationId: conversation_id
|
|
311
336
|
}, reaction_0.value))
|
|
312
337
|
});
|
|
313
|
-
let
|
|
314
|
-
if ($[
|
|
315
|
-
|
|
338
|
+
let t28;
|
|
339
|
+
if ($[22] !== colors.iconColorDefaultSecondary || $[23] !== error || $[24] !== handleRetry || $[25] !== isDeletedReplyRootMessage || $[26] !== isPersisted || $[27] !== messagePendingLabel || $[28] !== pending || $[29] !== readByOthers || $[30] !== retryFailedSaveMutation || $[31] !== showMessageMeta || $[32] !== showReadReceipts || $[33] !== styles.editedText || $[34] !== styles.errorContainer || $[35] !== styles.errorIcon || $[36] !== styles.errorText || $[37] !== styles.messageMeta || $[38] !== styles.pendingIndicatorContainer || $[39] !== temporarilyHidePendingState || $[40] !== timestamp || $[41] !== wasEdited) {
|
|
340
|
+
t28 = showMessageMeta && !isDeletedReplyRootMessage && /*#__PURE__*/_jsxs(View, {
|
|
316
341
|
style: styles.messageMeta,
|
|
317
342
|
children: [showReadReceipts && /*#__PURE__*/_jsx(MessageReadReceipts, {
|
|
318
343
|
read: readByOthers
|
|
@@ -357,108 +382,108 @@ export const Message = memo(function MessageRow(t0) {
|
|
|
357
382
|
})]
|
|
358
383
|
})]
|
|
359
384
|
});
|
|
360
|
-
$[
|
|
361
|
-
$[
|
|
362
|
-
$[
|
|
363
|
-
$[
|
|
364
|
-
$[
|
|
365
|
-
$[
|
|
366
|
-
$[
|
|
367
|
-
$[
|
|
368
|
-
$[
|
|
369
|
-
$[
|
|
370
|
-
$[
|
|
371
|
-
$[
|
|
372
|
-
$[
|
|
373
|
-
$[
|
|
374
|
-
$[
|
|
375
|
-
$[
|
|
376
|
-
$[
|
|
377
|
-
$[
|
|
378
|
-
$[
|
|
379
|
-
$[
|
|
380
|
-
$[
|
|
385
|
+
$[22] = colors.iconColorDefaultSecondary;
|
|
386
|
+
$[23] = error;
|
|
387
|
+
$[24] = handleRetry;
|
|
388
|
+
$[25] = isDeletedReplyRootMessage;
|
|
389
|
+
$[26] = isPersisted;
|
|
390
|
+
$[27] = messagePendingLabel;
|
|
391
|
+
$[28] = pending;
|
|
392
|
+
$[29] = readByOthers;
|
|
393
|
+
$[30] = retryFailedSaveMutation;
|
|
394
|
+
$[31] = showMessageMeta;
|
|
395
|
+
$[32] = showReadReceipts;
|
|
396
|
+
$[33] = styles.editedText;
|
|
397
|
+
$[34] = styles.errorContainer;
|
|
398
|
+
$[35] = styles.errorIcon;
|
|
399
|
+
$[36] = styles.errorText;
|
|
400
|
+
$[37] = styles.messageMeta;
|
|
401
|
+
$[38] = styles.pendingIndicatorContainer;
|
|
402
|
+
$[39] = temporarilyHidePendingState;
|
|
403
|
+
$[40] = timestamp;
|
|
404
|
+
$[41] = wasEdited;
|
|
405
|
+
$[42] = t28;
|
|
381
406
|
} else {
|
|
382
|
-
|
|
407
|
+
t28 = $[42];
|
|
383
408
|
}
|
|
384
|
-
let
|
|
385
|
-
if ($[
|
|
386
|
-
|
|
387
|
-
style:
|
|
388
|
-
children: [
|
|
409
|
+
let t29;
|
|
410
|
+
if ($[43] !== T1 || $[44] !== t21 || $[45] !== t22 || $[46] !== t25 || $[47] !== t26 || $[48] !== t27 || $[49] !== t28) {
|
|
411
|
+
t29 = /*#__PURE__*/_jsxs(T1, {
|
|
412
|
+
style: t21,
|
|
413
|
+
children: [t22, t25, t26, t27, t28]
|
|
389
414
|
});
|
|
390
|
-
$[
|
|
391
|
-
$[
|
|
392
|
-
$[
|
|
393
|
-
$[
|
|
394
|
-
$[
|
|
395
|
-
$[
|
|
396
|
-
$[
|
|
397
|
-
$[
|
|
415
|
+
$[43] = T1;
|
|
416
|
+
$[44] = t21;
|
|
417
|
+
$[45] = t22;
|
|
418
|
+
$[46] = t25;
|
|
419
|
+
$[47] = t26;
|
|
420
|
+
$[48] = t27;
|
|
421
|
+
$[49] = t28;
|
|
422
|
+
$[50] = t29;
|
|
398
423
|
} else {
|
|
399
|
-
|
|
424
|
+
t29 = $[50];
|
|
400
425
|
}
|
|
401
|
-
let
|
|
402
|
-
if ($[
|
|
403
|
-
|
|
426
|
+
let t30;
|
|
427
|
+
if ($[51] !== message || $[52] !== messageBubbleHeight) {
|
|
428
|
+
t30 = message.mine && /*#__PURE__*/_jsx(MyReplyConnector, {
|
|
404
429
|
message: message,
|
|
405
430
|
messageBubbleHeight: messageBubbleHeight
|
|
406
431
|
});
|
|
407
|
-
$[
|
|
408
|
-
$[
|
|
409
|
-
$[
|
|
432
|
+
$[51] = message;
|
|
433
|
+
$[52] = messageBubbleHeight;
|
|
434
|
+
$[53] = t30;
|
|
410
435
|
} else {
|
|
411
|
-
|
|
436
|
+
t30 = $[53];
|
|
412
437
|
}
|
|
413
|
-
let
|
|
414
|
-
if ($[
|
|
415
|
-
|
|
416
|
-
style:
|
|
417
|
-
children: [
|
|
438
|
+
let t31;
|
|
439
|
+
if ($[54] !== t17.View || $[55] !== t18 || $[56] !== t19 || $[57] !== t29 || $[58] !== t30) {
|
|
440
|
+
t31 = /*#__PURE__*/_jsxs(t17.View, {
|
|
441
|
+
style: t18,
|
|
442
|
+
children: [t19, t29, t30]
|
|
418
443
|
});
|
|
419
|
-
$[
|
|
420
|
-
$[
|
|
421
|
-
$[
|
|
422
|
-
$[
|
|
423
|
-
$[
|
|
424
|
-
$[
|
|
444
|
+
$[54] = t17.View;
|
|
445
|
+
$[55] = t18;
|
|
446
|
+
$[56] = t19;
|
|
447
|
+
$[57] = t29;
|
|
448
|
+
$[58] = t30;
|
|
449
|
+
$[59] = t31;
|
|
425
450
|
} else {
|
|
426
|
-
|
|
451
|
+
t31 = $[59];
|
|
427
452
|
}
|
|
428
|
-
let
|
|
429
|
-
if ($[
|
|
430
|
-
|
|
431
|
-
testID:
|
|
432
|
-
onLongPress:
|
|
433
|
-
onPress:
|
|
434
|
-
onPressIn:
|
|
435
|
-
onPressOut:
|
|
436
|
-
android_ripple:
|
|
437
|
-
accessibilityRole:
|
|
453
|
+
let t32;
|
|
454
|
+
if ($[60] !== T0 || $[61] !== accessibilityLabel || $[62] !== t10 || $[63] !== t11 || $[64] !== t14 || $[65] !== t15 || $[66] !== t16 || $[67] !== t31 || $[68] !== t6 || $[69] !== t7 || $[70] !== t8 || $[71] !== t9) {
|
|
455
|
+
t32 = /*#__PURE__*/_jsx(T0, {
|
|
456
|
+
testID: t6,
|
|
457
|
+
onLongPress: t7,
|
|
458
|
+
onPress: t8,
|
|
459
|
+
onPressIn: t9,
|
|
460
|
+
onPressOut: t10,
|
|
461
|
+
android_ripple: t11,
|
|
462
|
+
accessibilityRole: t12,
|
|
438
463
|
accessibilityLabel: accessibilityLabel,
|
|
439
|
-
accessibilityHint:
|
|
440
|
-
accessibilityActions:
|
|
441
|
-
onAccessibilityAction:
|
|
442
|
-
disabled:
|
|
443
|
-
children:
|
|
464
|
+
accessibilityHint: t13,
|
|
465
|
+
accessibilityActions: t14,
|
|
466
|
+
onAccessibilityAction: t15,
|
|
467
|
+
disabled: t16,
|
|
468
|
+
children: t31
|
|
444
469
|
});
|
|
445
|
-
$[
|
|
446
|
-
$[
|
|
447
|
-
$[
|
|
448
|
-
$[
|
|
449
|
-
$[
|
|
450
|
-
$[
|
|
451
|
-
$[
|
|
452
|
-
$[
|
|
453
|
-
$[
|
|
454
|
-
$[
|
|
455
|
-
$[
|
|
456
|
-
$[
|
|
457
|
-
$[
|
|
470
|
+
$[60] = T0;
|
|
471
|
+
$[61] = accessibilityLabel;
|
|
472
|
+
$[62] = t10;
|
|
473
|
+
$[63] = t11;
|
|
474
|
+
$[64] = t14;
|
|
475
|
+
$[65] = t15;
|
|
476
|
+
$[66] = t16;
|
|
477
|
+
$[67] = t31;
|
|
478
|
+
$[68] = t6;
|
|
479
|
+
$[69] = t7;
|
|
480
|
+
$[70] = t8;
|
|
481
|
+
$[71] = t9;
|
|
482
|
+
$[72] = t32;
|
|
458
483
|
} else {
|
|
459
|
-
|
|
484
|
+
t32 = $[72];
|
|
460
485
|
}
|
|
461
|
-
return
|
|
486
|
+
return t32;
|
|
462
487
|
});
|
|
463
488
|
const useMessageStyles = (mine, isDeleting) => {
|
|
464
489
|
const $ = _c(8);
|