@planningcenter/chat-react-native 4.2.1-qa-staging.4 → 4.2.1-qa-staging.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/contexts/api_provider.d.ts.map +1 -1
- package/build/contexts/api_provider.js +2 -1
- package/build/contexts/api_provider.js.map +1 -1
- package/build/hooks/use_fetch_newer_messages.d.ts +2 -1
- package/build/hooks/use_fetch_newer_messages.d.ts.map +1 -1
- package/build/hooks/use_fetch_newer_messages.js +16 -9
- package/build/hooks/use_fetch_newer_messages.js.map +1 -1
- package/build/screens/conversation_screen.d.ts.map +1 -1
- package/build/screens/conversation_screen.js +259 -256
- package/build/screens/conversation_screen.js.map +1 -1
- package/build/utils/cache/invalidate_refetchable_queries.d.ts +3 -0
- package/build/utils/cache/invalidate_refetchable_queries.d.ts.map +1 -0
- package/build/utils/cache/invalidate_refetchable_queries.js +8 -0
- package/build/utils/cache/invalidate_refetchable_queries.js.map +1 -0
- package/package.json +3 -3
- package/src/contexts/api_provider.tsx +2 -1
- package/src/hooks/__tests__/use_fetch_newer_messages.test.tsx +27 -0
- package/src/hooks/use_fetch_newer_messages.ts +11 -3
- package/src/screens/conversation_screen.tsx +6 -1
- package/src/utils/cache/__tests__/invalidate_refetchable_queries.test.ts +23 -0
- package/src/utils/cache/invalidate_refetchable_queries.ts +9 -0
|
@@ -157,7 +157,7 @@ export function ConversationScreen(t0) {
|
|
|
157
157
|
return t10;
|
|
158
158
|
}
|
|
159
159
|
function ConversationScreenContent(t0) {
|
|
160
|
-
const $ = _c(
|
|
160
|
+
const $ = _c(121);
|
|
161
161
|
const {
|
|
162
162
|
route,
|
|
163
163
|
anchor,
|
|
@@ -211,118 +211,121 @@ function ConversationScreenContent(t0) {
|
|
|
211
211
|
t2 = $[5];
|
|
212
212
|
}
|
|
213
213
|
const newestMessageId = t2;
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
214
|
+
const t3 = anchored ? onExitAnchoredMode : undefined;
|
|
215
|
+
let t4;
|
|
216
|
+
if ($[6] !== conversation_id || $[7] !== queryKey || $[8] !== reply_root_id || $[9] !== t3) {
|
|
217
|
+
t4 = {
|
|
217
218
|
conversation_id,
|
|
218
219
|
reply_root_id,
|
|
219
|
-
queryKey
|
|
220
|
+
queryKey,
|
|
221
|
+
onTooFarBehind: t3
|
|
220
222
|
};
|
|
221
223
|
$[6] = conversation_id;
|
|
222
224
|
$[7] = queryKey;
|
|
223
225
|
$[8] = reply_root_id;
|
|
224
226
|
$[9] = t3;
|
|
227
|
+
$[10] = t4;
|
|
225
228
|
} else {
|
|
226
|
-
|
|
229
|
+
t4 = $[10];
|
|
227
230
|
}
|
|
228
|
-
const fetchNewer = useFetchNewerMessages(
|
|
229
|
-
let
|
|
230
|
-
if ($[
|
|
231
|
-
|
|
231
|
+
const fetchNewer = useFetchNewerMessages(t4);
|
|
232
|
+
let t5;
|
|
233
|
+
if ($[11] !== caughtUp || $[12] !== fetchNewer || $[13] !== newestMessageId || $[14] !== readingHistory) {
|
|
234
|
+
t5 = {
|
|
232
235
|
fetchNewer,
|
|
233
236
|
newestMessageId,
|
|
234
237
|
readingHistory,
|
|
235
238
|
caughtUp
|
|
236
239
|
};
|
|
237
|
-
$[
|
|
238
|
-
$[
|
|
239
|
-
$[
|
|
240
|
-
$[
|
|
241
|
-
$[
|
|
240
|
+
$[11] = caughtUp;
|
|
241
|
+
$[12] = fetchNewer;
|
|
242
|
+
$[13] = newestMessageId;
|
|
243
|
+
$[14] = readingHistory;
|
|
244
|
+
$[15] = t5;
|
|
242
245
|
} else {
|
|
243
|
-
|
|
246
|
+
t5 = $[15];
|
|
244
247
|
}
|
|
245
248
|
const {
|
|
246
249
|
onSkippedNewMessage
|
|
247
|
-
} = useHeldBackMessages(
|
|
248
|
-
let
|
|
249
|
-
if ($[
|
|
250
|
-
|
|
250
|
+
} = useHeldBackMessages(t5);
|
|
251
|
+
let t6;
|
|
252
|
+
if ($[16] !== conversation_id) {
|
|
253
|
+
t6 = {
|
|
251
254
|
conversationId: conversation_id
|
|
252
255
|
};
|
|
253
|
-
$[
|
|
254
|
-
$[
|
|
256
|
+
$[16] = conversation_id;
|
|
257
|
+
$[17] = t6;
|
|
255
258
|
} else {
|
|
256
|
-
|
|
259
|
+
t6 = $[17];
|
|
257
260
|
}
|
|
258
|
-
useConversationJoltEvents(
|
|
259
|
-
const
|
|
260
|
-
const
|
|
261
|
-
let
|
|
262
|
-
if ($[
|
|
263
|
-
|
|
261
|
+
useConversationJoltEvents(t6);
|
|
262
|
+
const t7 = reply_root_id ?? null;
|
|
263
|
+
const t8 = caughtUp && !readingHistory;
|
|
264
|
+
let t9;
|
|
265
|
+
if ($[18] !== onSkippedNewMessage || $[19] !== queryKey || $[20] !== t8) {
|
|
266
|
+
t9 = gatedMessageCache({
|
|
264
267
|
queryKey,
|
|
265
|
-
acceptNewMessages:
|
|
268
|
+
acceptNewMessages: t8,
|
|
266
269
|
onSkippedNewMessage
|
|
267
270
|
});
|
|
268
|
-
$[
|
|
269
|
-
$[
|
|
270
|
-
$[19] = t7;
|
|
271
|
+
$[18] = onSkippedNewMessage;
|
|
272
|
+
$[19] = queryKey;
|
|
271
273
|
$[20] = t8;
|
|
274
|
+
$[21] = t9;
|
|
272
275
|
} else {
|
|
273
|
-
|
|
276
|
+
t9 = $[21];
|
|
274
277
|
}
|
|
275
|
-
let
|
|
276
|
-
if ($[
|
|
277
|
-
|
|
278
|
+
let t10;
|
|
279
|
+
if ($[22] !== conversation_id || $[23] !== t7 || $[24] !== t9) {
|
|
280
|
+
t10 = {
|
|
278
281
|
conversationId: conversation_id,
|
|
279
|
-
replyRootId:
|
|
280
|
-
messageCache:
|
|
282
|
+
replyRootId: t7,
|
|
283
|
+
messageCache: t9
|
|
281
284
|
};
|
|
282
|
-
$[
|
|
283
|
-
$[
|
|
284
|
-
$[23] = t8;
|
|
285
|
+
$[22] = conversation_id;
|
|
286
|
+
$[23] = t7;
|
|
285
287
|
$[24] = t9;
|
|
288
|
+
$[25] = t10;
|
|
286
289
|
} else {
|
|
287
|
-
|
|
290
|
+
t10 = $[25];
|
|
288
291
|
}
|
|
289
|
-
useConversationMessagesJoltEvents(
|
|
292
|
+
useConversationMessagesJoltEvents(t10);
|
|
290
293
|
const {
|
|
291
294
|
markHandledByMessageForm
|
|
292
295
|
} = useVideoModerationJoltEvents();
|
|
293
296
|
useEnsureConversationsRouteExists();
|
|
294
|
-
const
|
|
295
|
-
let
|
|
296
|
-
if ($[
|
|
297
|
-
|
|
297
|
+
const t11 = !behindLatest;
|
|
298
|
+
let t12;
|
|
299
|
+
if ($[26] !== conversation || $[27] !== messages || $[28] !== t11) {
|
|
300
|
+
t12 = {
|
|
298
301
|
conversation,
|
|
299
302
|
messages,
|
|
300
|
-
enabled:
|
|
303
|
+
enabled: t11
|
|
301
304
|
};
|
|
302
|
-
$[
|
|
303
|
-
$[
|
|
304
|
-
$[27] = t10;
|
|
305
|
+
$[26] = conversation;
|
|
306
|
+
$[27] = messages;
|
|
305
307
|
$[28] = t11;
|
|
308
|
+
$[29] = t12;
|
|
306
309
|
} else {
|
|
307
|
-
|
|
310
|
+
t12 = $[29];
|
|
308
311
|
}
|
|
309
|
-
useMarkLatestMessageRead(
|
|
310
|
-
const
|
|
311
|
-
let
|
|
312
|
-
if ($[
|
|
313
|
-
|
|
312
|
+
useMarkLatestMessageRead(t12);
|
|
313
|
+
const t13 = anchored && caughtUp;
|
|
314
|
+
let t14;
|
|
315
|
+
if ($[30] !== fetchNewer || $[31] !== newestMessageId || $[32] !== t13) {
|
|
316
|
+
t14 = {
|
|
314
317
|
fetchNewer,
|
|
315
318
|
newestMessageId,
|
|
316
|
-
enabled:
|
|
319
|
+
enabled: t13
|
|
317
320
|
};
|
|
318
|
-
$[
|
|
319
|
-
$[
|
|
320
|
-
$[31] = t12;
|
|
321
|
+
$[30] = fetchNewer;
|
|
322
|
+
$[31] = newestMessageId;
|
|
321
323
|
$[32] = t13;
|
|
324
|
+
$[33] = t14;
|
|
322
325
|
} else {
|
|
323
|
-
|
|
326
|
+
t14 = $[33];
|
|
324
327
|
}
|
|
325
|
-
useFetchNewerOnForeground(
|
|
328
|
+
useFetchNewerOnForeground(t14);
|
|
326
329
|
const noMessages = messages.length === 0;
|
|
327
330
|
const {
|
|
328
331
|
repliesDisabled,
|
|
@@ -332,47 +335,47 @@ function ConversationScreenContent(t0) {
|
|
|
332
335
|
} = conversation;
|
|
333
336
|
const canReply = memberAbility?.canReply;
|
|
334
337
|
const showLeaderDisabledReplyBanner = canReply && repliesDisabled;
|
|
335
|
-
let
|
|
336
|
-
if ($[
|
|
337
|
-
let
|
|
338
|
-
if ($[
|
|
339
|
-
|
|
340
|
-
$[
|
|
341
|
-
$[
|
|
338
|
+
let t15;
|
|
339
|
+
if ($[34] !== editing_message_id || $[35] !== messages) {
|
|
340
|
+
let t16;
|
|
341
|
+
if ($[37] !== editing_message_id) {
|
|
342
|
+
t16 = m => String(m.id) === String(editing_message_id);
|
|
343
|
+
$[37] = editing_message_id;
|
|
344
|
+
$[38] = t16;
|
|
342
345
|
} else {
|
|
343
|
-
|
|
346
|
+
t16 = $[38];
|
|
344
347
|
}
|
|
345
|
-
|
|
346
|
-
$[
|
|
347
|
-
$[
|
|
348
|
-
$[
|
|
348
|
+
t15 = messages.find(t16);
|
|
349
|
+
$[34] = editing_message_id;
|
|
350
|
+
$[35] = messages;
|
|
351
|
+
$[36] = t15;
|
|
349
352
|
} else {
|
|
350
|
-
|
|
353
|
+
t15 = $[36];
|
|
351
354
|
}
|
|
352
|
-
const currentlyEditingMessage =
|
|
353
|
-
let
|
|
354
|
-
if ($[
|
|
355
|
-
|
|
356
|
-
$[
|
|
357
|
-
$[
|
|
355
|
+
const currentlyEditingMessage = t15;
|
|
356
|
+
let t16;
|
|
357
|
+
if ($[39] !== reply_root_author_name) {
|
|
358
|
+
t16 = reply_root_author_name?.split(" ")[0];
|
|
359
|
+
$[39] = reply_root_author_name;
|
|
360
|
+
$[40] = t16;
|
|
358
361
|
} else {
|
|
359
|
-
|
|
362
|
+
t16 = $[40];
|
|
360
363
|
}
|
|
361
|
-
const replyRootAuthorFirstName =
|
|
364
|
+
const replyRootAuthorFirstName = t16;
|
|
362
365
|
const replyHeaderTitle = replyRootAuthorFirstName ? `Reply to ${replyRootAuthorFirstName}` : "Reply";
|
|
363
366
|
const muted = conversation.conversationMembership?.muted ?? conversation.muted;
|
|
364
367
|
const listRef = useRef(null);
|
|
365
368
|
const [hasDragged, setHasDragged] = useState(false);
|
|
366
369
|
const holdListPosition = behindLatest || readingHistory;
|
|
367
|
-
let
|
|
368
|
-
if ($[
|
|
369
|
-
|
|
370
|
+
let t17;
|
|
371
|
+
if ($[41] === Symbol.for("react.memo_cache_sentinel")) {
|
|
372
|
+
t17 = {
|
|
370
373
|
listRef,
|
|
371
374
|
enabled: Platform.OS === "ios"
|
|
372
375
|
};
|
|
373
|
-
$[
|
|
376
|
+
$[41] = t17;
|
|
374
377
|
} else {
|
|
375
|
-
|
|
378
|
+
t17 = $[41];
|
|
376
379
|
}
|
|
377
380
|
const {
|
|
378
381
|
restOffset,
|
|
@@ -380,36 +383,36 @@ function ConversationScreenContent(t0) {
|
|
|
380
383
|
onContentSizeChange,
|
|
381
384
|
onMomentumScrollEnd,
|
|
382
385
|
onScrollEndDrag
|
|
383
|
-
} = useRestAwayFromDismissEdge(
|
|
384
|
-
let
|
|
385
|
-
if ($[
|
|
386
|
-
|
|
386
|
+
} = useRestAwayFromDismissEdge(t17);
|
|
387
|
+
let t18;
|
|
388
|
+
if ($[42] !== restOffset) {
|
|
389
|
+
t18 = () => {
|
|
387
390
|
listRef.current?.scrollToOffset({
|
|
388
391
|
offset: restOffset
|
|
389
392
|
});
|
|
390
393
|
};
|
|
391
|
-
$[
|
|
392
|
-
$[
|
|
394
|
+
$[42] = restOffset;
|
|
395
|
+
$[43] = t18;
|
|
393
396
|
} else {
|
|
394
|
-
|
|
397
|
+
t18 = $[43];
|
|
395
398
|
}
|
|
396
|
-
const handleReturnToBottom =
|
|
397
|
-
let
|
|
398
|
-
if ($[
|
|
399
|
-
|
|
399
|
+
const handleReturnToBottom = t18;
|
|
400
|
+
let t19;
|
|
401
|
+
if ($[44] !== handleReturnToBottom || $[45] !== onExitAnchoredMode) {
|
|
402
|
+
t19 = () => {
|
|
400
403
|
onExitAnchoredMode();
|
|
401
404
|
handleReturnToBottom();
|
|
402
405
|
};
|
|
403
|
-
$[
|
|
404
|
-
$[
|
|
405
|
-
$[
|
|
406
|
+
$[44] = handleReturnToBottom;
|
|
407
|
+
$[45] = onExitAnchoredMode;
|
|
408
|
+
$[46] = t19;
|
|
406
409
|
} else {
|
|
407
|
-
|
|
410
|
+
t19 = $[46];
|
|
408
411
|
}
|
|
409
|
-
const exitAnchoredMode =
|
|
410
|
-
let
|
|
411
|
-
if ($[
|
|
412
|
-
|
|
412
|
+
const exitAnchoredMode = t19;
|
|
413
|
+
let t20;
|
|
414
|
+
if ($[47] !== anchored || $[48] !== exitAnchoredMode || $[49] !== handleReturnToBottom) {
|
|
415
|
+
t20 = () => {
|
|
413
416
|
setShowJumpToBottomButton(false);
|
|
414
417
|
if (anchored) {
|
|
415
418
|
exitAnchoredMode();
|
|
@@ -417,45 +420,45 @@ function ConversationScreenContent(t0) {
|
|
|
417
420
|
handleReturnToBottom();
|
|
418
421
|
}
|
|
419
422
|
};
|
|
420
|
-
$[
|
|
421
|
-
$[
|
|
422
|
-
$[
|
|
423
|
-
$[
|
|
423
|
+
$[47] = anchored;
|
|
424
|
+
$[48] = exitAnchoredMode;
|
|
425
|
+
$[49] = handleReturnToBottom;
|
|
426
|
+
$[50] = t20;
|
|
424
427
|
} else {
|
|
425
|
-
|
|
428
|
+
t20 = $[50];
|
|
426
429
|
}
|
|
427
|
-
const jumpToLatest =
|
|
428
|
-
let
|
|
429
|
-
if ($[
|
|
430
|
-
|
|
430
|
+
const jumpToLatest = t20;
|
|
431
|
+
let t21;
|
|
432
|
+
if ($[51] === Symbol.for("react.memo_cache_sentinel")) {
|
|
433
|
+
t21 = event => {
|
|
431
434
|
const offsetY = event.nativeEvent.contentOffset.y;
|
|
432
435
|
setShowJumpToBottomButton(offsetY > 200);
|
|
433
436
|
};
|
|
434
|
-
$[
|
|
437
|
+
$[51] = t21;
|
|
435
438
|
} else {
|
|
436
|
-
|
|
439
|
+
t21 = $[51];
|
|
437
440
|
}
|
|
438
|
-
const trackScroll =
|
|
439
|
-
let
|
|
440
|
-
if ($[
|
|
441
|
-
|
|
441
|
+
const trackScroll = t21;
|
|
442
|
+
let t22;
|
|
443
|
+
if ($[52] !== fetchPreviousPage || $[53] !== hasPreviousPage || $[54] !== isFetchingPreviousPage) {
|
|
444
|
+
t22 = () => {
|
|
442
445
|
if (!hasPreviousPage || isFetchingPreviousPage) {
|
|
443
446
|
return;
|
|
444
447
|
}
|
|
445
448
|
setHasDragged(false);
|
|
446
449
|
fetchPreviousPage();
|
|
447
450
|
};
|
|
448
|
-
$[
|
|
449
|
-
$[
|
|
450
|
-
$[
|
|
451
|
-
$[
|
|
451
|
+
$[52] = fetchPreviousPage;
|
|
452
|
+
$[53] = hasPreviousPage;
|
|
453
|
+
$[54] = isFetchingPreviousPage;
|
|
454
|
+
$[55] = t22;
|
|
452
455
|
} else {
|
|
453
|
-
|
|
456
|
+
t22 = $[55];
|
|
454
457
|
}
|
|
455
|
-
const loadNewerMessages =
|
|
456
|
-
let
|
|
457
|
-
if ($[
|
|
458
|
-
|
|
458
|
+
const loadNewerMessages = t22;
|
|
459
|
+
let t23;
|
|
460
|
+
if ($[56] !== badges?.[0] || $[57] !== conversation.deleted || $[58] !== muted || $[59] !== navigation || $[60] !== replyHeaderTitle || $[61] !== reply_root_id || $[62] !== title) {
|
|
461
|
+
t23 = () => {
|
|
459
462
|
if (reply_root_id) {
|
|
460
463
|
navigation.setParams({
|
|
461
464
|
title: replyHeaderTitle
|
|
@@ -469,86 +472,86 @@ function ConversationScreenContent(t0) {
|
|
|
469
472
|
});
|
|
470
473
|
}
|
|
471
474
|
};
|
|
472
|
-
$[
|
|
473
|
-
$[
|
|
474
|
-
$[
|
|
475
|
-
$[
|
|
476
|
-
$[
|
|
477
|
-
$[
|
|
478
|
-
$[
|
|
479
|
-
$[
|
|
480
|
-
} else {
|
|
481
|
-
|
|
482
|
-
}
|
|
483
|
-
const
|
|
484
|
-
let
|
|
485
|
-
if ($[
|
|
486
|
-
|
|
487
|
-
$[
|
|
488
|
-
$[
|
|
489
|
-
$[
|
|
490
|
-
$[
|
|
491
|
-
$[
|
|
492
|
-
$[
|
|
493
|
-
$[
|
|
494
|
-
$[
|
|
495
|
-
} else {
|
|
496
|
-
|
|
497
|
-
}
|
|
498
|
-
useEffect(
|
|
475
|
+
$[56] = badges?.[0];
|
|
476
|
+
$[57] = conversation.deleted;
|
|
477
|
+
$[58] = muted;
|
|
478
|
+
$[59] = navigation;
|
|
479
|
+
$[60] = replyHeaderTitle;
|
|
480
|
+
$[61] = reply_root_id;
|
|
481
|
+
$[62] = title;
|
|
482
|
+
$[63] = t23;
|
|
483
|
+
} else {
|
|
484
|
+
t23 = $[63];
|
|
485
|
+
}
|
|
486
|
+
const t24 = conversation?.deleted;
|
|
487
|
+
let t25;
|
|
488
|
+
if ($[64] !== badges || $[65] !== muted || $[66] !== navigation || $[67] !== replyHeaderTitle || $[68] !== reply_root_id || $[69] !== t24 || $[70] !== title) {
|
|
489
|
+
t25 = [navigation, title, badges, t24, reply_root_id, replyHeaderTitle, muted];
|
|
490
|
+
$[64] = badges;
|
|
491
|
+
$[65] = muted;
|
|
492
|
+
$[66] = navigation;
|
|
493
|
+
$[67] = replyHeaderTitle;
|
|
494
|
+
$[68] = reply_root_id;
|
|
495
|
+
$[69] = t24;
|
|
496
|
+
$[70] = title;
|
|
497
|
+
$[71] = t25;
|
|
498
|
+
} else {
|
|
499
|
+
t25 = $[71];
|
|
500
|
+
}
|
|
501
|
+
useEffect(t23, t25);
|
|
499
502
|
if (!conversation || conversation.deleted) {
|
|
500
|
-
let
|
|
501
|
-
if ($[
|
|
502
|
-
|
|
503
|
+
let t26;
|
|
504
|
+
if ($[72] === Symbol.for("react.memo_cache_sentinel")) {
|
|
505
|
+
t26 = /*#__PURE__*/_jsx(BlankState.Imagery, {
|
|
503
506
|
name: "general.outlinedTextMessage"
|
|
504
507
|
});
|
|
505
|
-
$[
|
|
508
|
+
$[72] = t26;
|
|
506
509
|
} else {
|
|
507
|
-
|
|
510
|
+
t26 = $[72];
|
|
508
511
|
}
|
|
509
|
-
let
|
|
510
|
-
if ($[
|
|
511
|
-
|
|
512
|
+
let t27;
|
|
513
|
+
if ($[73] === Symbol.for("react.memo_cache_sentinel")) {
|
|
514
|
+
t27 = /*#__PURE__*/_jsx(BlankState.Content, {
|
|
512
515
|
children: /*#__PURE__*/_jsx(BlankState.Heading, {
|
|
513
516
|
children: "This conversation has been deleted"
|
|
514
517
|
})
|
|
515
518
|
});
|
|
516
|
-
$[
|
|
519
|
+
$[73] = t27;
|
|
517
520
|
} else {
|
|
518
|
-
|
|
521
|
+
t27 = $[73];
|
|
519
522
|
}
|
|
520
|
-
let
|
|
521
|
-
if ($[
|
|
522
|
-
|
|
523
|
-
children: [
|
|
523
|
+
let t28;
|
|
524
|
+
if ($[74] !== navigation.goBack) {
|
|
525
|
+
t28 = /*#__PURE__*/_jsxs(BlankState.Root, {
|
|
526
|
+
children: [t26, t27, /*#__PURE__*/_jsx(BlankState.Button, {
|
|
524
527
|
onPress: navigation.goBack,
|
|
525
528
|
title: "Back to conversations",
|
|
526
529
|
accessibilityHint: "Navigates back to the conversations list",
|
|
527
530
|
accessibilityRole: "link"
|
|
528
531
|
})]
|
|
529
532
|
});
|
|
530
|
-
$[
|
|
531
|
-
$[
|
|
533
|
+
$[74] = navigation.goBack;
|
|
534
|
+
$[75] = t28;
|
|
532
535
|
} else {
|
|
533
|
-
|
|
536
|
+
t28 = $[75];
|
|
534
537
|
}
|
|
535
|
-
let
|
|
536
|
-
if ($[
|
|
537
|
-
|
|
538
|
+
let t29;
|
|
539
|
+
if ($[76] !== styles.container || $[77] !== t28) {
|
|
540
|
+
t29 = /*#__PURE__*/_jsx(View, {
|
|
538
541
|
style: styles.container,
|
|
539
|
-
children:
|
|
542
|
+
children: t28
|
|
540
543
|
});
|
|
541
|
-
$[
|
|
542
|
-
$[76] = t27;
|
|
544
|
+
$[76] = styles.container;
|
|
543
545
|
$[77] = t28;
|
|
546
|
+
$[78] = t29;
|
|
544
547
|
} else {
|
|
545
|
-
|
|
548
|
+
t29 = $[78];
|
|
546
549
|
}
|
|
547
|
-
return
|
|
550
|
+
return t29;
|
|
548
551
|
}
|
|
549
|
-
let
|
|
550
|
-
if ($[
|
|
551
|
-
|
|
552
|
+
let t26;
|
|
553
|
+
if ($[79] !== anchor || $[80] !== anchored || $[81] !== conversation || $[82] !== conversation_id || $[83] !== fetchNextPage || $[84] !== hasDragged || $[85] !== hasNextPage || $[86] !== holdListPosition || $[87] !== loadNewerMessages || $[88] !== messages || $[89] !== noMessages || $[90] !== onContentSizeChange || $[91] !== onLayout || $[92] !== onMomentumScrollEnd || $[93] !== onScrollEndDrag || $[94] !== reply_root_id || $[95] !== styles.emptyState) {
|
|
554
|
+
t26 = noMessages ? /*#__PURE__*/_jsx(View, {
|
|
552
555
|
style: styles.emptyState,
|
|
553
556
|
children: /*#__PURE__*/_jsx(ConversationStartBanner, {
|
|
554
557
|
conversation: conversation,
|
|
@@ -575,59 +578,59 @@ function ConversationScreenContent(t0) {
|
|
|
575
578
|
minIndexForVisible: 0
|
|
576
579
|
} : undefined
|
|
577
580
|
});
|
|
578
|
-
$[
|
|
579
|
-
$[
|
|
580
|
-
$[
|
|
581
|
-
$[
|
|
582
|
-
$[
|
|
583
|
-
$[
|
|
584
|
-
$[
|
|
585
|
-
$[
|
|
586
|
-
$[
|
|
587
|
-
$[
|
|
588
|
-
$[
|
|
589
|
-
$[
|
|
590
|
-
$[
|
|
591
|
-
$[
|
|
592
|
-
$[
|
|
593
|
-
$[
|
|
594
|
-
$[
|
|
595
|
-
$[
|
|
596
|
-
} else {
|
|
597
|
-
|
|
598
|
-
}
|
|
599
|
-
const
|
|
600
|
-
let
|
|
601
|
-
if ($[
|
|
602
|
-
|
|
581
|
+
$[79] = anchor;
|
|
582
|
+
$[80] = anchored;
|
|
583
|
+
$[81] = conversation;
|
|
584
|
+
$[82] = conversation_id;
|
|
585
|
+
$[83] = fetchNextPage;
|
|
586
|
+
$[84] = hasDragged;
|
|
587
|
+
$[85] = hasNextPage;
|
|
588
|
+
$[86] = holdListPosition;
|
|
589
|
+
$[87] = loadNewerMessages;
|
|
590
|
+
$[88] = messages;
|
|
591
|
+
$[89] = noMessages;
|
|
592
|
+
$[90] = onContentSizeChange;
|
|
593
|
+
$[91] = onLayout;
|
|
594
|
+
$[92] = onMomentumScrollEnd;
|
|
595
|
+
$[93] = onScrollEndDrag;
|
|
596
|
+
$[94] = reply_root_id;
|
|
597
|
+
$[95] = styles.emptyState;
|
|
598
|
+
$[96] = t26;
|
|
599
|
+
} else {
|
|
600
|
+
t26 = $[96];
|
|
601
|
+
}
|
|
602
|
+
const t27 = behindLatest || showJumpToBottomButton;
|
|
603
|
+
let t28;
|
|
604
|
+
if ($[97] !== jumpToLatest || $[98] !== t27) {
|
|
605
|
+
t28 = /*#__PURE__*/_jsx(JumpToBottomButton, {
|
|
603
606
|
onPress: jumpToLatest,
|
|
604
|
-
visible:
|
|
607
|
+
visible: t27
|
|
605
608
|
});
|
|
606
|
-
$[
|
|
607
|
-
$[97] = t26;
|
|
609
|
+
$[97] = jumpToLatest;
|
|
608
610
|
$[98] = t27;
|
|
611
|
+
$[99] = t28;
|
|
609
612
|
} else {
|
|
610
|
-
|
|
611
|
-
}
|
|
612
|
-
let t28;
|
|
613
|
-
if ($[99] !== noMessages) {
|
|
614
|
-
t28 = !noMessages && /*#__PURE__*/_jsx(TypingIndicator, {});
|
|
615
|
-
$[99] = noMessages;
|
|
616
|
-
$[100] = t28;
|
|
617
|
-
} else {
|
|
618
|
-
t28 = $[100];
|
|
613
|
+
t28 = $[99];
|
|
619
614
|
}
|
|
620
615
|
let t29;
|
|
621
|
-
if ($[
|
|
622
|
-
t29 =
|
|
623
|
-
$[
|
|
624
|
-
$[
|
|
616
|
+
if ($[100] !== noMessages) {
|
|
617
|
+
t29 = !noMessages && /*#__PURE__*/_jsx(TypingIndicator, {});
|
|
618
|
+
$[100] = noMessages;
|
|
619
|
+
$[101] = t29;
|
|
625
620
|
} else {
|
|
626
|
-
t29 = $[
|
|
621
|
+
t29 = $[101];
|
|
627
622
|
}
|
|
628
623
|
let t30;
|
|
629
|
-
if ($[
|
|
630
|
-
t30 = /*#__PURE__*/_jsx(
|
|
624
|
+
if ($[102] !== showLeaderDisabledReplyBanner) {
|
|
625
|
+
t30 = showLeaderDisabledReplyBanner && /*#__PURE__*/_jsx(LeaderMessagesDisabledBanner, {});
|
|
626
|
+
$[102] = showLeaderDisabledReplyBanner;
|
|
627
|
+
$[103] = t30;
|
|
628
|
+
} else {
|
|
629
|
+
t30 = $[103];
|
|
630
|
+
}
|
|
631
|
+
let t31;
|
|
632
|
+
if ($[104] !== canReply || $[105] !== conversation || $[106] !== currentlyEditingMessage || $[107] !== jumpToLatest || $[108] !== markHandledByMessageForm || $[109] !== replyRootAuthorFirstName || $[110] !== reply_root_id) {
|
|
633
|
+
t31 = /*#__PURE__*/_jsx(ConversationBottomBar, {
|
|
631
634
|
conversation: conversation,
|
|
632
635
|
canReply: canReply,
|
|
633
636
|
replyRootAuthorFirstName: replyRootAuthorFirstName,
|
|
@@ -636,44 +639,44 @@ function ConversationScreenContent(t0) {
|
|
|
636
639
|
onFlaggedInMessageForm: markHandledByMessageForm,
|
|
637
640
|
onBeforeSubmit: jumpToLatest
|
|
638
641
|
});
|
|
639
|
-
$[
|
|
640
|
-
$[
|
|
641
|
-
$[
|
|
642
|
-
$[
|
|
643
|
-
$[
|
|
644
|
-
$[
|
|
645
|
-
$[
|
|
646
|
-
$[
|
|
642
|
+
$[104] = canReply;
|
|
643
|
+
$[105] = conversation;
|
|
644
|
+
$[106] = currentlyEditingMessage;
|
|
645
|
+
$[107] = jumpToLatest;
|
|
646
|
+
$[108] = markHandledByMessageForm;
|
|
647
|
+
$[109] = replyRootAuthorFirstName;
|
|
648
|
+
$[110] = reply_root_id;
|
|
649
|
+
$[111] = t31;
|
|
647
650
|
} else {
|
|
648
|
-
|
|
651
|
+
t31 = $[111];
|
|
649
652
|
}
|
|
650
|
-
let
|
|
651
|
-
if ($[
|
|
652
|
-
|
|
653
|
-
children: [
|
|
653
|
+
let t32;
|
|
654
|
+
if ($[112] !== t26 || $[113] !== t28 || $[114] !== t29 || $[115] !== t30 || $[116] !== t31) {
|
|
655
|
+
t32 = /*#__PURE__*/_jsxs(KeyboardView, {
|
|
656
|
+
children: [t26, t28, t29, t30, t31]
|
|
654
657
|
});
|
|
655
|
-
$[
|
|
656
|
-
$[112] = t27;
|
|
658
|
+
$[112] = t26;
|
|
657
659
|
$[113] = t28;
|
|
658
660
|
$[114] = t29;
|
|
659
661
|
$[115] = t30;
|
|
660
662
|
$[116] = t31;
|
|
663
|
+
$[117] = t32;
|
|
661
664
|
} else {
|
|
662
|
-
|
|
665
|
+
t32 = $[117];
|
|
663
666
|
}
|
|
664
|
-
let
|
|
665
|
-
if ($[
|
|
666
|
-
|
|
667
|
+
let t33;
|
|
668
|
+
if ($[118] !== styles.container || $[119] !== t32) {
|
|
669
|
+
t33 = /*#__PURE__*/_jsx(View, {
|
|
667
670
|
style: styles.container,
|
|
668
|
-
children:
|
|
671
|
+
children: t32
|
|
669
672
|
});
|
|
670
|
-
$[
|
|
671
|
-
$[118] = t31;
|
|
673
|
+
$[118] = styles.container;
|
|
672
674
|
$[119] = t32;
|
|
675
|
+
$[120] = t33;
|
|
673
676
|
} else {
|
|
674
|
-
|
|
677
|
+
t33 = $[120];
|
|
675
678
|
}
|
|
676
|
-
return
|
|
679
|
+
return t33;
|
|
677
680
|
}
|
|
678
681
|
function ConversationBottomBar(t0) {
|
|
679
682
|
const $ = _c(16);
|