@planningcenter/chat-react-native 4.7.1-qa-staging.2 → 4.7.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.
- package/build/components/conversations/conversation_actions.d.ts.map +1 -1
- package/build/components/conversations/conversation_actions.js +193 -333
- package/build/components/conversations/conversation_actions.js.map +1 -1
- package/build/components/conversations/conversation_preview.d.ts.map +1 -1
- package/build/components/conversations/conversation_preview.js +91 -106
- package/build/components/conversations/conversation_preview.js.map +1 -1
- package/build/components/conversations/conversations.d.ts.map +1 -1
- package/build/components/conversations/conversations.js +56 -63
- package/build/components/conversations/conversations.js.map +1 -1
- package/build/components/conversations/conversations_blank_state.d.ts +1 -2
- package/build/components/conversations/conversations_blank_state.d.ts.map +1 -1
- package/build/components/conversations/conversations_blank_state.js +39 -71
- package/build/components/conversations/conversations_blank_state.js.map +1 -1
- package/build/components/group_conversation_list.d.ts.map +1 -1
- package/build/components/group_conversation_list.js +0 -1
- package/build/components/group_conversation_list.js.map +1 -1
- package/build/contexts/conversations_context.d.ts +1 -3
- package/build/contexts/conversations_context.d.ts.map +1 -1
- package/build/contexts/conversations_context.js +31 -39
- package/build/contexts/conversations_context.js.map +1 -1
- package/build/hooks/groups/use_group_members_for_new_conversation.d.ts +0 -6
- package/build/hooks/groups/use_group_members_for_new_conversation.d.ts.map +1 -1
- package/build/hooks/use_api.d.ts +0 -6
- package/build/hooks/use_api.d.ts.map +1 -1
- package/build/hooks/use_api.js +5 -8
- package/build/hooks/use_api.js.map +1 -1
- package/build/hooks/use_clear_conversation_filters.d.ts.map +1 -1
- package/build/hooks/use_clear_conversation_filters.js +0 -1
- package/build/hooks/use_clear_conversation_filters.js.map +1 -1
- package/build/hooks/use_conversation.d.ts.map +1 -1
- package/build/hooks/use_conversation.js +1 -1
- package/build/hooks/use_conversation.js.map +1 -1
- package/build/hooks/use_features.d.ts +0 -1
- package/build/hooks/use_features.d.ts.map +1 -1
- package/build/hooks/use_features.js +1 -2
- package/build/hooks/use_features.js.map +1 -1
- package/build/hooks/use_groups.d.ts +0 -6
- package/build/hooks/use_groups.d.ts.map +1 -1
- package/build/hooks/use_groups_groups.d.ts +0 -6
- package/build/hooks/use_groups_groups.d.ts.map +1 -1
- package/build/hooks/use_live_relative_time.js +6 -5
- package/build/hooks/use_live_relative_time.js.map +1 -1
- package/build/hooks/use_teams.d.ts +0 -6
- package/build/hooks/use_teams.d.ts.map +1 -1
- package/build/navigation/index.d.ts +0 -5
- package/build/navigation/index.d.ts.map +1 -1
- package/build/navigation/index.js +0 -5
- package/build/navigation/index.js.map +1 -1
- package/build/screens/conversation_details_screen.d.ts.map +1 -1
- package/build/screens/conversation_details_screen.js +394 -460
- package/build/screens/conversation_details_screen.js.map +1 -1
- package/build/screens/conversation_filters/components/conversation_filters.d.ts.map +1 -1
- package/build/screens/conversation_filters/components/conversation_filters.js +12 -53
- package/build/screens/conversation_filters/components/conversation_filters.js.map +1 -1
- package/build/screens/conversation_filters/components/rows.d.ts +3 -6
- package/build/screens/conversation_filters/components/rows.d.ts.map +1 -1
- package/build/screens/conversation_filters/components/rows.js +62 -99
- package/build/screens/conversation_filters/components/rows.js.map +1 -1
- package/build/screens/conversation_filters/context/conversation_filter_context.d.ts.map +1 -1
- package/build/screens/conversation_filters/context/conversation_filter_context.js +0 -4
- package/build/screens/conversation_filters/context/conversation_filter_context.js.map +1 -1
- package/build/screens/conversation_filters/filter_types.d.ts +0 -1
- package/build/screens/conversation_filters/filter_types.d.ts.map +1 -1
- package/build/screens/conversation_filters/filter_types.js +0 -1
- package/build/screens/conversation_filters/filter_types.js.map +1 -1
- package/build/screens/conversation_filters/hooks/filters.d.ts +0 -12
- package/build/screens/conversation_filters/hooks/filters.d.ts.map +1 -1
- package/build/screens/conversation_filters/screen_props.d.ts +0 -1
- package/build/screens/conversation_filters/screen_props.d.ts.map +1 -1
- package/build/screens/conversation_filters/screen_props.js.map +1 -1
- package/build/screens/conversations/components/filter_dropdown_list_header_component.d.ts.map +1 -1
- package/build/screens/conversations/components/filter_dropdown_list_header_component.js +126 -138
- package/build/screens/conversations/components/filter_dropdown_list_header_component.js.map +1 -1
- package/build/screens/conversations/components/list_header_component.d.ts.map +1 -1
- package/build/screens/conversations/components/list_header_component.js +90 -95
- package/build/screens/conversations/components/list_header_component.js.map +1 -1
- package/build/screens/conversations/components/search_list_header_component.d.ts.map +1 -1
- package/build/screens/conversations/components/search_list_header_component.js +95 -100
- package/build/screens/conversations/components/search_list_header_component.js.map +1 -1
- package/build/screens/conversations/conversations_screen.d.ts +0 -1
- package/build/screens/conversations/conversations_screen.d.ts.map +1 -1
- package/build/screens/conversations/conversations_screen.js +10 -18
- package/build/screens/conversations/conversations_screen.js.map +1 -1
- package/build/screens/index.d.ts +0 -1
- package/build/screens/index.d.ts.map +1 -1
- package/build/screens/index.js +0 -1
- package/build/screens/index.js.map +1 -1
- package/build/types/resources/conversation_membership.d.ts +0 -1
- package/build/types/resources/conversation_membership.d.ts.map +1 -1
- package/build/types/resources/conversation_membership.js.map +1 -1
- package/build/utils/date.d.ts +1 -1
- package/build/utils/date.d.ts.map +1 -1
- package/build/utils/date.js +4 -4
- package/build/utils/date.js.map +1 -1
- package/build/utils/request/conversation.d.ts +1 -3
- package/build/utils/request/conversation.d.ts.map +1 -1
- package/build/utils/request/conversation.js +0 -4
- package/build/utils/request/conversation.js.map +1 -1
- package/build/vendor/font_awesome_pro_solid_icons.d.ts +0 -1
- package/build/vendor/font_awesome_pro_solid_icons.d.ts.map +1 -1
- package/build/vendor/font_awesome_pro_solid_icons.js +0 -5
- package/build/vendor/font_awesome_pro_solid_icons.js.map +1 -1
- package/package.json +3 -3
- package/src/__tests__/screens/conversation_filters/components/conversation_filters.test.tsx +0 -6
- package/src/components/conversations/__tests__/conversation_actions.test.tsx +2 -77
- package/src/components/conversations/__tests__/conversation_preview.test.tsx +0 -29
- package/src/components/conversations/__tests__/conversations.test.tsx +0 -26
- package/src/components/conversations/__tests__/conversations_blank_state.test.tsx +0 -17
- package/src/components/conversations/conversation_actions.tsx +4 -73
- package/src/components/conversations/conversation_preview.tsx +1 -12
- package/src/components/conversations/conversations.tsx +0 -9
- package/src/components/conversations/conversations_blank_state.tsx +0 -18
- package/src/components/group_conversation_list.tsx +1 -4
- package/src/contexts/conversations_context.tsx +1 -8
- package/src/hooks/__tests__/use_live_relative_time.test.tsx +22 -0
- package/src/hooks/use_api.ts +1 -2
- package/src/hooks/use_clear_conversation_filters.ts +0 -1
- package/src/hooks/use_conversation.ts +0 -1
- package/src/hooks/use_features.ts +0 -1
- package/src/hooks/use_live_relative_time.ts +1 -1
- package/src/navigation/index.tsx +0 -8
- package/src/screens/__tests__/conversation_details_screen.test.tsx +1 -49
- package/src/screens/conversation_details_screen.tsx +0 -19
- package/src/screens/conversation_filters/__tests__/conversation_filters.test.tsx +0 -42
- package/src/screens/conversation_filters/components/conversation_filters.tsx +3 -22
- package/src/screens/conversation_filters/components/rows.tsx +10 -44
- package/src/screens/conversation_filters/context/conversation_filter_context.tsx +0 -4
- package/src/screens/conversation_filters/filter_types.ts +0 -1
- package/src/screens/conversation_filters/screen_props.ts +0 -1
- package/src/screens/conversations/__tests__/conversations_screen.test.tsx +0 -1
- package/src/screens/conversations/components/__tests__/filter_dropdown_list_header_component.test.tsx +0 -42
- package/src/screens/conversations/components/__tests__/list_header_component.test.tsx +0 -1
- package/src/screens/conversations/components/filter_dropdown_list_header_component.tsx +5 -21
- package/src/screens/conversations/components/list_header_component.tsx +4 -14
- package/src/screens/conversations/components/search_list_header_component.tsx +4 -14
- package/src/screens/conversations/conversations_screen.tsx +0 -3
- package/src/screens/index.ts +0 -1
- package/src/types/resources/conversation_membership.ts +0 -1
- package/src/utils/__tests__/date.test.ts +10 -1
- package/src/utils/date.ts +4 -4
- package/src/utils/request/conversation.ts +0 -6
- package/src/vendor/font_awesome_pro_solid_icons.ts +0 -12
- package/build/components/conversations/hidden_indicator.d.ts +0 -4
- package/build/components/conversations/hidden_indicator.d.ts.map +0 -1
- package/build/components/conversations/hidden_indicator.js +0 -52
- package/build/components/conversations/hidden_indicator.js.map +0 -1
- package/build/components/conversations/hidden_results_footer.d.ts +0 -2
- package/build/components/conversations/hidden_results_footer.d.ts.map +0 -1
- package/build/components/conversations/hidden_results_footer.js +0 -34
- package/build/components/conversations/hidden_results_footer.js.map +0 -1
- package/build/components/display/toast.d.ts +0 -3
- package/build/components/display/toast.d.ts.map +0 -1
- package/build/components/display/toast.js +0 -224
- package/build/components/display/toast.js.map +0 -1
- package/build/hooks/use_hidden_conversations_count.d.ts +0 -2
- package/build/hooks/use_hidden_conversations_count.d.ts.map +0 -1
- package/build/hooks/use_hidden_conversations_count.js +0 -32
- package/build/hooks/use_hidden_conversations_count.js.map +0 -1
- package/build/hooks/use_hide_conversation.d.ts +0 -108
- package/build/hooks/use_hide_conversation.d.ts.map +0 -1
- package/build/hooks/use_hide_conversation.js +0 -243
- package/build/hooks/use_hide_conversation.js.map +0 -1
- package/build/hooks/use_hide_conversations_enabled.d.ts +0 -2
- package/build/hooks/use_hide_conversations_enabled.d.ts.map +0 -1
- package/build/hooks/use_hide_conversations_enabled.js +0 -18
- package/build/hooks/use_hide_conversations_enabled.js.map +0 -1
- package/build/screens/conversation_actions_screen.d.ts +0 -7
- package/build/screens/conversation_actions_screen.d.ts.map +0 -1
- package/build/screens/conversation_actions_screen.js +0 -89
- package/build/screens/conversation_actions_screen.js.map +0 -1
- package/build/utils/toast_store.d.ts +0 -21
- package/build/utils/toast_store.d.ts.map +0 -1
- package/build/utils/toast_store.js +0 -27
- package/build/utils/toast_store.js.map +0 -1
- package/src/components/conversations/hidden_indicator.tsx +0 -30
- package/src/components/conversations/hidden_results_footer.tsx +0 -25
- package/src/components/display/__tests__/toast.test.tsx +0 -55
- package/src/components/display/toast.tsx +0 -115
- package/src/hooks/__tests__/use_hide_conversation.test.tsx +0 -189
- package/src/hooks/use_hidden_conversations_count.ts +0 -14
- package/src/hooks/use_hide_conversation.ts +0 -128
- package/src/hooks/use_hide_conversations_enabled.ts +0 -7
- package/src/screens/__tests__/conversation_actions_screen.test.tsx +0 -79
- package/src/screens/conversation_actions_screen.tsx +0 -53
- package/src/utils/toast_store.ts +0 -45
|
@@ -7,7 +7,6 @@ import { useCanBrowseArchivedConversations, useCanCreateConversations, useCurren
|
|
|
7
7
|
import { useApiGet } from '../../../hooks/use_api';
|
|
8
8
|
import { useMarkAllRead } from '../../../hooks/use_conversations_actions';
|
|
9
9
|
import { useCanDisplayGroups } from '../../../hooks/use_groups';
|
|
10
|
-
import { useHideConversationsEnabled } from '../../../hooks/use_hide_conversations_enabled';
|
|
11
10
|
import { useNewConversationFromFilter } from '../../../hooks/use_new_conversation_from_filter';
|
|
12
11
|
import { useSearchEnabled } from '../../../hooks/use_search_enabled';
|
|
13
12
|
import { MAX_FONT_SIZE_MULTIPLIER_LANDMARK } from '../../../utils';
|
|
@@ -20,7 +19,6 @@ const TRIGGER_CAP_SLACK = 2;
|
|
|
20
19
|
const LAYOUT_JITTER = 1;
|
|
21
20
|
const ALL_CONVERSATIONS_LABEL = 'All conversations';
|
|
22
21
|
const ARCHIVED_LABEL = 'Archived';
|
|
23
|
-
const HIDDEN_LABEL = 'Hidden';
|
|
24
22
|
var FilterTypes = /*#__PURE__*/function (FilterTypes) {
|
|
25
23
|
FilterTypes["All"] = "All";
|
|
26
24
|
FilterTypes["Groups"] = "Groups";
|
|
@@ -47,7 +45,7 @@ const FILTER_PARAMS = {
|
|
|
47
45
|
}
|
|
48
46
|
};
|
|
49
47
|
export const FilterDropdownListHeaderComponent = () => {
|
|
50
|
-
const $ = _c(
|
|
48
|
+
const $ = _c(99);
|
|
51
49
|
const navigation = useNavigation();
|
|
52
50
|
let t0;
|
|
53
51
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -75,7 +73,6 @@ export const FilterDropdownListHeaderComponent = () => {
|
|
|
75
73
|
const hasDirectMessages = useHasDirectMessages();
|
|
76
74
|
const canFilterByDMs = directMessagesEligible && hasDirectMessages;
|
|
77
75
|
const canBrowseArchived = useCanBrowseArchivedConversations();
|
|
78
|
-
const hideConversationsEnabled = useHideConversationsEnabled();
|
|
79
76
|
const searchEnabled = useSearchEnabled();
|
|
80
77
|
const route = useRoute();
|
|
81
78
|
let t2;
|
|
@@ -92,7 +89,6 @@ export const FilterDropdownListHeaderComponent = () => {
|
|
|
92
89
|
group_source_app_name: t3,
|
|
93
90
|
show_direct_messages,
|
|
94
91
|
show_archived,
|
|
95
|
-
show_hidden,
|
|
96
92
|
show_unread
|
|
97
93
|
} = t2;
|
|
98
94
|
const group_source_app_name = t3 === undefined ? "" : t3;
|
|
@@ -144,7 +140,7 @@ export const FilterDropdownListHeaderComponent = () => {
|
|
|
144
140
|
} = useApiGet(t6, t8);
|
|
145
141
|
let t9;
|
|
146
142
|
bb0: {
|
|
147
|
-
if (chat_group_graph_id || show_archived
|
|
143
|
+
if (chat_group_graph_id || show_archived) {
|
|
148
144
|
t9 = FilterTypes.More;
|
|
149
145
|
break bb0;
|
|
150
146
|
} else {
|
|
@@ -236,7 +232,7 @@ export const FilterDropdownListHeaderComponent = () => {
|
|
|
236
232
|
}
|
|
237
233
|
const options = t15;
|
|
238
234
|
let t16;
|
|
239
|
-
if ($[21] !== active || $[22] !== chat_group_graph_id || $[23] !== group?.name || $[24] !== show_archived || $[25] !==
|
|
235
|
+
if ($[21] !== active || $[22] !== chat_group_graph_id || $[23] !== group?.name || $[24] !== show_archived || $[25] !== title) {
|
|
240
236
|
t16 = () => {
|
|
241
237
|
if (chat_group_graph_id) {
|
|
242
238
|
return group?.name || title || ALL_CONVERSATIONS_LABEL;
|
|
@@ -244,9 +240,6 @@ export const FilterDropdownListHeaderComponent = () => {
|
|
|
244
240
|
if (show_archived) {
|
|
245
241
|
return ARCHIVED_LABEL;
|
|
246
242
|
}
|
|
247
|
-
if (show_hidden) {
|
|
248
|
-
return HIDDEN_LABEL;
|
|
249
|
-
}
|
|
250
243
|
if (active === FilterTypes.All) {
|
|
251
244
|
return ALL_CONVERSATIONS_LABEL;
|
|
252
245
|
}
|
|
@@ -256,24 +249,23 @@ export const FilterDropdownListHeaderComponent = () => {
|
|
|
256
249
|
$[22] = chat_group_graph_id;
|
|
257
250
|
$[23] = group?.name;
|
|
258
251
|
$[24] = show_archived;
|
|
259
|
-
$[25] =
|
|
260
|
-
$[26] =
|
|
261
|
-
$[27] = t16;
|
|
252
|
+
$[25] = title;
|
|
253
|
+
$[26] = t16;
|
|
262
254
|
} else {
|
|
263
|
-
t16 = $[
|
|
255
|
+
t16 = $[26];
|
|
264
256
|
}
|
|
265
257
|
group?.name;
|
|
266
258
|
let t17;
|
|
267
|
-
if ($[
|
|
259
|
+
if ($[27] !== t16) {
|
|
268
260
|
t17 = t16();
|
|
269
|
-
$[
|
|
270
|
-
$[
|
|
261
|
+
$[27] = t16;
|
|
262
|
+
$[28] = t17;
|
|
271
263
|
} else {
|
|
272
|
-
t17 = $[
|
|
264
|
+
t17 = $[28];
|
|
273
265
|
}
|
|
274
266
|
const triggerLabel = t17;
|
|
275
267
|
let t18;
|
|
276
|
-
if ($[
|
|
268
|
+
if ($[29] !== entryMode || $[30] !== navigation || $[31] !== newConversationFromFilter || $[32] !== route.params) {
|
|
277
269
|
t18 = () => {
|
|
278
270
|
if (newConversationFromFilter || entryMode === "select_type") {
|
|
279
271
|
return navigation.navigate("ConversationSelectType", {
|
|
@@ -306,17 +298,17 @@ export const FilterDropdownListHeaderComponent = () => {
|
|
|
306
298
|
});
|
|
307
299
|
}
|
|
308
300
|
};
|
|
309
|
-
$[
|
|
310
|
-
$[
|
|
311
|
-
$[
|
|
312
|
-
$[
|
|
313
|
-
$[
|
|
301
|
+
$[29] = entryMode;
|
|
302
|
+
$[30] = navigation;
|
|
303
|
+
$[31] = newConversationFromFilter;
|
|
304
|
+
$[32] = route.params;
|
|
305
|
+
$[33] = t18;
|
|
314
306
|
} else {
|
|
315
|
-
t18 = $[
|
|
307
|
+
t18 = $[33];
|
|
316
308
|
}
|
|
317
309
|
const handleNewConversationNavigation = t18;
|
|
318
310
|
let t19;
|
|
319
|
-
if ($[
|
|
311
|
+
if ($[34] !== navigation) {
|
|
320
312
|
t19 = params => {
|
|
321
313
|
navigation.setParams({
|
|
322
314
|
title: undefined,
|
|
@@ -324,79 +316,76 @@ export const FilterDropdownListHeaderComponent = () => {
|
|
|
324
316
|
group_source_app_name: undefined,
|
|
325
317
|
show_direct_messages: undefined,
|
|
326
318
|
show_archived: undefined,
|
|
327
|
-
show_hidden: undefined,
|
|
328
319
|
show_unread: undefined,
|
|
329
320
|
...params
|
|
330
321
|
});
|
|
331
322
|
};
|
|
332
|
-
$[
|
|
333
|
-
$[
|
|
323
|
+
$[34] = navigation;
|
|
324
|
+
$[35] = t19;
|
|
334
325
|
} else {
|
|
335
|
-
t19 = $[
|
|
326
|
+
t19 = $[35];
|
|
336
327
|
}
|
|
337
328
|
const handleSetFilter = t19;
|
|
338
329
|
let t20;
|
|
339
|
-
if ($[
|
|
330
|
+
if ($[36] !== handleSetFilter) {
|
|
340
331
|
t20 = id => {
|
|
341
332
|
const params_0 = FILTER_PARAMS[id];
|
|
342
333
|
if (params_0) {
|
|
343
334
|
handleSetFilter(params_0);
|
|
344
335
|
}
|
|
345
336
|
};
|
|
346
|
-
$[
|
|
347
|
-
$[
|
|
337
|
+
$[36] = handleSetFilter;
|
|
338
|
+
$[37] = t20;
|
|
348
339
|
} else {
|
|
349
|
-
t20 = $[
|
|
340
|
+
t20 = $[37];
|
|
350
341
|
}
|
|
351
342
|
const handleSelectFilter = t20;
|
|
352
343
|
let t21;
|
|
353
|
-
if ($[
|
|
344
|
+
if ($[38] !== navigation) {
|
|
354
345
|
t21 = () => {
|
|
355
346
|
navigation.navigate("Search");
|
|
356
347
|
};
|
|
357
|
-
$[
|
|
358
|
-
$[
|
|
348
|
+
$[38] = navigation;
|
|
349
|
+
$[39] = t21;
|
|
359
350
|
} else {
|
|
360
|
-
t21 = $[
|
|
351
|
+
t21 = $[39];
|
|
361
352
|
}
|
|
362
353
|
const handleSearch = t21;
|
|
363
354
|
let t22;
|
|
364
|
-
if ($[
|
|
355
|
+
if ($[40] !== navigation) {
|
|
365
356
|
t22 = () => {
|
|
366
357
|
navigation.navigate("ChatSettings", {});
|
|
367
358
|
};
|
|
368
|
-
$[
|
|
369
|
-
$[
|
|
359
|
+
$[40] = navigation;
|
|
360
|
+
$[41] = t22;
|
|
370
361
|
} else {
|
|
371
|
-
t22 = $[
|
|
362
|
+
t22 = $[41];
|
|
372
363
|
}
|
|
373
364
|
const handleChatSettings = t22;
|
|
374
365
|
let t23;
|
|
375
|
-
if ($[
|
|
366
|
+
if ($[42] !== chat_group_graph_id || $[43] !== group_source_app_name || $[44] !== navigation || $[45] !== show_archived || $[46] !== show_direct_messages || $[47] !== show_unread) {
|
|
376
367
|
t23 = () => {
|
|
377
368
|
navigation.navigate("ConversationFilters", {
|
|
378
369
|
chat_group_graph_id,
|
|
379
370
|
group_source_app_name,
|
|
380
371
|
show_direct_messages,
|
|
381
372
|
show_archived,
|
|
382
|
-
show_hidden,
|
|
383
373
|
show_unread
|
|
384
374
|
});
|
|
385
375
|
};
|
|
386
|
-
$[
|
|
387
|
-
$[
|
|
388
|
-
$[
|
|
389
|
-
$[
|
|
390
|
-
$[
|
|
391
|
-
$[
|
|
392
|
-
$[
|
|
393
|
-
$[50] = t23;
|
|
376
|
+
$[42] = chat_group_graph_id;
|
|
377
|
+
$[43] = group_source_app_name;
|
|
378
|
+
$[44] = navigation;
|
|
379
|
+
$[45] = show_archived;
|
|
380
|
+
$[46] = show_direct_messages;
|
|
381
|
+
$[47] = show_unread;
|
|
382
|
+
$[48] = t23;
|
|
394
383
|
} else {
|
|
395
|
-
t23 = $[
|
|
384
|
+
t23 = $[48];
|
|
396
385
|
}
|
|
397
386
|
const handleOpenConversationFilters = t23;
|
|
398
387
|
let t24;
|
|
399
|
-
if ($[
|
|
388
|
+
if ($[49] !== currentPersonCache || $[50] !== markAllRead) {
|
|
400
389
|
t24 = () => {
|
|
401
390
|
currentPersonCache.update({
|
|
402
391
|
unreadCount: 0
|
|
@@ -404,15 +393,15 @@ export const FilterDropdownListHeaderComponent = () => {
|
|
|
404
393
|
Haptic.notificationSuccess();
|
|
405
394
|
markAllRead();
|
|
406
395
|
};
|
|
407
|
-
$[
|
|
408
|
-
$[
|
|
409
|
-
$[
|
|
396
|
+
$[49] = currentPersonCache;
|
|
397
|
+
$[50] = markAllRead;
|
|
398
|
+
$[51] = t24;
|
|
410
399
|
} else {
|
|
411
|
-
t24 = $[
|
|
400
|
+
t24 = $[51];
|
|
412
401
|
}
|
|
413
402
|
const handleMarkAllRead = t24;
|
|
414
403
|
let t25;
|
|
415
|
-
if ($[
|
|
404
|
+
if ($[52] !== active || $[53] !== handleMarkAllRead) {
|
|
416
405
|
t25 = () => {
|
|
417
406
|
if (active === FilterTypes.All) {
|
|
418
407
|
return handleMarkAllRead();
|
|
@@ -424,55 +413,55 @@ export const FilterDropdownListHeaderComponent = () => {
|
|
|
424
413
|
onPress: () => handleMarkAllRead()
|
|
425
414
|
}]);
|
|
426
415
|
};
|
|
427
|
-
$[
|
|
428
|
-
$[
|
|
429
|
-
$[
|
|
416
|
+
$[52] = active;
|
|
417
|
+
$[53] = handleMarkAllRead;
|
|
418
|
+
$[54] = t25;
|
|
430
419
|
} else {
|
|
431
|
-
t25 = $[
|
|
420
|
+
t25 = $[54];
|
|
432
421
|
}
|
|
433
422
|
const alertMarkAllRead = t25;
|
|
434
|
-
const showMoreFilters = canFilterByGroups || canFilterByTeams || canBrowseArchived
|
|
423
|
+
const showMoreFilters = canFilterByGroups || canFilterByTeams || canBrowseArchived;
|
|
435
424
|
const styles = useStyles();
|
|
436
425
|
const [rowWidth, setRowWidth] = useState();
|
|
437
426
|
const [actionsWidth, setActionsWidth] = useState();
|
|
438
427
|
const [widestFixedLabelWidth, setWidestFixedLabelWidth] = useState();
|
|
439
428
|
let t26;
|
|
440
|
-
if ($[
|
|
429
|
+
if ($[55] === Symbol.for("react.memo_cache_sentinel")) {
|
|
441
430
|
t26 = t27 => {
|
|
442
431
|
const {
|
|
443
432
|
nativeEvent
|
|
444
433
|
} = t27;
|
|
445
434
|
setRowWidth(previous => holdSubPointJitter(previous, nativeEvent.layout.width));
|
|
446
435
|
};
|
|
447
|
-
$[
|
|
436
|
+
$[55] = t26;
|
|
448
437
|
} else {
|
|
449
|
-
t26 = $[
|
|
438
|
+
t26 = $[55];
|
|
450
439
|
}
|
|
451
440
|
const handleRowLayout = t26;
|
|
452
441
|
let t27;
|
|
453
|
-
if ($[
|
|
442
|
+
if ($[56] === Symbol.for("react.memo_cache_sentinel")) {
|
|
454
443
|
t27 = t28 => {
|
|
455
444
|
const {
|
|
456
445
|
nativeEvent: nativeEvent_0
|
|
457
446
|
} = t28;
|
|
458
447
|
setActionsWidth(previous_0 => holdSubPointJitter(previous_0, nativeEvent_0.layout.width));
|
|
459
448
|
};
|
|
460
|
-
$[
|
|
449
|
+
$[56] = t27;
|
|
461
450
|
} else {
|
|
462
|
-
t27 = $[
|
|
451
|
+
t27 = $[56];
|
|
463
452
|
}
|
|
464
453
|
const handleActionsLayout = t27;
|
|
465
454
|
let t28;
|
|
466
|
-
if ($[
|
|
455
|
+
if ($[57] === Symbol.for("react.memo_cache_sentinel")) {
|
|
467
456
|
t28 = t29 => {
|
|
468
457
|
const {
|
|
469
458
|
nativeEvent: nativeEvent_1
|
|
470
459
|
} = t29;
|
|
471
460
|
setWidestFixedLabelWidth(previous_1 => holdSubPointJitter(previous_1, nativeEvent_1.layout.width));
|
|
472
461
|
};
|
|
473
|
-
$[
|
|
462
|
+
$[57] = t28;
|
|
474
463
|
} else {
|
|
475
|
-
t28 = $[
|
|
464
|
+
t28 = $[57];
|
|
476
465
|
}
|
|
477
466
|
const handleWidestFixedLabelLayout = t28;
|
|
478
467
|
let t29;
|
|
@@ -491,7 +480,7 @@ export const FilterDropdownListHeaderComponent = () => {
|
|
|
491
480
|
}
|
|
492
481
|
const triggerMaxWidth = t29;
|
|
493
482
|
let t30;
|
|
494
|
-
if ($[
|
|
483
|
+
if ($[58] === Symbol.for("react.memo_cache_sentinel")) {
|
|
495
484
|
t30 = /*#__PURE__*/_jsx(FilterDropdownTrigger, {
|
|
496
485
|
label: ALL_CONVERSATIONS_LABEL,
|
|
497
486
|
onLayout: handleWidestFixedLabelLayout,
|
|
@@ -499,24 +488,24 @@ export const FilterDropdownListHeaderComponent = () => {
|
|
|
499
488
|
accessibilityElementsHidden: true,
|
|
500
489
|
importantForAccessibility: "no-hide-descendants"
|
|
501
490
|
});
|
|
502
|
-
$[
|
|
491
|
+
$[58] = t30;
|
|
503
492
|
} else {
|
|
504
|
-
t30 = $[
|
|
493
|
+
t30 = $[58];
|
|
505
494
|
}
|
|
506
495
|
let t31;
|
|
507
|
-
if ($[
|
|
496
|
+
if ($[59] !== styles.widestFixedLabel) {
|
|
508
497
|
t31 = /*#__PURE__*/_jsx(View, {
|
|
509
498
|
style: styles.widestFixedLabel,
|
|
510
499
|
pointerEvents: "none",
|
|
511
500
|
children: t30
|
|
512
501
|
});
|
|
513
|
-
$[
|
|
514
|
-
$[
|
|
502
|
+
$[59] = styles.widestFixedLabel;
|
|
503
|
+
$[60] = t31;
|
|
515
504
|
} else {
|
|
516
|
-
t31 = $[
|
|
505
|
+
t31 = $[60];
|
|
517
506
|
}
|
|
518
507
|
let t32;
|
|
519
|
-
if ($[
|
|
508
|
+
if ($[61] !== active || $[62] !== handleOpenConversationFilters || $[63] !== handleSelectFilter || $[64] !== options || $[65] !== showMoreFilters || $[66] !== triggerLabel || $[67] !== triggerMaxWidth) {
|
|
520
509
|
t32 = /*#__PURE__*/_jsx(FilterDropdown, {
|
|
521
510
|
options: options,
|
|
522
511
|
selectedId: active,
|
|
@@ -526,31 +515,31 @@ export const FilterDropdownListHeaderComponent = () => {
|
|
|
526
515
|
triggerLabel: triggerLabel,
|
|
527
516
|
maxWidth: triggerMaxWidth
|
|
528
517
|
});
|
|
529
|
-
$[
|
|
530
|
-
$[
|
|
531
|
-
$[
|
|
532
|
-
$[
|
|
533
|
-
$[
|
|
534
|
-
$[
|
|
535
|
-
$[
|
|
536
|
-
$[
|
|
518
|
+
$[61] = active;
|
|
519
|
+
$[62] = handleOpenConversationFilters;
|
|
520
|
+
$[63] = handleSelectFilter;
|
|
521
|
+
$[64] = options;
|
|
522
|
+
$[65] = showMoreFilters;
|
|
523
|
+
$[66] = triggerLabel;
|
|
524
|
+
$[67] = triggerMaxWidth;
|
|
525
|
+
$[68] = t32;
|
|
537
526
|
} else {
|
|
538
|
-
t32 = $[
|
|
527
|
+
t32 = $[68];
|
|
539
528
|
}
|
|
540
529
|
let t33;
|
|
541
|
-
if ($[
|
|
530
|
+
if ($[69] !== styles.titleContainer || $[70] !== t32) {
|
|
542
531
|
t33 = /*#__PURE__*/_jsx(View, {
|
|
543
532
|
style: styles.titleContainer,
|
|
544
533
|
children: t32
|
|
545
534
|
});
|
|
546
|
-
$[
|
|
547
|
-
$[
|
|
548
|
-
$[
|
|
535
|
+
$[69] = styles.titleContainer;
|
|
536
|
+
$[70] = t32;
|
|
537
|
+
$[71] = t33;
|
|
549
538
|
} else {
|
|
550
|
-
t33 = $[
|
|
539
|
+
t33 = $[71];
|
|
551
540
|
}
|
|
552
541
|
let t34;
|
|
553
|
-
if ($[
|
|
542
|
+
if ($[72] !== handleChatSettings) {
|
|
554
543
|
t34 = /*#__PURE__*/_jsx(ListHeaderActionButton, {
|
|
555
544
|
name: "general.cog",
|
|
556
545
|
onPress: handleChatSettings,
|
|
@@ -558,13 +547,13 @@ export const FilterDropdownListHeaderComponent = () => {
|
|
|
558
547
|
testID: "conversations-chat-settings-button",
|
|
559
548
|
maxFontSizeMultiplier: MAX_FONT_SIZE_MULTIPLIER_LANDMARK
|
|
560
549
|
});
|
|
561
|
-
$[
|
|
562
|
-
$[
|
|
550
|
+
$[72] = handleChatSettings;
|
|
551
|
+
$[73] = t34;
|
|
563
552
|
} else {
|
|
564
|
-
t34 = $[
|
|
553
|
+
t34 = $[73];
|
|
565
554
|
}
|
|
566
555
|
let t35;
|
|
567
|
-
if ($[
|
|
556
|
+
if ($[74] !== canCreateConversations || $[75] !== handleNewConversationNavigation) {
|
|
568
557
|
t35 = canCreateConversations && /*#__PURE__*/_jsx(ListHeaderActionButton, {
|
|
569
558
|
name: "churchCenter.signups",
|
|
570
559
|
onPress: handleNewConversationNavigation,
|
|
@@ -572,14 +561,14 @@ export const FilterDropdownListHeaderComponent = () => {
|
|
|
572
561
|
testID: "conversations-new-conversation-button",
|
|
573
562
|
maxFontSizeMultiplier: MAX_FONT_SIZE_MULTIPLIER_LANDMARK
|
|
574
563
|
});
|
|
575
|
-
$[
|
|
576
|
-
$[
|
|
577
|
-
$[
|
|
564
|
+
$[74] = canCreateConversations;
|
|
565
|
+
$[75] = handleNewConversationNavigation;
|
|
566
|
+
$[76] = t35;
|
|
578
567
|
} else {
|
|
579
|
-
t35 = $[
|
|
568
|
+
t35 = $[76];
|
|
580
569
|
}
|
|
581
570
|
let t36;
|
|
582
|
-
if ($[
|
|
571
|
+
if ($[77] !== handleSearch || $[78] !== searchEnabled) {
|
|
583
572
|
t36 = searchEnabled && /*#__PURE__*/_jsx(ListHeaderActionButton, {
|
|
584
573
|
name: "general.search",
|
|
585
574
|
onPress: handleSearch,
|
|
@@ -587,46 +576,46 @@ export const FilterDropdownListHeaderComponent = () => {
|
|
|
587
576
|
testID: "conversations-search-button",
|
|
588
577
|
maxFontSizeMultiplier: MAX_FONT_SIZE_MULTIPLIER_LANDMARK
|
|
589
578
|
});
|
|
590
|
-
$[
|
|
591
|
-
$[
|
|
592
|
-
$[
|
|
579
|
+
$[77] = handleSearch;
|
|
580
|
+
$[78] = searchEnabled;
|
|
581
|
+
$[79] = t36;
|
|
593
582
|
} else {
|
|
594
|
-
t36 = $[
|
|
583
|
+
t36 = $[79];
|
|
595
584
|
}
|
|
596
585
|
let t37;
|
|
597
|
-
if ($[
|
|
586
|
+
if ($[80] !== styles.actionsContainer || $[81] !== t34 || $[82] !== t35 || $[83] !== t36) {
|
|
598
587
|
t37 = /*#__PURE__*/_jsxs(View, {
|
|
599
588
|
style: styles.actionsContainer,
|
|
600
589
|
onLayout: handleActionsLayout,
|
|
601
590
|
testID: "conversations-filter-heading-actions",
|
|
602
591
|
children: [t34, t35, t36]
|
|
603
592
|
});
|
|
604
|
-
$[
|
|
605
|
-
$[
|
|
606
|
-
$[
|
|
607
|
-
$[
|
|
608
|
-
$[
|
|
593
|
+
$[80] = styles.actionsContainer;
|
|
594
|
+
$[81] = t34;
|
|
595
|
+
$[82] = t35;
|
|
596
|
+
$[83] = t36;
|
|
597
|
+
$[84] = t37;
|
|
609
598
|
} else {
|
|
610
|
-
t37 = $[
|
|
599
|
+
t37 = $[84];
|
|
611
600
|
}
|
|
612
601
|
let t38;
|
|
613
|
-
if ($[
|
|
602
|
+
if ($[85] !== styles.headingRow || $[86] !== t33 || $[87] !== t37) {
|
|
614
603
|
t38 = /*#__PURE__*/_jsxs(View, {
|
|
615
604
|
style: styles.headingRow,
|
|
616
605
|
onLayout: handleRowLayout,
|
|
617
606
|
testID: "conversations-filter-heading-row",
|
|
618
607
|
children: [t33, t37]
|
|
619
608
|
});
|
|
620
|
-
$[
|
|
621
|
-
$[
|
|
622
|
-
$[
|
|
623
|
-
$[
|
|
609
|
+
$[85] = styles.headingRow;
|
|
610
|
+
$[86] = t33;
|
|
611
|
+
$[87] = t37;
|
|
612
|
+
$[88] = t38;
|
|
624
613
|
} else {
|
|
625
|
-
t38 = $[
|
|
614
|
+
t38 = $[88];
|
|
626
615
|
}
|
|
627
616
|
let t39;
|
|
628
|
-
if ($[
|
|
629
|
-
t39 = !show_archived &&
|
|
617
|
+
if ($[89] !== alertMarkAllRead || $[90] !== isPending || $[91] !== show_archived || $[92] !== styles.markAllReadRow) {
|
|
618
|
+
t39 = !show_archived && /*#__PURE__*/_jsx(View, {
|
|
630
619
|
style: styles.markAllReadRow,
|
|
631
620
|
children: /*#__PURE__*/_jsx(TextButton, {
|
|
632
621
|
onPress: alertMarkAllRead,
|
|
@@ -637,28 +626,27 @@ export const FilterDropdownListHeaderComponent = () => {
|
|
|
637
626
|
children: "Mark all read"
|
|
638
627
|
})
|
|
639
628
|
});
|
|
640
|
-
$[
|
|
641
|
-
$[
|
|
642
|
-
$[
|
|
643
|
-
$[
|
|
644
|
-
$[
|
|
645
|
-
$[96] = t39;
|
|
629
|
+
$[89] = alertMarkAllRead;
|
|
630
|
+
$[90] = isPending;
|
|
631
|
+
$[91] = show_archived;
|
|
632
|
+
$[92] = styles.markAllReadRow;
|
|
633
|
+
$[93] = t39;
|
|
646
634
|
} else {
|
|
647
|
-
t39 = $[
|
|
635
|
+
t39 = $[93];
|
|
648
636
|
}
|
|
649
637
|
let t40;
|
|
650
|
-
if ($[
|
|
638
|
+
if ($[94] !== styles.listHeader || $[95] !== t31 || $[96] !== t38 || $[97] !== t39) {
|
|
651
639
|
t40 = /*#__PURE__*/_jsxs(View, {
|
|
652
640
|
style: styles.listHeader,
|
|
653
641
|
children: [t31, t38, t39]
|
|
654
642
|
});
|
|
655
|
-
$[
|
|
656
|
-
$[
|
|
657
|
-
$[
|
|
658
|
-
$[
|
|
659
|
-
$[
|
|
643
|
+
$[94] = styles.listHeader;
|
|
644
|
+
$[95] = t31;
|
|
645
|
+
$[96] = t38;
|
|
646
|
+
$[97] = t39;
|
|
647
|
+
$[98] = t40;
|
|
660
648
|
} else {
|
|
661
|
-
t40 = $[
|
|
649
|
+
t40 = $[98];
|
|
662
650
|
}
|
|
663
651
|
return t40;
|
|
664
652
|
};
|