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