@planningcenter/chat-react-native 4.7.1-qa-staging.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 +204 -200
- 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/contexts/conversations_context.d.ts.map +1 -1
- package/build/contexts/conversations_context.js +20 -17
- 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_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 +2 -1
- package/build/hooks/use_hide_conversation.d.ts.map +1 -1
- package/build/hooks/use_hide_conversation.js +100 -95
- package/build/hooks/use_hide_conversation.js.map +1 -1
- package/build/hooks/use_teams.d.ts +6 -0
- package/build/hooks/use_teams.d.ts.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.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/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 +1 -0
- 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 +7 -2
- 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/contexts/conversations_context.tsx +2 -0
- package/src/hooks/__tests__/use_hide_conversation.test.tsx +44 -2
- package/src/hooks/use_api.ts +2 -1
- package/src/hooks/use_clear_conversation_filters.ts +1 -0
- package/src/hooks/use_hidden_conversations_count.ts +14 -0
- package/src/hooks/use_hide_conversation.ts +18 -8
- 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/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 +1 -0
- package/src/utils/request/conversation.ts +6 -0
- package/src/vendor/font_awesome_pro_solid_icons.ts +12 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation_actions.d.ts","sourceRoot":"","sources":["../../../src/components/conversations/conversation_actions.tsx"],"names":[],"mappings":"AACA,OAAc,EAAE,SAAS,EAA4C,MAAM,OAAO,CAAA;AAClF,OAAO,EAIL,SAAS,EAGT,SAAS,EACV,MAAM,cAAc,CAAA;AAYrB,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAMlD,wBAAgB,mBAAmB,CAAC,EAClC,QAAQ,EACR,YAAY,EACZ,KAAK,EACL,OAAO,EACP,kBAAkB,GACnB,EAAE;IACD,QAAQ,EAAE,SAAS,CAAA;IACnB,YAAY,EAAE,oBAAoB,CAAA;IAClC,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B,
|
|
1
|
+
{"version":3,"file":"conversation_actions.d.ts","sourceRoot":"","sources":["../../../src/components/conversations/conversation_actions.tsx"],"names":[],"mappings":"AACA,OAAc,EAAE,SAAS,EAA4C,MAAM,OAAO,CAAA;AAClF,OAAO,EAIL,SAAS,EAGT,SAAS,EACV,MAAM,cAAc,CAAA;AAYrB,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAMlD,wBAAgB,mBAAmB,CAAC,EAClC,QAAQ,EACR,YAAY,EACZ,KAAK,EACL,OAAO,EACP,kBAAkB,GACnB,EAAE;IACD,QAAQ,EAAE,SAAS,CAAA;IACnB,YAAY,EAAE,oBAAoB,CAAA;IAClC,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B,2CA6KA"}
|
|
@@ -14,7 +14,7 @@ import { tokens } from '../../vendor/tapestry/tokens';
|
|
|
14
14
|
import { SwipeableToggleButton } from './swipeable_toggle_button';
|
|
15
15
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
16
|
export function ConversationActions(t0) {
|
|
17
|
-
const $ = _c(
|
|
17
|
+
const $ = _c(90);
|
|
18
18
|
const {
|
|
19
19
|
children,
|
|
20
20
|
conversation,
|
|
@@ -28,7 +28,8 @@ export function ConversationActions(t0) {
|
|
|
28
28
|
const {
|
|
29
29
|
activeConversationId,
|
|
30
30
|
setActiveConversationId,
|
|
31
|
-
hideable
|
|
31
|
+
hideable,
|
|
32
|
+
args
|
|
32
33
|
} = useConversationsContext();
|
|
33
34
|
const [disabled, setDisabled] = useState(false);
|
|
34
35
|
const overshootLeft = Platform.OS === "ios";
|
|
@@ -73,111 +74,114 @@ export function ConversationActions(t0) {
|
|
|
73
74
|
markRead,
|
|
74
75
|
isPending: isMarkReadPending
|
|
75
76
|
} = useConversationsMarkRead(t3);
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
const t4 = args.show_hidden || undefined;
|
|
78
|
+
let t5;
|
|
79
|
+
if ($[6] !== conversation || $[7] !== t4) {
|
|
80
|
+
t5 = {
|
|
81
|
+
conversation,
|
|
82
|
+
hidden: t4
|
|
80
83
|
};
|
|
81
84
|
$[6] = conversation;
|
|
82
85
|
$[7] = t4;
|
|
86
|
+
$[8] = t5;
|
|
83
87
|
} else {
|
|
84
|
-
|
|
88
|
+
t5 = $[8];
|
|
85
89
|
}
|
|
86
90
|
const {
|
|
87
91
|
hidden,
|
|
88
92
|
setHidden,
|
|
89
93
|
isPending: isHiddenPending
|
|
90
|
-
} = useHideConversation(
|
|
94
|
+
} = useHideConversation(t5);
|
|
91
95
|
const hideConversationsEnabled = useHideConversationsEnabled();
|
|
92
96
|
const isConversationEmpty = conversation.lastMessageCreatedAt === null;
|
|
93
|
-
let t5;
|
|
94
|
-
if ($[8] !== conversation) {
|
|
95
|
-
t5 = isArchivedConversation(conversation);
|
|
96
|
-
$[8] = conversation;
|
|
97
|
-
$[9] = t5;
|
|
98
|
-
} else {
|
|
99
|
-
t5 = $[9];
|
|
100
|
-
}
|
|
101
|
-
const canMute = !t5;
|
|
102
97
|
let t6;
|
|
103
|
-
if ($[
|
|
104
|
-
t6 =
|
|
105
|
-
$[
|
|
106
|
-
$[
|
|
107
|
-
$[12] = hideable;
|
|
108
|
-
$[13] = t6;
|
|
98
|
+
if ($[9] !== conversation) {
|
|
99
|
+
t6 = isArchivedConversation(conversation);
|
|
100
|
+
$[9] = conversation;
|
|
101
|
+
$[10] = t6;
|
|
109
102
|
} else {
|
|
110
|
-
t6 = $[
|
|
103
|
+
t6 = $[10];
|
|
111
104
|
}
|
|
112
|
-
const
|
|
105
|
+
const canMute = !t6;
|
|
113
106
|
let t7;
|
|
114
|
-
if ($[
|
|
115
|
-
t7 = ()
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
107
|
+
if ($[11] !== conversation || $[12] !== hideConversationsEnabled || $[13] !== hideable) {
|
|
108
|
+
t7 = hideable && hideConversationsEnabled && !isArchivedConversation(conversation);
|
|
109
|
+
$[11] = conversation;
|
|
110
|
+
$[12] = hideConversationsEnabled;
|
|
111
|
+
$[13] = hideable;
|
|
119
112
|
$[14] = t7;
|
|
120
113
|
} else {
|
|
121
114
|
t7 = $[14];
|
|
122
115
|
}
|
|
123
|
-
const
|
|
116
|
+
const canHide = t7;
|
|
124
117
|
let t8;
|
|
125
|
-
if ($[15]
|
|
118
|
+
if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
|
|
126
119
|
t8 = () => {
|
|
127
|
-
setDisabled(
|
|
128
|
-
|
|
120
|
+
setDisabled(false);
|
|
121
|
+
swipeableRef.current?.close();
|
|
129
122
|
};
|
|
130
|
-
$[15] =
|
|
131
|
-
$[16] = setActiveConversationId;
|
|
132
|
-
$[17] = t8;
|
|
123
|
+
$[15] = t8;
|
|
133
124
|
} else {
|
|
134
|
-
t8 = $[
|
|
125
|
+
t8 = $[15];
|
|
135
126
|
}
|
|
136
|
-
const
|
|
127
|
+
const handleSwipeableClose = t8;
|
|
137
128
|
let t9;
|
|
138
|
-
if ($[
|
|
129
|
+
if ($[16] !== conversation.id || $[17] !== setActiveConversationId) {
|
|
139
130
|
t9 = () => {
|
|
131
|
+
setDisabled(true);
|
|
132
|
+
setActiveConversationId(conversation.id);
|
|
133
|
+
};
|
|
134
|
+
$[16] = conversation.id;
|
|
135
|
+
$[17] = setActiveConversationId;
|
|
136
|
+
$[18] = t9;
|
|
137
|
+
} else {
|
|
138
|
+
t9 = $[18];
|
|
139
|
+
}
|
|
140
|
+
const handleSwipeableOpen = t9;
|
|
141
|
+
let t10;
|
|
142
|
+
if ($[19] !== disabled || $[20] !== onPress) {
|
|
143
|
+
t10 = () => {
|
|
140
144
|
if (disabled || !onPress) {
|
|
141
145
|
return;
|
|
142
146
|
}
|
|
143
147
|
onPress();
|
|
144
148
|
};
|
|
145
|
-
$[
|
|
146
|
-
$[
|
|
147
|
-
$[
|
|
149
|
+
$[19] = disabled;
|
|
150
|
+
$[20] = onPress;
|
|
151
|
+
$[21] = t10;
|
|
148
152
|
} else {
|
|
149
|
-
|
|
153
|
+
t10 = $[21];
|
|
150
154
|
}
|
|
151
|
-
const handlePress =
|
|
152
|
-
let
|
|
153
|
-
if ($[
|
|
154
|
-
|
|
155
|
+
const handlePress = t10;
|
|
156
|
+
let t11;
|
|
157
|
+
if ($[22] !== muted || $[23] !== setMuted) {
|
|
158
|
+
t11 = () => {
|
|
155
159
|
setMuted(!muted);
|
|
156
160
|
handleSwipeableClose();
|
|
157
161
|
};
|
|
158
|
-
$[
|
|
159
|
-
$[
|
|
160
|
-
$[
|
|
162
|
+
$[22] = muted;
|
|
163
|
+
$[23] = setMuted;
|
|
164
|
+
$[24] = t11;
|
|
161
165
|
} else {
|
|
162
|
-
|
|
166
|
+
t11 = $[24];
|
|
163
167
|
}
|
|
164
|
-
const handleMute =
|
|
165
|
-
let
|
|
166
|
-
if ($[
|
|
167
|
-
|
|
168
|
+
const handleMute = t11;
|
|
169
|
+
let t12;
|
|
170
|
+
if ($[25] !== hidden || $[26] !== setHidden) {
|
|
171
|
+
t12 = () => {
|
|
168
172
|
setHidden(!hidden);
|
|
169
173
|
handleSwipeableClose();
|
|
170
174
|
};
|
|
171
|
-
$[
|
|
172
|
-
$[
|
|
173
|
-
$[
|
|
175
|
+
$[25] = hidden;
|
|
176
|
+
$[26] = setHidden;
|
|
177
|
+
$[27] = t12;
|
|
174
178
|
} else {
|
|
175
|
-
|
|
179
|
+
t12 = $[27];
|
|
176
180
|
}
|
|
177
|
-
const handleHide =
|
|
178
|
-
let
|
|
179
|
-
if ($[
|
|
180
|
-
|
|
181
|
+
const handleHide = t12;
|
|
182
|
+
let t13;
|
|
183
|
+
if ($[28] !== conversation.id || $[29] !== disabled || $[30] !== navigation) {
|
|
184
|
+
t13 = () => {
|
|
181
185
|
if (disabled) {
|
|
182
186
|
return;
|
|
183
187
|
}
|
|
@@ -186,100 +190,100 @@ export function ConversationActions(t0) {
|
|
|
186
190
|
conversation_id: conversation.id
|
|
187
191
|
});
|
|
188
192
|
};
|
|
189
|
-
$[
|
|
190
|
-
$[
|
|
191
|
-
$[
|
|
192
|
-
$[
|
|
193
|
+
$[28] = conversation.id;
|
|
194
|
+
$[29] = disabled;
|
|
195
|
+
$[30] = navigation;
|
|
196
|
+
$[31] = t13;
|
|
193
197
|
} else {
|
|
194
|
-
|
|
198
|
+
t13 = $[31];
|
|
195
199
|
}
|
|
196
|
-
const handleLongPress =
|
|
197
|
-
let
|
|
198
|
-
if ($[
|
|
199
|
-
|
|
200
|
+
const handleLongPress = t13;
|
|
201
|
+
let t14;
|
|
202
|
+
if ($[32] !== markRead || $[33] !== read) {
|
|
203
|
+
t14 = () => {
|
|
200
204
|
markRead(!read);
|
|
201
205
|
handleSwipeableClose();
|
|
202
206
|
};
|
|
203
|
-
$[
|
|
204
|
-
$[
|
|
205
|
-
$[
|
|
207
|
+
$[32] = markRead;
|
|
208
|
+
$[33] = read;
|
|
209
|
+
$[34] = t14;
|
|
206
210
|
} else {
|
|
207
|
-
|
|
211
|
+
t14 = $[34];
|
|
208
212
|
}
|
|
209
|
-
const handleLatestMessageUnread =
|
|
210
|
-
let
|
|
211
|
-
if ($[
|
|
212
|
-
|
|
213
|
+
const handleLatestMessageUnread = t14;
|
|
214
|
+
let t15;
|
|
215
|
+
if ($[35] !== isConversationEmpty || $[36] !== read) {
|
|
216
|
+
t15 = !isConversationEmpty ? [{
|
|
213
217
|
name: read ? "markUnread" : "markRead",
|
|
214
218
|
label: read ? "Mark unread" : "Mark read"
|
|
215
219
|
}] : [];
|
|
216
|
-
$[
|
|
217
|
-
$[
|
|
218
|
-
$[
|
|
220
|
+
$[35] = isConversationEmpty;
|
|
221
|
+
$[36] = read;
|
|
222
|
+
$[37] = t15;
|
|
219
223
|
} else {
|
|
220
|
-
|
|
224
|
+
t15 = $[37];
|
|
221
225
|
}
|
|
222
|
-
const readAccessibilityAction =
|
|
223
|
-
let
|
|
224
|
-
if ($[
|
|
225
|
-
|
|
226
|
+
const readAccessibilityAction = t15;
|
|
227
|
+
let t16;
|
|
228
|
+
if ($[38] !== canMute || $[39] !== muted) {
|
|
229
|
+
t16 = canMute ? [{
|
|
226
230
|
name: muted ? "unmute" : "mute",
|
|
227
231
|
label: muted ? "Enable" : "Silence"
|
|
228
232
|
}] : [];
|
|
229
|
-
$[
|
|
230
|
-
$[
|
|
231
|
-
$[
|
|
233
|
+
$[38] = canMute;
|
|
234
|
+
$[39] = muted;
|
|
235
|
+
$[40] = t16;
|
|
232
236
|
} else {
|
|
233
|
-
|
|
237
|
+
t16 = $[40];
|
|
234
238
|
}
|
|
235
|
-
const muteAccessibilityAction =
|
|
236
|
-
let
|
|
237
|
-
if ($[
|
|
238
|
-
|
|
239
|
+
const muteAccessibilityAction = t16;
|
|
240
|
+
let t17;
|
|
241
|
+
if ($[41] !== canHide || $[42] !== hidden) {
|
|
242
|
+
t17 = canHide ? [{
|
|
239
243
|
name: hidden ? "unhide" : "hide",
|
|
240
244
|
label: hidden ? "Unhide" : "Hide"
|
|
241
245
|
}] : [];
|
|
242
|
-
$[
|
|
243
|
-
$[
|
|
244
|
-
$[
|
|
246
|
+
$[41] = canHide;
|
|
247
|
+
$[42] = hidden;
|
|
248
|
+
$[43] = t17;
|
|
245
249
|
} else {
|
|
246
|
-
|
|
250
|
+
t17 = $[43];
|
|
247
251
|
}
|
|
248
|
-
const hideAccessibilityAction =
|
|
249
|
-
let
|
|
250
|
-
if ($[
|
|
251
|
-
|
|
252
|
-
$[
|
|
253
|
-
$[
|
|
254
|
-
$[
|
|
255
|
-
$[
|
|
252
|
+
const hideAccessibilityAction = t17;
|
|
253
|
+
let t18;
|
|
254
|
+
if ($[44] !== hideAccessibilityAction || $[45] !== muteAccessibilityAction || $[46] !== readAccessibilityAction) {
|
|
255
|
+
t18 = [...muteAccessibilityAction, ...hideAccessibilityAction, ...readAccessibilityAction];
|
|
256
|
+
$[44] = hideAccessibilityAction;
|
|
257
|
+
$[45] = muteAccessibilityAction;
|
|
258
|
+
$[46] = readAccessibilityAction;
|
|
259
|
+
$[47] = t18;
|
|
256
260
|
} else {
|
|
257
|
-
|
|
261
|
+
t18 = $[47];
|
|
258
262
|
}
|
|
259
|
-
const accessibilityActions =
|
|
260
|
-
let
|
|
261
|
-
if ($[
|
|
262
|
-
|
|
263
|
-
|
|
263
|
+
const accessibilityActions = t18;
|
|
264
|
+
let t19;
|
|
265
|
+
if ($[48] !== handleHide || $[49] !== handleLatestMessageUnread || $[50] !== handleMute) {
|
|
266
|
+
t19 = event => {
|
|
267
|
+
bb74: switch (event.nativeEvent.actionName) {
|
|
264
268
|
case "markRead":
|
|
265
269
|
{
|
|
266
270
|
handleLatestMessageUnread();
|
|
267
|
-
break
|
|
271
|
+
break bb74;
|
|
268
272
|
}
|
|
269
273
|
case "markUnread":
|
|
270
274
|
{
|
|
271
275
|
handleLatestMessageUnread();
|
|
272
|
-
break
|
|
276
|
+
break bb74;
|
|
273
277
|
}
|
|
274
278
|
case "mute":
|
|
275
279
|
{
|
|
276
280
|
handleMute();
|
|
277
|
-
break
|
|
281
|
+
break bb74;
|
|
278
282
|
}
|
|
279
283
|
case "unmute":
|
|
280
284
|
{
|
|
281
285
|
handleMute();
|
|
282
|
-
break
|
|
286
|
+
break bb74;
|
|
283
287
|
}
|
|
284
288
|
case "hide":
|
|
285
289
|
case "unhide":
|
|
@@ -288,43 +292,43 @@ export function ConversationActions(t0) {
|
|
|
288
292
|
}
|
|
289
293
|
}
|
|
290
294
|
};
|
|
291
|
-
$[
|
|
292
|
-
$[
|
|
293
|
-
$[
|
|
294
|
-
$[
|
|
295
|
+
$[48] = handleHide;
|
|
296
|
+
$[49] = handleLatestMessageUnread;
|
|
297
|
+
$[50] = handleMute;
|
|
298
|
+
$[51] = t19;
|
|
295
299
|
} else {
|
|
296
|
-
|
|
300
|
+
t19 = $[51];
|
|
297
301
|
}
|
|
298
|
-
const handleAccessibilityAction =
|
|
299
|
-
let t19;
|
|
302
|
+
const handleAccessibilityAction = t19;
|
|
300
303
|
let t20;
|
|
301
|
-
|
|
302
|
-
|
|
304
|
+
let t21;
|
|
305
|
+
if ($[52] !== activeConversationId || $[53] !== conversation.id) {
|
|
306
|
+
t20 = () => {
|
|
303
307
|
if (activeConversationId === conversation.id) {
|
|
304
308
|
return;
|
|
305
309
|
}
|
|
306
310
|
handleSwipeableClose();
|
|
307
311
|
};
|
|
308
|
-
|
|
309
|
-
$[
|
|
310
|
-
$[
|
|
311
|
-
$[53] = t19;
|
|
312
|
+
t21 = [activeConversationId, conversation.id, handleSwipeableClose];
|
|
313
|
+
$[52] = activeConversationId;
|
|
314
|
+
$[53] = conversation.id;
|
|
312
315
|
$[54] = t20;
|
|
313
|
-
} else {
|
|
314
|
-
t19 = $[53];
|
|
315
|
-
t20 = $[54];
|
|
316
|
-
}
|
|
317
|
-
useEffect(t19, t20);
|
|
318
|
-
let t21;
|
|
319
|
-
if ($[55] === Symbol.for("react.memo_cache_sentinel")) {
|
|
320
|
-
t21 = () => setDisabled(false);
|
|
321
316
|
$[55] = t21;
|
|
322
317
|
} else {
|
|
318
|
+
t20 = $[54];
|
|
323
319
|
t21 = $[55];
|
|
324
320
|
}
|
|
321
|
+
useEffect(t20, t21);
|
|
325
322
|
let t22;
|
|
326
|
-
if ($[56]
|
|
327
|
-
t22 = () =>
|
|
323
|
+
if ($[56] === Symbol.for("react.memo_cache_sentinel")) {
|
|
324
|
+
t22 = () => setDisabled(false);
|
|
325
|
+
$[56] = t22;
|
|
326
|
+
} else {
|
|
327
|
+
t22 = $[56];
|
|
328
|
+
}
|
|
329
|
+
let t23;
|
|
330
|
+
if ($[57] !== canHide || $[58] !== canMute || $[59] !== handleHide || $[60] !== handleLatestMessageUnread || $[61] !== handleMute || $[62] !== hidden || $[63] !== isConversationEmpty || $[64] !== isHiddenPending || $[65] !== isMarkReadPending || $[66] !== isMutedPending || $[67] !== muted || $[68] !== read) {
|
|
331
|
+
t23 = () => /*#__PURE__*/_jsx(LeftActions, {
|
|
328
332
|
isConversationEmpty: isConversationEmpty,
|
|
329
333
|
canMute: canMute,
|
|
330
334
|
canHide: canHide,
|
|
@@ -338,79 +342,79 @@ export function ConversationActions(t0) {
|
|
|
338
342
|
isHiddenPending: isHiddenPending,
|
|
339
343
|
isMarkReadPending: isMarkReadPending
|
|
340
344
|
});
|
|
341
|
-
$[
|
|
342
|
-
$[
|
|
343
|
-
$[
|
|
344
|
-
$[
|
|
345
|
-
$[
|
|
346
|
-
$[
|
|
347
|
-
$[
|
|
348
|
-
$[
|
|
349
|
-
$[
|
|
350
|
-
$[
|
|
351
|
-
$[
|
|
352
|
-
$[
|
|
353
|
-
$[
|
|
354
|
-
} else {
|
|
355
|
-
|
|
356
|
-
}
|
|
357
|
-
const
|
|
358
|
-
const
|
|
359
|
-
let
|
|
360
|
-
if ($[
|
|
361
|
-
|
|
345
|
+
$[57] = canHide;
|
|
346
|
+
$[58] = canMute;
|
|
347
|
+
$[59] = handleHide;
|
|
348
|
+
$[60] = handleLatestMessageUnread;
|
|
349
|
+
$[61] = handleMute;
|
|
350
|
+
$[62] = hidden;
|
|
351
|
+
$[63] = isConversationEmpty;
|
|
352
|
+
$[64] = isHiddenPending;
|
|
353
|
+
$[65] = isMarkReadPending;
|
|
354
|
+
$[66] = isMutedPending;
|
|
355
|
+
$[67] = muted;
|
|
356
|
+
$[68] = read;
|
|
357
|
+
$[69] = t23;
|
|
358
|
+
} else {
|
|
359
|
+
t23 = $[69];
|
|
360
|
+
}
|
|
361
|
+
const t24 = `conversation-${conversation.id}`;
|
|
362
|
+
const t25 = canHide ? handleLongPress : undefined;
|
|
363
|
+
let t26;
|
|
364
|
+
if ($[70] !== style) {
|
|
365
|
+
t26 = t27 => {
|
|
362
366
|
const {
|
|
363
367
|
pressed
|
|
364
|
-
} =
|
|
368
|
+
} = t27;
|
|
365
369
|
return [style, pressed && platformPressedOpacityStyle];
|
|
366
370
|
};
|
|
367
|
-
$[
|
|
368
|
-
$[
|
|
371
|
+
$[70] = style;
|
|
372
|
+
$[71] = t26;
|
|
369
373
|
} else {
|
|
370
|
-
|
|
374
|
+
t26 = $[71];
|
|
371
375
|
}
|
|
372
|
-
let
|
|
373
|
-
if ($[
|
|
374
|
-
|
|
376
|
+
let t27;
|
|
377
|
+
if ($[72] !== androidRippleColor) {
|
|
378
|
+
t27 = {
|
|
375
379
|
color: androidRippleColor,
|
|
376
380
|
borderless: false,
|
|
377
381
|
foreground: true
|
|
378
382
|
};
|
|
379
|
-
$[
|
|
380
|
-
$[
|
|
383
|
+
$[72] = androidRippleColor;
|
|
384
|
+
$[73] = t27;
|
|
381
385
|
} else {
|
|
382
|
-
|
|
386
|
+
t27 = $[73];
|
|
383
387
|
}
|
|
384
|
-
let
|
|
385
|
-
if ($[
|
|
386
|
-
|
|
387
|
-
testID:
|
|
388
|
+
let t28;
|
|
389
|
+
if ($[74] !== accessibilityActions || $[75] !== accessibilityLabel || $[76] !== children || $[77] !== handleAccessibilityAction || $[78] !== handlePress || $[79] !== t24 || $[80] !== t25 || $[81] !== t26 || $[82] !== t27) {
|
|
390
|
+
t28 = /*#__PURE__*/_jsx(Pressable, {
|
|
391
|
+
testID: t24,
|
|
388
392
|
onPress: handlePress,
|
|
389
|
-
onLongPress:
|
|
390
|
-
style:
|
|
391
|
-
android_ripple:
|
|
393
|
+
onLongPress: t25,
|
|
394
|
+
style: t26,
|
|
395
|
+
android_ripple: t27,
|
|
392
396
|
accessibilityLabel: accessibilityLabel,
|
|
393
397
|
accessibilityRole: "button",
|
|
394
398
|
accessibilityActions: accessibilityActions,
|
|
395
399
|
onAccessibilityAction: handleAccessibilityAction,
|
|
396
400
|
children: children
|
|
397
401
|
});
|
|
398
|
-
$[
|
|
399
|
-
$[
|
|
400
|
-
$[
|
|
401
|
-
$[
|
|
402
|
-
$[
|
|
403
|
-
$[78] = t23;
|
|
402
|
+
$[74] = accessibilityActions;
|
|
403
|
+
$[75] = accessibilityLabel;
|
|
404
|
+
$[76] = children;
|
|
405
|
+
$[77] = handleAccessibilityAction;
|
|
406
|
+
$[78] = handlePress;
|
|
404
407
|
$[79] = t24;
|
|
405
408
|
$[80] = t25;
|
|
406
409
|
$[81] = t26;
|
|
407
410
|
$[82] = t27;
|
|
411
|
+
$[83] = t28;
|
|
408
412
|
} else {
|
|
409
|
-
|
|
413
|
+
t28 = $[83];
|
|
410
414
|
}
|
|
411
|
-
let
|
|
412
|
-
if ($[
|
|
413
|
-
|
|
415
|
+
let t29;
|
|
416
|
+
if ($[84] !== handleSwipeableOpen || $[85] !== styles.swipeableChildContainer || $[86] !== styles.swipeableContainer || $[87] !== t23 || $[88] !== t28) {
|
|
417
|
+
t29 = /*#__PURE__*/_jsx(ReanimatedSwipeable, {
|
|
414
418
|
ref: swipeableRef,
|
|
415
419
|
childrenContainerStyle: styles.swipeableChildContainer,
|
|
416
420
|
containerStyle: styles.swipeableContainer,
|
|
@@ -418,21 +422,21 @@ export function ConversationActions(t0) {
|
|
|
418
422
|
overshootLeft: overshootLeft,
|
|
419
423
|
overshootRight: false,
|
|
420
424
|
onSwipeableOpenStartDrag: handleSwipeableOpen,
|
|
421
|
-
onSwipeableClose:
|
|
425
|
+
onSwipeableClose: t22,
|
|
422
426
|
renderRightActions: _temp,
|
|
423
|
-
renderLeftActions:
|
|
424
|
-
children:
|
|
427
|
+
renderLeftActions: t23,
|
|
428
|
+
children: t28
|
|
425
429
|
});
|
|
426
|
-
$[
|
|
427
|
-
$[
|
|
428
|
-
$[
|
|
429
|
-
$[
|
|
430
|
-
$[87] = t27;
|
|
430
|
+
$[84] = handleSwipeableOpen;
|
|
431
|
+
$[85] = styles.swipeableChildContainer;
|
|
432
|
+
$[86] = styles.swipeableContainer;
|
|
433
|
+
$[87] = t23;
|
|
431
434
|
$[88] = t28;
|
|
435
|
+
$[89] = t29;
|
|
432
436
|
} else {
|
|
433
|
-
|
|
437
|
+
t29 = $[89];
|
|
434
438
|
}
|
|
435
|
-
return
|
|
439
|
+
return t29;
|
|
436
440
|
}
|
|
437
441
|
function _temp() {
|
|
438
442
|
return /*#__PURE__*/_jsx(_Fragment, {});
|