@planningcenter/chat-react-native 4.2.1-qa-staging.3 → 4.2.1-rc.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.
Files changed (169) hide show
  1. package/build/components/conversation/message_form.d.ts +1 -2
  2. package/build/components/conversation/message_form.d.ts.map +1 -1
  3. package/build/components/conversation/message_form.js +51 -54
  4. package/build/components/conversation/message_form.js.map +1 -1
  5. package/build/components/conversation/message_list.d.ts +2 -3
  6. package/build/components/conversation/message_list.d.ts.map +1 -1
  7. package/build/components/conversation/message_list.js +66 -152
  8. package/build/components/conversation/message_list.js.map +1 -1
  9. package/build/contexts/conversation_context.d.ts +1 -3
  10. package/build/contexts/conversation_context.d.ts.map +1 -1
  11. package/build/contexts/conversation_context.js +18 -23
  12. package/build/contexts/conversation_context.js.map +1 -1
  13. package/build/hooks/index.d.ts +0 -1
  14. package/build/hooks/index.d.ts.map +1 -1
  15. package/build/hooks/index.js +0 -1
  16. package/build/hooks/index.js.map +1 -1
  17. package/build/hooks/paginator_meta.d.ts +1 -3
  18. package/build/hooks/paginator_meta.d.ts.map +1 -1
  19. package/build/hooks/paginator_meta.js +8 -25
  20. package/build/hooks/paginator_meta.js.map +1 -1
  21. package/build/hooks/use_api.d.ts.map +1 -1
  22. package/build/hooks/use_api.js +8 -5
  23. package/build/hooks/use_api.js.map +1 -1
  24. package/build/hooks/use_conversation_messages.d.ts +2 -9
  25. package/build/hooks/use_conversation_messages.d.ts.map +1 -1
  26. package/build/hooks/use_conversation_messages.js +45 -84
  27. package/build/hooks/use_conversation_messages.js.map +1 -1
  28. package/build/hooks/use_conversation_messages_jolt_events.d.ts +1 -17
  29. package/build/hooks/use_conversation_messages_jolt_events.d.ts.map +1 -1
  30. package/build/hooks/use_conversation_messages_jolt_events.js +80 -89
  31. package/build/hooks/use_conversation_messages_jolt_events.js.map +1 -1
  32. package/build/hooks/use_mark_latest_message_read.d.ts +1 -2
  33. package/build/hooks/use_mark_latest_message_read.d.ts.map +1 -1
  34. package/build/hooks/use_mark_latest_message_read.js +3 -4
  35. package/build/hooks/use_mark_latest_message_read.js.map +1 -1
  36. package/build/hooks/use_message_create_or_update.d.ts.map +1 -1
  37. package/build/hooks/use_message_create_or_update.js +80 -91
  38. package/build/hooks/use_message_create_or_update.js.map +1 -1
  39. package/build/hooks/use_message_reaction_toggle.d.ts.map +1 -1
  40. package/build/hooks/use_message_reaction_toggle.js +40 -45
  41. package/build/hooks/use_message_reaction_toggle.js.map +1 -1
  42. package/build/hooks/use_suspense_api.d.ts.map +1 -1
  43. package/build/hooks/use_suspense_api.js +8 -5
  44. package/build/hooks/use_suspense_api.js.map +1 -1
  45. package/build/screens/conversation_new/components/services_form.js +8 -9
  46. package/build/screens/conversation_new/components/services_form.js.map +1 -1
  47. package/build/screens/conversation_screen.d.ts +0 -1
  48. package/build/screens/conversation_screen.d.ts.map +1 -1
  49. package/build/screens/conversation_screen.js +251 -466
  50. package/build/screens/conversation_screen.js.map +1 -1
  51. package/build/screens/message_actions_screen.d.ts.map +1 -1
  52. package/build/screens/message_actions_screen.js +26 -21
  53. package/build/screens/message_actions_screen.js.map +1 -1
  54. package/build/screens/message_report_screen.d.ts.map +1 -1
  55. package/build/screens/message_report_screen.js +44 -17
  56. package/build/screens/message_report_screen.js.map +1 -1
  57. package/build/screens/reactions_screen.d.ts.map +1 -1
  58. package/build/screens/reactions_screen.js +88 -70
  59. package/build/screens/reactions_screen.js.map +1 -1
  60. package/build/types/api_primitives.d.ts +0 -2
  61. package/build/types/api_primitives.d.ts.map +1 -1
  62. package/build/types/api_primitives.js.map +1 -1
  63. package/build/types/resources/member.d.ts +0 -1
  64. package/build/types/resources/member.d.ts.map +1 -1
  65. package/build/types/resources/member.js.map +1 -1
  66. package/build/utils/cache/optimistically_update_message.d.ts +1 -2
  67. package/build/utils/cache/optimistically_update_message.d.ts.map +1 -1
  68. package/build/utils/cache/optimistically_update_message.js +4 -4
  69. package/build/utils/cache/optimistically_update_message.js.map +1 -1
  70. package/build/utils/client/types.d.ts +0 -1
  71. package/build/utils/client/types.d.ts.map +1 -1
  72. package/build/utils/client/types.js.map +1 -1
  73. package/build/utils/generate_placeholder_ulid.d.ts +6 -0
  74. package/build/utils/generate_placeholder_ulid.d.ts.map +1 -1
  75. package/build/utils/generate_placeholder_ulid.js +2 -2
  76. package/build/utils/generate_placeholder_ulid.js.map +1 -1
  77. package/build/utils/request/get_messages.d.ts +6 -18
  78. package/build/utils/request/get_messages.d.ts.map +1 -1
  79. package/build/utils/request/get_messages.js +12 -10
  80. package/build/utils/request/get_messages.js.map +1 -1
  81. package/package.json +3 -3
  82. package/src/__tests__/hooks/paginator_meta.test.ts +2 -73
  83. package/src/components/conversation/__tests__/message_list.test.tsx +0 -42
  84. package/src/components/conversation/message_form.tsx +0 -3
  85. package/src/components/conversation/message_list.tsx +4 -58
  86. package/src/contexts/conversation_context.tsx +1 -6
  87. package/src/hooks/index.ts +0 -1
  88. package/src/hooks/paginator_meta.ts +5 -29
  89. package/src/hooks/use_api.ts +5 -4
  90. package/src/hooks/use_conversation_messages.ts +11 -52
  91. package/src/hooks/use_conversation_messages_jolt_events.ts +43 -62
  92. package/src/hooks/use_mark_latest_message_read.ts +3 -4
  93. package/src/hooks/use_message_create_or_update.ts +8 -8
  94. package/src/hooks/use_message_reaction_toggle.ts +1 -3
  95. package/src/hooks/use_suspense_api.ts +5 -4
  96. package/src/screens/conversation_new/components/services_form.tsx +5 -5
  97. package/src/screens/conversation_screen.tsx +16 -119
  98. package/src/screens/message_actions_screen.tsx +5 -3
  99. package/src/screens/message_report_screen.tsx +3 -2
  100. package/src/screens/reactions_screen.tsx +4 -2
  101. package/src/types/api_primitives.ts +0 -2
  102. package/src/types/resources/member.ts +0 -1
  103. package/src/utils/cache/optimistically_update_message.ts +5 -2
  104. package/src/utils/client/types.ts +0 -1
  105. package/src/utils/generate_placeholder_ulid.ts +2 -2
  106. package/src/utils/request/get_messages.ts +14 -12
  107. package/build/components/conversation/anchor_not_found_boundary.d.ts +0 -18
  108. package/build/components/conversation/anchor_not_found_boundary.d.ts.map +0 -1
  109. package/build/components/conversation/anchor_not_found_boundary.js +0 -20
  110. package/build/components/conversation/anchor_not_found_boundary.js.map +0 -1
  111. package/build/hooks/use_conversation_message_lookup.d.ts +0 -7
  112. package/build/hooks/use_conversation_message_lookup.d.ts.map +0 -1
  113. package/build/hooks/use_conversation_message_lookup.js +0 -52
  114. package/build/hooks/use_conversation_message_lookup.js.map +0 -1
  115. package/build/hooks/use_direct_message_eligibility.d.ts +0 -14
  116. package/build/hooks/use_direct_message_eligibility.d.ts.map +0 -1
  117. package/build/hooks/use_direct_message_eligibility.js +0 -87
  118. package/build/hooks/use_direct_message_eligibility.js.map +0 -1
  119. package/build/hooks/use_fetch_newer_messages.d.ts +0 -8
  120. package/build/hooks/use_fetch_newer_messages.d.ts.map +0 -1
  121. package/build/hooks/use_fetch_newer_messages.js +0 -62
  122. package/build/hooks/use_fetch_newer_messages.js.map +0 -1
  123. package/build/hooks/use_fetch_newer_on_foreground.d.ts +0 -8
  124. package/build/hooks/use_fetch_newer_on_foreground.d.ts.map +0 -1
  125. package/build/hooks/use_fetch_newer_on_foreground.js +0 -42
  126. package/build/hooks/use_fetch_newer_on_foreground.js.map +0 -1
  127. package/build/hooks/use_held_back_messages.d.ts +0 -11
  128. package/build/hooks/use_held_back_messages.d.ts.map +0 -1
  129. package/build/hooks/use_held_back_messages.js +0 -24
  130. package/build/hooks/use_held_back_messages.js.map +0 -1
  131. package/build/utils/cache/find_message_in_caches.d.ts +0 -4
  132. package/build/utils/cache/find_message_in_caches.d.ts.map +0 -1
  133. package/build/utils/cache/find_message_in_caches.js +0 -16
  134. package/build/utils/cache/find_message_in_caches.js.map +0 -1
  135. package/build/utils/cache/prepend_newer_page.d.ts +0 -7
  136. package/build/utils/cache/prepend_newer_page.d.ts.map +0 -1
  137. package/build/utils/cache/prepend_newer_page.js +0 -15
  138. package/build/utils/cache/prepend_newer_page.js.map +0 -1
  139. package/build/utils/gated_message_cache.d.ts +0 -7
  140. package/build/utils/gated_message_cache.d.ts.map +0 -1
  141. package/build/utils/gated_message_cache.js +0 -13
  142. package/build/utils/gated_message_cache.js.map +0 -1
  143. package/build/utils/ulid.d.ts +0 -3
  144. package/build/utils/ulid.d.ts.map +0 -1
  145. package/build/utils/ulid.js +0 -7
  146. package/build/utils/ulid.js.map +0 -1
  147. package/src/__tests__/hooks/use_conversation_messages.test.ts +0 -22
  148. package/src/__tests__/hooks/use_conversation_messages_jolt_events.test.ts +0 -33
  149. package/src/__tests__/hooks/use_direct_message_eligibility.test.tsx +0 -83
  150. package/src/__tests__/screens/conversation_new/components/services_form.test.tsx +0 -91
  151. package/src/__tests__/utils/gated_message_cache.test.ts +0 -26
  152. package/src/__tests__/utils/request/get_messages.test.ts +0 -24
  153. package/src/__tests__/utils/ulid.test.ts +0 -15
  154. package/src/components/conversation/__tests__/anchor_not_found_boundary.test.tsx +0 -51
  155. package/src/components/conversation/anchor_not_found_boundary.tsx +0 -21
  156. package/src/hooks/__tests__/use_fetch_newer_messages.test.tsx +0 -68
  157. package/src/hooks/__tests__/use_held_back_messages.test.tsx +0 -60
  158. package/src/hooks/__tests__/use_message_reaction_toggle.test.tsx +0 -73
  159. package/src/hooks/use_conversation_message_lookup.ts +0 -29
  160. package/src/hooks/use_direct_message_eligibility.ts +0 -40
  161. package/src/hooks/use_fetch_newer_messages.ts +0 -44
  162. package/src/hooks/use_fetch_newer_on_foreground.ts +0 -25
  163. package/src/hooks/use_held_back_messages.ts +0 -33
  164. package/src/utils/cache/__tests__/find_message_in_caches.test.ts +0 -37
  165. package/src/utils/cache/__tests__/prepend_newer_page.test.ts +0 -34
  166. package/src/utils/cache/find_message_in_caches.ts +0 -20
  167. package/src/utils/cache/prepend_newer_page.ts +0 -19
  168. package/src/utils/gated_message_cache.ts +0 -19
  169. package/src/utils/ulid.ts +0 -11
@@ -1,11 +1,10 @@
1
1
  import { c as _c } from "react/compiler-runtime";
2
2
  import { HeaderTitle, PlatformPressable } from '@react-navigation/elements';
3
3
  import { CommonActions, useNavigation, useTheme as useNavigationTheme, useRoute } from '@react-navigation/native';
4
- import React, { startTransition, useCallback, useEffect, useRef, useState } from 'react';
4
+ import React, { useCallback, useEffect, useRef, useState } from 'react';
5
5
  import { Platform, StyleSheet, useWindowDimensions, View } from 'react-native';
6
6
  import { useSafeAreaInsets } from 'react-native-safe-area-context';
7
7
  import { Badge, Icon } from '../components';
8
- import { AnchorNotFoundBoundary } from '../components/conversation/anchor_not_found_boundary';
9
8
  import { ConversationStartBanner } from '../components/conversation/conversation_start_banner';
10
9
  import { JumpToBottomButton } from '../components/conversation/jump_to_bottom_button';
11
10
  import { MessageForm } from '../components/conversation/message_form';
@@ -21,26 +20,19 @@ import { useConversation } from '../hooks/use_conversation';
21
20
  import { useConversationJoltEvents } from '../hooks/use_conversation_jolt_events';
22
21
  import { useConversationMessages } from '../hooks/use_conversation_messages';
23
22
  import { useConversationMessagesJoltEvents } from '../hooks/use_conversation_messages_jolt_events';
24
- import { useFetchNewerMessages } from '../hooks/use_fetch_newer_messages';
25
- import { useFetchNewerOnForeground } from '../hooks/use_fetch_newer_on_foreground';
26
- import { useHeldBackMessages } from '../hooks/use_held_back_messages';
27
23
  import { useMarkLatestMessageRead } from '../hooks/use_mark_latest_message_read';
28
24
  import { analyticsEvents, normalizeAnalyticsMetadata, usePublishProductAnalyticsEvent } from '../hooks/use_product_analytics';
29
25
  import { useRestAwayFromDismissEdge } from '../hooks/use_rest_away_from_dismiss_edge';
30
26
  import { useVideoModerationJoltEvents } from '../hooks/use_video_moderation_jolt_events';
31
- import { gatedMessageCache } from '../utils/gated_message_cache';
32
- import { getMessagesQueryKey } from '../utils/request/get_messages';
33
- import { decodeUlidTime } from '../utils/ulid';
34
27
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
35
28
  export function ConversationScreen(t0) {
36
- const $ = _c(24);
29
+ const $ = _c(13);
37
30
  const {
38
31
  route
39
32
  } = t0;
40
33
  const {
41
34
  conversation_id,
42
- reply_root_id,
43
- initial_message_id
35
+ reply_root_id
44
36
  } = route.params;
45
37
  let t1;
46
38
  if ($[0] !== conversation_id) {
@@ -56,111 +48,57 @@ export function ConversationScreen(t0) {
56
48
  data: conversation
57
49
  } = useConversation(t1);
58
50
  let t2;
59
- if ($[2] !== conversation?.lastMessageCreatedAt || $[3] !== initial_message_id) {
60
- t2 = () => isBeforeLatestMessage(initial_message_id, conversation?.lastMessageCreatedAt) ? initial_message_id : null;
61
- $[2] = conversation?.lastMessageCreatedAt;
62
- $[3] = initial_message_id;
63
- $[4] = t2;
51
+ if ($[2] !== conversation) {
52
+ t2 = normalizeAnalyticsMetadata(conversation);
53
+ $[2] = conversation;
54
+ $[3] = t2;
64
55
  } else {
65
- t2 = $[4];
56
+ t2 = $[3];
66
57
  }
67
- const [anchor, setAnchor] = useState(t2);
68
58
  let t3;
69
- if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
70
- t3 = () => startTransition(() => setAnchor(null));
71
- $[5] = t3;
72
- } else {
73
- t3 = $[5];
74
- }
75
- const exitAnchoredMode = t3;
76
- let t4;
77
- if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
78
- t4 = () => setAnchor(null);
79
- $[6] = t4;
59
+ if ($[4] !== reply_root_id || $[5] !== t2) {
60
+ t3 = {
61
+ reply_root_id,
62
+ ...t2
63
+ };
64
+ $[4] = reply_root_id;
65
+ $[5] = t2;
66
+ $[6] = t3;
80
67
  } else {
81
- t4 = $[6];
68
+ t3 = $[6];
82
69
  }
83
- const dropAnchor = t4;
70
+ usePublishProductAnalyticsEvent(analyticsEvents.conversation_show_opened, t3);
71
+ const t4 = reply_root_id ?? null;
84
72
  let t5;
85
- if ($[7] !== conversation) {
86
- t5 = normalizeAnalyticsMetadata(conversation);
87
- $[7] = conversation;
73
+ if ($[7] !== route) {
74
+ t5 = /*#__PURE__*/_jsx(ConversationScreenContent, {
75
+ route: route
76
+ });
77
+ $[7] = route;
88
78
  $[8] = t5;
89
79
  } else {
90
80
  t5 = $[8];
91
81
  }
92
82
  let t6;
93
- if ($[9] !== reply_root_id || $[10] !== t5) {
94
- t6 = {
95
- reply_root_id,
96
- ...t5
97
- };
98
- $[9] = reply_root_id;
99
- $[10] = t5;
100
- $[11] = t6;
101
- } else {
102
- t6 = $[11];
103
- }
104
- usePublishProductAnalyticsEvent(analyticsEvents.conversation_show_opened, t6);
105
- const t7 = reply_root_id ?? null;
106
- let t8;
107
- if ($[12] !== anchor || $[13] !== conversation_id || $[14] !== reply_root_id) {
108
- t8 = getMessagesQueryKey({
109
- conversation_id,
110
- reply_root_id,
111
- anchor
112
- });
113
- $[12] = anchor;
114
- $[13] = conversation_id;
115
- $[14] = reply_root_id;
116
- $[15] = t8;
117
- } else {
118
- t8 = $[15];
119
- }
120
- let t9;
121
- if ($[16] !== anchor || $[17] !== route) {
122
- t9 = anchor ? /*#__PURE__*/_jsx(AnchorNotFoundBoundary, {
123
- onAnchorNotFound: dropAnchor,
124
- children: /*#__PURE__*/_jsx(ConversationScreenContent, {
125
- route: route,
126
- anchor: anchor,
127
- onExitAnchoredMode: exitAnchoredMode
128
- })
129
- }) : /*#__PURE__*/_jsx(ConversationScreenContent, {
130
- route: route,
131
- anchor: null,
132
- onExitAnchoredMode: exitAnchoredMode
133
- });
134
- $[16] = anchor;
135
- $[17] = route;
136
- $[18] = t9;
137
- } else {
138
- t9 = $[18];
139
- }
140
- let t10;
141
- if ($[19] !== conversation_id || $[20] !== t7 || $[21] !== t8 || $[22] !== t9) {
142
- t10 = /*#__PURE__*/_jsx(ConversationContextProvider, {
83
+ if ($[9] !== conversation_id || $[10] !== t4 || $[11] !== t5) {
84
+ t6 = /*#__PURE__*/_jsx(ConversationContextProvider, {
143
85
  conversationId: conversation_id,
144
- currentPageReplyRootId: t7,
145
- messagesQueryKey: t8,
146
- children: t9
86
+ currentPageReplyRootId: t4,
87
+ children: t5
147
88
  });
148
- $[19] = conversation_id;
149
- $[20] = t7;
150
- $[21] = t8;
151
- $[22] = t9;
152
- $[23] = t10;
89
+ $[9] = conversation_id;
90
+ $[10] = t4;
91
+ $[11] = t5;
92
+ $[12] = t6;
153
93
  } else {
154
- t10 = $[23];
94
+ t6 = $[12];
155
95
  }
156
- return t10;
96
+ return t6;
157
97
  }
158
98
  function ConversationScreenContent(t0) {
159
- const $ = _c(118);
99
+ const $ = _c(80);
160
100
  const {
161
- route,
162
- anchor,
163
- onExitAnchoredMode
101
+ route
164
102
  } = t0;
165
103
  const styles = useStyles();
166
104
  const navigation = useNavigation();
@@ -173,147 +111,62 @@ function ConversationScreenContent(t0) {
173
111
  const {
174
112
  data: conversation
175
113
  } = useConversation(route.params);
176
- const anchored = !!anchor;
177
114
  let t1;
178
- if ($[0] !== anchor || $[1] !== conversation_id || $[2] !== reply_root_id) {
115
+ if ($[0] !== conversation_id || $[1] !== reply_root_id) {
179
116
  t1 = {
180
117
  conversation_id,
181
- reply_root_id,
182
- anchor
118
+ reply_root_id
183
119
  };
184
- $[0] = anchor;
185
- $[1] = conversation_id;
186
- $[2] = reply_root_id;
187
- $[3] = t1;
120
+ $[0] = conversation_id;
121
+ $[1] = reply_root_id;
122
+ $[2] = t1;
188
123
  } else {
189
- t1 = $[3];
124
+ t1 = $[2];
190
125
  }
191
126
  const {
192
127
  messages,
193
128
  fetchNextPage,
194
- hasNextPage,
195
- fetchPreviousPage,
196
- hasPreviousPage,
197
- isFetchingPreviousPage,
198
- queryKey
129
+ hasNextPage
199
130
  } = useConversationMessages(t1);
200
- const behindLatest = anchored && hasPreviousPage;
201
- const caughtUp = !hasPreviousPage;
202
- const [showJumpToBottomButton, setShowJumpToBottomButton] = useState(false);
203
- const readingHistory = showJumpToBottomButton;
204
- const newestMessageId = messages[0]?.id;
205
131
  let t2;
206
- if ($[4] !== conversation_id || $[5] !== queryKey || $[6] !== reply_root_id) {
132
+ if ($[3] !== conversation_id) {
207
133
  t2 = {
208
- conversation_id,
209
- reply_root_id,
210
- queryKey
134
+ conversationId: conversation_id
211
135
  };
212
- $[4] = conversation_id;
213
- $[5] = queryKey;
214
- $[6] = reply_root_id;
215
- $[7] = t2;
136
+ $[3] = conversation_id;
137
+ $[4] = t2;
216
138
  } else {
217
- t2 = $[7];
139
+ t2 = $[4];
218
140
  }
219
- const fetchNewer = useFetchNewerMessages(t2);
141
+ useConversationJoltEvents(t2);
220
142
  let t3;
221
- if ($[8] !== caughtUp || $[9] !== fetchNewer || $[10] !== newestMessageId || $[11] !== readingHistory) {
143
+ if ($[5] !== conversation_id) {
222
144
  t3 = {
223
- fetchNewer,
224
- newestMessageId,
225
- readingHistory,
226
- caughtUp
227
- };
228
- $[8] = caughtUp;
229
- $[9] = fetchNewer;
230
- $[10] = newestMessageId;
231
- $[11] = readingHistory;
232
- $[12] = t3;
233
- } else {
234
- t3 = $[12];
235
- }
236
- const {
237
- onSkippedNewMessage
238
- } = useHeldBackMessages(t3);
239
- let t4;
240
- if ($[13] !== conversation_id) {
241
- t4 = {
242
145
  conversationId: conversation_id
243
146
  };
244
- $[13] = conversation_id;
245
- $[14] = t4;
246
- } else {
247
- t4 = $[14];
248
- }
249
- useConversationJoltEvents(t4);
250
- const t5 = reply_root_id ?? null;
251
- const t6 = caughtUp && !readingHistory;
252
- let t7;
253
- if ($[15] !== onSkippedNewMessage || $[16] !== queryKey || $[17] !== t6) {
254
- t7 = gatedMessageCache({
255
- queryKey,
256
- acceptNewMessages: t6,
257
- onSkippedNewMessage
258
- });
259
- $[15] = onSkippedNewMessage;
260
- $[16] = queryKey;
261
- $[17] = t6;
262
- $[18] = t7;
147
+ $[5] = conversation_id;
148
+ $[6] = t3;
263
149
  } else {
264
- t7 = $[18];
150
+ t3 = $[6];
265
151
  }
266
- let t8;
267
- if ($[19] !== conversation_id || $[20] !== t5 || $[21] !== t7) {
268
- t8 = {
269
- conversationId: conversation_id,
270
- replyRootId: t5,
271
- messageCache: t7
272
- };
273
- $[19] = conversation_id;
274
- $[20] = t5;
275
- $[21] = t7;
276
- $[22] = t8;
277
- } else {
278
- t8 = $[22];
279
- }
280
- useConversationMessagesJoltEvents(t8);
152
+ useConversationMessagesJoltEvents(t3);
281
153
  const {
282
154
  markHandledByMessageForm
283
155
  } = useVideoModerationJoltEvents();
284
156
  useEnsureConversationsRouteExists();
285
- const t9 = !behindLatest;
286
- let t10;
287
- if ($[23] !== conversation || $[24] !== messages || $[25] !== t9) {
288
- t10 = {
157
+ let t4;
158
+ if ($[7] !== conversation || $[8] !== messages) {
159
+ t4 = {
289
160
  conversation,
290
- messages,
291
- enabled: t9
292
- };
293
- $[23] = conversation;
294
- $[24] = messages;
295
- $[25] = t9;
296
- $[26] = t10;
297
- } else {
298
- t10 = $[26];
299
- }
300
- useMarkLatestMessageRead(t10);
301
- const t11 = anchored && caughtUp;
302
- let t12;
303
- if ($[27] !== fetchNewer || $[28] !== newestMessageId || $[29] !== t11) {
304
- t12 = {
305
- fetchNewer,
306
- newestMessageId,
307
- enabled: t11
161
+ messages
308
162
  };
309
- $[27] = fetchNewer;
310
- $[28] = newestMessageId;
311
- $[29] = t11;
312
- $[30] = t12;
163
+ $[7] = conversation;
164
+ $[8] = messages;
165
+ $[9] = t4;
313
166
  } else {
314
- t12 = $[30];
167
+ t4 = $[9];
315
168
  }
316
- useFetchNewerOnForeground(t12);
169
+ useMarkLatestMessageRead(t4);
317
170
  const noMessages = messages.length === 0;
318
171
  const {
319
172
  repliesDisabled,
@@ -323,47 +176,57 @@ function ConversationScreenContent(t0) {
323
176
  } = conversation;
324
177
  const canReply = memberAbility?.canReply;
325
178
  const showLeaderDisabledReplyBanner = canReply && repliesDisabled;
326
- let t13;
327
- if ($[31] !== editing_message_id || $[32] !== messages) {
328
- let t14;
329
- if ($[34] !== editing_message_id) {
330
- t14 = m => String(m.id) === String(editing_message_id);
331
- $[34] = editing_message_id;
332
- $[35] = t14;
179
+ let t5;
180
+ if ($[10] !== editing_message_id || $[11] !== messages) {
181
+ let t6;
182
+ if ($[13] !== editing_message_id) {
183
+ t6 = m => String(m.id) === String(editing_message_id);
184
+ $[13] = editing_message_id;
185
+ $[14] = t6;
333
186
  } else {
334
- t14 = $[35];
187
+ t6 = $[14];
335
188
  }
336
- t13 = messages.find(t14);
337
- $[31] = editing_message_id;
338
- $[32] = messages;
339
- $[33] = t13;
189
+ t5 = messages.find(t6);
190
+ $[10] = editing_message_id;
191
+ $[11] = messages;
192
+ $[12] = t5;
340
193
  } else {
341
- t13 = $[33];
194
+ t5 = $[12];
342
195
  }
343
- const currentlyEditingMessage = t13;
344
- let t14;
345
- if ($[36] !== reply_root_author_name) {
346
- t14 = reply_root_author_name?.split(" ")[0];
347
- $[36] = reply_root_author_name;
348
- $[37] = t14;
196
+ const currentlyEditingMessage = t5;
197
+ let t6;
198
+ if ($[15] !== reply_root_author_name) {
199
+ t6 = reply_root_author_name?.split(" ")[0];
200
+ $[15] = reply_root_author_name;
201
+ $[16] = t6;
349
202
  } else {
350
- t14 = $[37];
203
+ t6 = $[16];
351
204
  }
352
- const replyRootAuthorFirstName = t14;
205
+ const replyRootAuthorFirstName = t6;
353
206
  const replyHeaderTitle = replyRootAuthorFirstName ? `Reply to ${replyRootAuthorFirstName}` : "Reply";
354
207
  const muted = conversation.conversationMembership?.muted ?? conversation.muted;
355
208
  const listRef = useRef(null);
356
- const [hasDragged, setHasDragged] = useState(false);
357
- const holdListPosition = behindLatest || readingHistory;
358
- let t15;
359
- if ($[38] === Symbol.for("react.memo_cache_sentinel")) {
360
- t15 = {
209
+ const [showJumpToBottomButton, setShowJumpToBottomButton] = useState(false);
210
+ let t7;
211
+ if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
212
+ t7 = event => {
213
+ const offsetY = event.nativeEvent.contentOffset.y;
214
+ setShowJumpToBottomButton(offsetY > 200);
215
+ };
216
+ $[17] = t7;
217
+ } else {
218
+ t7 = $[17];
219
+ }
220
+ const trackScroll = t7;
221
+ let t8;
222
+ if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
223
+ t8 = {
361
224
  listRef,
362
225
  enabled: Platform.OS === "ios"
363
226
  };
364
- $[38] = t15;
227
+ $[18] = t8;
365
228
  } else {
366
- t15 = $[38];
229
+ t8 = $[18];
367
230
  }
368
231
  const {
369
232
  restOffset,
@@ -371,82 +234,23 @@ function ConversationScreenContent(t0) {
371
234
  onContentSizeChange,
372
235
  onMomentumScrollEnd,
373
236
  onScrollEndDrag
374
- } = useRestAwayFromDismissEdge(t15);
375
- let t16;
376
- if ($[39] !== restOffset) {
377
- t16 = () => {
237
+ } = useRestAwayFromDismissEdge(t8);
238
+ let t9;
239
+ if ($[19] !== restOffset) {
240
+ t9 = () => {
378
241
  listRef.current?.scrollToOffset({
379
242
  offset: restOffset
380
243
  });
381
244
  };
382
- $[39] = restOffset;
383
- $[40] = t16;
384
- } else {
385
- t16 = $[40];
386
- }
387
- const handleReturnToBottom = t16;
388
- let t17;
389
- if ($[41] !== handleReturnToBottom || $[42] !== onExitAnchoredMode) {
390
- t17 = () => {
391
- onExitAnchoredMode();
392
- handleReturnToBottom();
393
- };
394
- $[41] = handleReturnToBottom;
395
- $[42] = onExitAnchoredMode;
396
- $[43] = t17;
397
- } else {
398
- t17 = $[43];
399
- }
400
- const exitAnchoredMode = t17;
401
- let t18;
402
- if ($[44] !== anchored || $[45] !== exitAnchoredMode || $[46] !== handleReturnToBottom) {
403
- t18 = () => {
404
- setShowJumpToBottomButton(false);
405
- if (anchored) {
406
- exitAnchoredMode();
407
- } else {
408
- handleReturnToBottom();
409
- }
410
- };
411
- $[44] = anchored;
412
- $[45] = exitAnchoredMode;
413
- $[46] = handleReturnToBottom;
414
- $[47] = t18;
415
- } else {
416
- t18 = $[47];
417
- }
418
- const jumpToLatest = t18;
419
- let t19;
420
- if ($[48] === Symbol.for("react.memo_cache_sentinel")) {
421
- t19 = event => {
422
- const offsetY = event.nativeEvent.contentOffset.y;
423
- setShowJumpToBottomButton(offsetY > 200);
424
- };
425
- $[48] = t19;
426
- } else {
427
- t19 = $[48];
428
- }
429
- const trackScroll = t19;
430
- let t20;
431
- if ($[49] !== fetchPreviousPage || $[50] !== hasPreviousPage || $[51] !== isFetchingPreviousPage) {
432
- t20 = () => {
433
- if (!hasPreviousPage || isFetchingPreviousPage) {
434
- return;
435
- }
436
- setHasDragged(false);
437
- fetchPreviousPage();
438
- };
439
- $[49] = fetchPreviousPage;
440
- $[50] = hasPreviousPage;
441
- $[51] = isFetchingPreviousPage;
442
- $[52] = t20;
245
+ $[19] = restOffset;
246
+ $[20] = t9;
443
247
  } else {
444
- t20 = $[52];
248
+ t9 = $[20];
445
249
  }
446
- const loadNewerMessages = t20;
447
- let t21;
448
- if ($[53] !== badges?.[0] || $[54] !== conversation.deleted || $[55] !== muted || $[56] !== navigation || $[57] !== replyHeaderTitle || $[58] !== reply_root_id || $[59] !== title) {
449
- t21 = () => {
250
+ const handleReturnToBottom = t9;
251
+ let t10;
252
+ if ($[21] !== badges?.[0] || $[22] !== conversation.deleted || $[23] !== muted || $[24] !== navigation || $[25] !== replyHeaderTitle || $[26] !== reply_root_id || $[27] !== title) {
253
+ t10 = () => {
450
254
  if (reply_root_id) {
451
255
  navigation.setParams({
452
256
  title: replyHeaderTitle
@@ -460,86 +264,86 @@ function ConversationScreenContent(t0) {
460
264
  });
461
265
  }
462
266
  };
463
- $[53] = badges?.[0];
464
- $[54] = conversation.deleted;
465
- $[55] = muted;
466
- $[56] = navigation;
467
- $[57] = replyHeaderTitle;
468
- $[58] = reply_root_id;
469
- $[59] = title;
470
- $[60] = t21;
471
- } else {
472
- t21 = $[60];
473
- }
474
- const t22 = conversation?.deleted;
475
- let t23;
476
- if ($[61] !== badges || $[62] !== muted || $[63] !== navigation || $[64] !== replyHeaderTitle || $[65] !== reply_root_id || $[66] !== t22 || $[67] !== title) {
477
- t23 = [navigation, title, badges, t22, reply_root_id, replyHeaderTitle, muted];
478
- $[61] = badges;
479
- $[62] = muted;
480
- $[63] = navigation;
481
- $[64] = replyHeaderTitle;
482
- $[65] = reply_root_id;
483
- $[66] = t22;
484
- $[67] = title;
485
- $[68] = t23;
486
- } else {
487
- t23 = $[68];
488
- }
489
- useEffect(t21, t23);
267
+ $[21] = badges?.[0];
268
+ $[22] = conversation.deleted;
269
+ $[23] = muted;
270
+ $[24] = navigation;
271
+ $[25] = replyHeaderTitle;
272
+ $[26] = reply_root_id;
273
+ $[27] = title;
274
+ $[28] = t10;
275
+ } else {
276
+ t10 = $[28];
277
+ }
278
+ const t11 = conversation?.deleted;
279
+ let t12;
280
+ if ($[29] !== badges || $[30] !== muted || $[31] !== navigation || $[32] !== replyHeaderTitle || $[33] !== reply_root_id || $[34] !== t11 || $[35] !== title) {
281
+ t12 = [navigation, title, badges, t11, reply_root_id, replyHeaderTitle, muted];
282
+ $[29] = badges;
283
+ $[30] = muted;
284
+ $[31] = navigation;
285
+ $[32] = replyHeaderTitle;
286
+ $[33] = reply_root_id;
287
+ $[34] = t11;
288
+ $[35] = title;
289
+ $[36] = t12;
290
+ } else {
291
+ t12 = $[36];
292
+ }
293
+ useEffect(t10, t12);
490
294
  if (!conversation || conversation.deleted) {
491
- let t24;
492
- if ($[69] === Symbol.for("react.memo_cache_sentinel")) {
493
- t24 = /*#__PURE__*/_jsx(BlankState.Imagery, {
295
+ let t13;
296
+ if ($[37] === Symbol.for("react.memo_cache_sentinel")) {
297
+ t13 = /*#__PURE__*/_jsx(BlankState.Imagery, {
494
298
  name: "general.outlinedTextMessage"
495
299
  });
496
- $[69] = t24;
300
+ $[37] = t13;
497
301
  } else {
498
- t24 = $[69];
302
+ t13 = $[37];
499
303
  }
500
- let t25;
501
- if ($[70] === Symbol.for("react.memo_cache_sentinel")) {
502
- t25 = /*#__PURE__*/_jsx(BlankState.Content, {
304
+ let t14;
305
+ if ($[38] === Symbol.for("react.memo_cache_sentinel")) {
306
+ t14 = /*#__PURE__*/_jsx(BlankState.Content, {
503
307
  children: /*#__PURE__*/_jsx(BlankState.Heading, {
504
308
  children: "This conversation has been deleted"
505
309
  })
506
310
  });
507
- $[70] = t25;
311
+ $[38] = t14;
508
312
  } else {
509
- t25 = $[70];
313
+ t14 = $[38];
510
314
  }
511
- let t26;
512
- if ($[71] !== navigation.goBack) {
513
- t26 = /*#__PURE__*/_jsxs(BlankState.Root, {
514
- children: [t24, t25, /*#__PURE__*/_jsx(BlankState.Button, {
315
+ let t15;
316
+ if ($[39] !== navigation.goBack) {
317
+ t15 = /*#__PURE__*/_jsxs(BlankState.Root, {
318
+ children: [t13, t14, /*#__PURE__*/_jsx(BlankState.Button, {
515
319
  onPress: navigation.goBack,
516
320
  title: "Back to conversations",
517
321
  accessibilityHint: "Navigates back to the conversations list",
518
322
  accessibilityRole: "link"
519
323
  })]
520
324
  });
521
- $[71] = navigation.goBack;
522
- $[72] = t26;
325
+ $[39] = navigation.goBack;
326
+ $[40] = t15;
523
327
  } else {
524
- t26 = $[72];
328
+ t15 = $[40];
525
329
  }
526
- let t27;
527
- if ($[73] !== styles.container || $[74] !== t26) {
528
- t27 = /*#__PURE__*/_jsx(View, {
330
+ let t16;
331
+ if ($[41] !== styles.container || $[42] !== t15) {
332
+ t16 = /*#__PURE__*/_jsx(View, {
529
333
  style: styles.container,
530
- children: t26
334
+ children: t15
531
335
  });
532
- $[73] = styles.container;
533
- $[74] = t26;
534
- $[75] = t27;
336
+ $[41] = styles.container;
337
+ $[42] = t15;
338
+ $[43] = t16;
535
339
  } else {
536
- t27 = $[75];
340
+ t16 = $[43];
537
341
  }
538
- return t27;
342
+ return t16;
539
343
  }
540
- let t24;
541
- if ($[76] !== anchor || $[77] !== anchored || $[78] !== conversation || $[79] !== conversation_id || $[80] !== fetchNextPage || $[81] !== hasDragged || $[82] !== hasNextPage || $[83] !== holdListPosition || $[84] !== loadNewerMessages || $[85] !== messages || $[86] !== noMessages || $[87] !== onContentSizeChange || $[88] !== onLayout || $[89] !== onMomentumScrollEnd || $[90] !== onScrollEndDrag || $[91] !== reply_root_id || $[92] !== styles.emptyState) {
542
- t24 = noMessages ? /*#__PURE__*/_jsx(View, {
344
+ let t13;
345
+ if ($[44] !== conversation || $[45] !== conversation_id || $[46] !== fetchNextPage || $[47] !== hasNextPage || $[48] !== messages || $[49] !== noMessages || $[50] !== onContentSizeChange || $[51] !== onLayout || $[52] !== onMomentumScrollEnd || $[53] !== onScrollEndDrag || $[54] !== reply_root_id || $[55] !== styles.emptyState) {
346
+ t13 = noMessages ? /*#__PURE__*/_jsx(View, {
543
347
  style: styles.emptyState,
544
348
  children: /*#__PURE__*/_jsx(ConversationStartBanner, {
545
349
  conversation: conversation,
@@ -551,131 +355,115 @@ function ConversationScreenContent(t0) {
551
355
  conversationId: conversation_id,
552
356
  messages: messages,
553
357
  replyRootId: reply_root_id,
554
- anchorMessageId: anchor,
555
358
  hasNextPage: hasNextPage,
556
359
  onEndReached: () => fetchNextPage(),
557
360
  onScroll: trackScroll,
558
361
  onLayout: onLayout,
559
362
  onContentSizeChange: onContentSizeChange,
560
363
  onScrollEndDrag: onScrollEndDrag,
561
- onMomentumScrollEnd: onMomentumScrollEnd,
562
- onScrollBeginDrag: anchored ? () => setHasDragged(true) : undefined,
563
- onStartReached: anchored && hasDragged ? loadNewerMessages : undefined,
564
- onStartReachedThreshold: anchored ? 0.5 : undefined,
565
- maintainVisibleContentPosition: holdListPosition ? {
566
- minIndexForVisible: 0
567
- } : undefined
364
+ onMomentumScrollEnd: onMomentumScrollEnd
568
365
  });
569
- $[76] = anchor;
570
- $[77] = anchored;
571
- $[78] = conversation;
572
- $[79] = conversation_id;
573
- $[80] = fetchNextPage;
574
- $[81] = hasDragged;
575
- $[82] = hasNextPage;
576
- $[83] = holdListPosition;
577
- $[84] = loadNewerMessages;
578
- $[85] = messages;
579
- $[86] = noMessages;
580
- $[87] = onContentSizeChange;
581
- $[88] = onLayout;
582
- $[89] = onMomentumScrollEnd;
583
- $[90] = onScrollEndDrag;
584
- $[91] = reply_root_id;
585
- $[92] = styles.emptyState;
586
- $[93] = t24;
587
- } else {
588
- t24 = $[93];
589
- }
590
- const t25 = behindLatest || showJumpToBottomButton;
591
- let t26;
592
- if ($[94] !== jumpToLatest || $[95] !== t25) {
593
- t26 = /*#__PURE__*/_jsx(JumpToBottomButton, {
594
- onPress: jumpToLatest,
595
- visible: t25
366
+ $[44] = conversation;
367
+ $[45] = conversation_id;
368
+ $[46] = fetchNextPage;
369
+ $[47] = hasNextPage;
370
+ $[48] = messages;
371
+ $[49] = noMessages;
372
+ $[50] = onContentSizeChange;
373
+ $[51] = onLayout;
374
+ $[52] = onMomentumScrollEnd;
375
+ $[53] = onScrollEndDrag;
376
+ $[54] = reply_root_id;
377
+ $[55] = styles.emptyState;
378
+ $[56] = t13;
379
+ } else {
380
+ t13 = $[56];
381
+ }
382
+ let t14;
383
+ if ($[57] !== handleReturnToBottom || $[58] !== showJumpToBottomButton) {
384
+ t14 = /*#__PURE__*/_jsx(JumpToBottomButton, {
385
+ onPress: handleReturnToBottom,
386
+ visible: showJumpToBottomButton
596
387
  });
597
- $[94] = jumpToLatest;
598
- $[95] = t25;
599
- $[96] = t26;
388
+ $[57] = handleReturnToBottom;
389
+ $[58] = showJumpToBottomButton;
390
+ $[59] = t14;
600
391
  } else {
601
- t26 = $[96];
392
+ t14 = $[59];
602
393
  }
603
- let t27;
604
- if ($[97] !== noMessages) {
605
- t27 = !noMessages && /*#__PURE__*/_jsx(TypingIndicator, {});
606
- $[97] = noMessages;
607
- $[98] = t27;
394
+ let t15;
395
+ if ($[60] !== noMessages) {
396
+ t15 = !noMessages && /*#__PURE__*/_jsx(TypingIndicator, {});
397
+ $[60] = noMessages;
398
+ $[61] = t15;
608
399
  } else {
609
- t27 = $[98];
400
+ t15 = $[61];
610
401
  }
611
- let t28;
612
- if ($[99] !== showLeaderDisabledReplyBanner) {
613
- t28 = showLeaderDisabledReplyBanner && /*#__PURE__*/_jsx(LeaderMessagesDisabledBanner, {});
614
- $[99] = showLeaderDisabledReplyBanner;
615
- $[100] = t28;
402
+ let t16;
403
+ if ($[62] !== showLeaderDisabledReplyBanner) {
404
+ t16 = showLeaderDisabledReplyBanner && /*#__PURE__*/_jsx(LeaderMessagesDisabledBanner, {});
405
+ $[62] = showLeaderDisabledReplyBanner;
406
+ $[63] = t16;
616
407
  } else {
617
- t28 = $[100];
408
+ t16 = $[63];
618
409
  }
619
- let t29;
620
- if ($[101] !== canReply || $[102] !== conversation || $[103] !== currentlyEditingMessage || $[104] !== jumpToLatest || $[105] !== markHandledByMessageForm || $[106] !== replyRootAuthorFirstName || $[107] !== reply_root_id) {
621
- t29 = /*#__PURE__*/_jsx(ConversationBottomBar, {
410
+ let t17;
411
+ if ($[64] !== canReply || $[65] !== conversation || $[66] !== currentlyEditingMessage || $[67] !== markHandledByMessageForm || $[68] !== replyRootAuthorFirstName || $[69] !== reply_root_id) {
412
+ t17 = /*#__PURE__*/_jsx(ConversationBottomBar, {
622
413
  conversation: conversation,
623
414
  canReply: canReply,
624
415
  replyRootAuthorFirstName: replyRootAuthorFirstName,
625
416
  replyRootId: reply_root_id,
626
417
  currentlyEditingMessage: currentlyEditingMessage,
627
- onFlaggedInMessageForm: markHandledByMessageForm,
628
- onBeforeSubmit: jumpToLatest
418
+ onFlaggedInMessageForm: markHandledByMessageForm
629
419
  });
630
- $[101] = canReply;
631
- $[102] = conversation;
632
- $[103] = currentlyEditingMessage;
633
- $[104] = jumpToLatest;
634
- $[105] = markHandledByMessageForm;
635
- $[106] = replyRootAuthorFirstName;
636
- $[107] = reply_root_id;
637
- $[108] = t29;
638
- } else {
639
- t29 = $[108];
640
- }
641
- let t30;
642
- if ($[109] !== t24 || $[110] !== t26 || $[111] !== t27 || $[112] !== t28 || $[113] !== t29) {
643
- t30 = /*#__PURE__*/_jsxs(KeyboardView, {
644
- children: [t24, t26, t27, t28, t29]
420
+ $[64] = canReply;
421
+ $[65] = conversation;
422
+ $[66] = currentlyEditingMessage;
423
+ $[67] = markHandledByMessageForm;
424
+ $[68] = replyRootAuthorFirstName;
425
+ $[69] = reply_root_id;
426
+ $[70] = t17;
427
+ } else {
428
+ t17 = $[70];
429
+ }
430
+ let t18;
431
+ if ($[71] !== t13 || $[72] !== t14 || $[73] !== t15 || $[74] !== t16 || $[75] !== t17) {
432
+ t18 = /*#__PURE__*/_jsxs(KeyboardView, {
433
+ children: [t13, t14, t15, t16, t17]
645
434
  });
646
- $[109] = t24;
647
- $[110] = t26;
648
- $[111] = t27;
649
- $[112] = t28;
650
- $[113] = t29;
651
- $[114] = t30;
652
- } else {
653
- t30 = $[114];
654
- }
655
- let t31;
656
- if ($[115] !== styles.container || $[116] !== t30) {
657
- t31 = /*#__PURE__*/_jsx(View, {
435
+ $[71] = t13;
436
+ $[72] = t14;
437
+ $[73] = t15;
438
+ $[74] = t16;
439
+ $[75] = t17;
440
+ $[76] = t18;
441
+ } else {
442
+ t18 = $[76];
443
+ }
444
+ let t19;
445
+ if ($[77] !== styles.container || $[78] !== t18) {
446
+ t19 = /*#__PURE__*/_jsx(View, {
658
447
  style: styles.container,
659
- children: t30
448
+ children: t18
660
449
  });
661
- $[115] = styles.container;
662
- $[116] = t30;
663
- $[117] = t31;
450
+ $[77] = styles.container;
451
+ $[78] = t18;
452
+ $[79] = t19;
664
453
  } else {
665
- t31 = $[117];
454
+ t19 = $[79];
666
455
  }
667
- return t31;
456
+ return t19;
668
457
  }
669
458
  function ConversationBottomBar(t0) {
670
- const $ = _c(16);
459
+ const $ = _c(15);
671
460
  const {
672
461
  conversation,
673
462
  canReply,
674
463
  replyRootAuthorFirstName,
675
464
  replyRootId,
676
465
  currentlyEditingMessage,
677
- onFlaggedInMessageForm,
678
- onBeforeSubmit
466
+ onFlaggedInMessageForm
679
467
  } = t0;
680
468
  const messageLink = useMessageAvailableMembersAction(conversation);
681
469
  if (conversation.disabled) {
@@ -725,30 +513,27 @@ function ConversationBottomBar(t0) {
725
513
  t5 = $[7];
726
514
  }
727
515
  let t6;
728
- if ($[8] !== conversation || $[9] !== currentlyEditingMessage || $[10] !== onBeforeSubmit || $[11] !== onFlaggedInMessageForm || $[12] !== replyRootAuthorFirstName || $[13] !== replyRootId || $[14] !== t1) {
516
+ if ($[8] !== conversation || $[9] !== currentlyEditingMessage || $[10] !== onFlaggedInMessageForm || $[11] !== replyRootAuthorFirstName || $[12] !== replyRootId || $[13] !== t1) {
729
517
  t6 = /*#__PURE__*/_jsxs(MessageForm.Root, {
730
518
  replyRootAuthorFirstName: replyRootAuthorFirstName,
731
519
  conversation: conversation,
732
520
  replyRootId: replyRootId,
733
521
  currentlyEditingMessage: currentlyEditingMessage,
734
522
  onFlaggedInMessageForm: onFlaggedInMessageForm,
735
- onBeforeSubmit: onBeforeSubmit,
736
523
  children: [t2, t3, t4, t5]
737
524
  }, t1);
738
525
  $[8] = conversation;
739
526
  $[9] = currentlyEditingMessage;
740
- $[10] = onBeforeSubmit;
741
- $[11] = onFlaggedInMessageForm;
742
- $[12] = replyRootAuthorFirstName;
743
- $[13] = replyRootId;
744
- $[14] = t1;
745
- $[15] = t6;
527
+ $[10] = onFlaggedInMessageForm;
528
+ $[11] = replyRootAuthorFirstName;
529
+ $[12] = replyRootId;
530
+ $[13] = t1;
531
+ $[14] = t6;
746
532
  } else {
747
- t6 = $[15];
533
+ t6 = $[14];
748
534
  }
749
535
  return t6;
750
536
  }
751
- const isBeforeLatestMessage = (anchor, latestMessageCreatedAt) => !!anchor && !!latestMessageCreatedAt && decodeUlidTime(anchor) < Date.parse(latestMessageCreatedAt);
752
537
  export const ConversationScreenTitle = t0 => {
753
538
  const $ = _c(29);
754
539
  const {