@planningcenter/chat-react-native 4.4.0-rc.7 → 4.4.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 (339) hide show
  1. package/build/components/conversation/jump_to_bottom_button.d.ts.map +1 -1
  2. package/build/components/conversation/jump_to_bottom_button.js +42 -40
  3. package/build/components/conversation/jump_to_bottom_button.js.map +1 -1
  4. package/build/components/conversation/message.d.ts +2 -1
  5. package/build/components/conversation/message.d.ts.map +1 -1
  6. package/build/components/conversation/message.js +3 -1
  7. package/build/components/conversation/message.js.map +1 -1
  8. package/build/components/conversation/message_form.d.ts.map +1 -1
  9. package/build/components/conversation/message_form.js +3 -1
  10. package/build/components/conversation/message_form.js.map +1 -1
  11. package/build/components/conversation/message_list.d.ts.map +1 -1
  12. package/build/components/conversation/message_list.js +35 -31
  13. package/build/components/conversation/message_list.js.map +1 -1
  14. package/build/components/conversation/message_reaction.d.ts +2 -1
  15. package/build/components/conversation/message_reaction.d.ts.map +1 -1
  16. package/build/components/conversation/message_reaction.js +67 -60
  17. package/build/components/conversation/message_reaction.js.map +1 -1
  18. package/build/components/conversation/messages_disabled_banners.d.ts +7 -5
  19. package/build/components/conversation/messages_disabled_banners.d.ts.map +1 -1
  20. package/build/components/conversation/messages_disabled_banners.js +15 -14
  21. package/build/components/conversation/messages_disabled_banners.js.map +1 -1
  22. package/build/components/conversation/system_message.d.ts +2 -1
  23. package/build/components/conversation/system_message.d.ts.map +1 -1
  24. package/build/components/conversation/system_message.js +133 -100
  25. package/build/components/conversation/system_message.js.map +1 -1
  26. package/build/components/conversations/archived_results_footer.d.ts +6 -0
  27. package/build/components/conversations/archived_results_footer.d.ts.map +1 -0
  28. package/build/components/conversations/archived_results_footer.js +51 -0
  29. package/build/components/conversations/archived_results_footer.js.map +1 -0
  30. package/build/components/conversations/conversation_actions.d.ts.map +1 -1
  31. package/build/components/conversations/conversation_actions.js +241 -206
  32. package/build/components/conversations/conversation_actions.js.map +1 -1
  33. package/build/components/conversations/conversation_preview.d.ts.map +1 -1
  34. package/build/components/conversations/conversation_preview.js +102 -93
  35. package/build/components/conversations/conversation_preview.js.map +1 -1
  36. package/build/components/conversations/conversations.d.ts.map +1 -1
  37. package/build/components/conversations/conversations.js +66 -41
  38. package/build/components/conversations/conversations.js.map +1 -1
  39. package/build/components/conversations/conversations_blank_state.d.ts.map +1 -1
  40. package/build/components/conversations/conversations_blank_state.js +55 -12
  41. package/build/components/conversations/conversations_blank_state.js.map +1 -1
  42. package/build/components/conversations/filtered_results_footer.d.ts +2 -0
  43. package/build/components/conversations/filtered_results_footer.d.ts.map +1 -0
  44. package/build/components/conversations/filtered_results_footer.js +77 -0
  45. package/build/components/conversations/filtered_results_footer.js.map +1 -0
  46. package/build/components/display/action_button.d.ts.map +1 -1
  47. package/build/components/display/action_button.js +18 -16
  48. package/build/components/display/action_button.js.map +1 -1
  49. package/build/components/display/filter_dropdown.d.ts +14 -0
  50. package/build/components/display/filter_dropdown.d.ts.map +1 -0
  51. package/build/components/display/filter_dropdown.js +193 -0
  52. package/build/components/display/filter_dropdown.js.map +1 -0
  53. package/build/components/display/icon_tile.d.ts +13 -0
  54. package/build/components/display/icon_tile.d.ts.map +1 -0
  55. package/build/components/display/icon_tile.js +149 -0
  56. package/build/components/display/icon_tile.js.map +1 -0
  57. package/build/components/display/index.d.ts +2 -0
  58. package/build/components/display/index.d.ts.map +1 -1
  59. package/build/components/display/index.js +2 -0
  60. package/build/components/display/index.js.map +1 -1
  61. package/build/contexts/api_provider.d.ts.map +1 -1
  62. package/build/contexts/api_provider.js +21 -9
  63. package/build/contexts/api_provider.js.map +1 -1
  64. package/build/contexts/conversations_context.d.ts.map +1 -1
  65. package/build/contexts/conversations_context.js +21 -18
  66. package/build/contexts/conversations_context.js.map +1 -1
  67. package/build/hooks/groups/use_group_members_for_new_conversation.d.ts +196 -16
  68. package/build/hooks/groups/use_group_members_for_new_conversation.d.ts.map +1 -1
  69. package/build/hooks/groups/use_group_members_for_new_conversation.js +72 -58
  70. package/build/hooks/groups/use_group_members_for_new_conversation.js.map +1 -1
  71. package/build/hooks/index.d.ts +3 -0
  72. package/build/hooks/index.d.ts.map +1 -1
  73. package/build/hooks/index.js +3 -0
  74. package/build/hooks/index.js.map +1 -1
  75. package/build/hooks/use_animated_message_background_color.d.ts.map +1 -1
  76. package/build/hooks/use_animated_message_background_color.js +5 -3
  77. package/build/hooks/use_animated_message_background_color.js.map +1 -1
  78. package/build/hooks/use_api.d.ts +3 -2
  79. package/build/hooks/use_api.d.ts.map +1 -1
  80. package/build/hooks/use_api.js.map +1 -1
  81. package/build/hooks/use_can_browse_archived_conversations.d.ts +2 -0
  82. package/build/hooks/use_can_browse_archived_conversations.d.ts.map +1 -0
  83. package/build/hooks/use_can_browse_archived_conversations.js +29 -0
  84. package/build/hooks/use_can_browse_archived_conversations.js.map +1 -0
  85. package/build/hooks/use_clear_conversation_filters.d.ts +2 -0
  86. package/build/hooks/use_clear_conversation_filters.d.ts.map +1 -0
  87. package/build/hooks/use_clear_conversation_filters.js +25 -0
  88. package/build/hooks/use_clear_conversation_filters.js.map +1 -0
  89. package/build/hooks/use_conversation.d.ts +73 -1
  90. package/build/hooks/use_conversation.d.ts.map +1 -1
  91. package/build/hooks/use_conversation.js +130 -3
  92. package/build/hooks/use_conversation.js.map +1 -1
  93. package/build/hooks/use_conversation_messages.d.ts.map +1 -1
  94. package/build/hooks/use_conversation_messages.js +29 -26
  95. package/build/hooks/use_conversation_messages.js.map +1 -1
  96. package/build/hooks/use_current_person.d.ts.map +1 -1
  97. package/build/hooks/use_current_person.js +1 -1
  98. package/build/hooks/use_current_person.js.map +1 -1
  99. package/build/hooks/use_jolt.d.ts +1 -0
  100. package/build/hooks/use_jolt.d.ts.map +1 -1
  101. package/build/hooks/use_jolt.js +59 -0
  102. package/build/hooks/use_jolt.js.map +1 -1
  103. package/build/hooks/use_manual_archiving_enabled.d.ts +2 -0
  104. package/build/hooks/use_manual_archiving_enabled.d.ts.map +1 -0
  105. package/build/hooks/use_manual_archiving_enabled.js +18 -0
  106. package/build/hooks/use_manual_archiving_enabled.js.map +1 -0
  107. package/build/hooks/use_mark_latest_message_read.d.ts.map +1 -1
  108. package/build/hooks/use_mark_latest_message_read.js +3 -3
  109. package/build/hooks/use_mark_latest_message_read.js.map +1 -1
  110. package/build/hooks/use_reduce_motion.d.ts +2 -0
  111. package/build/hooks/use_reduce_motion.d.ts.map +1 -0
  112. package/build/hooks/use_reduce_motion.js +28 -0
  113. package/build/hooks/use_reduce_motion.js.map +1 -0
  114. package/build/hooks/use_unarchive_conversation_action.d.ts +7 -0
  115. package/build/hooks/use_unarchive_conversation_action.d.ts.map +1 -0
  116. package/build/hooks/use_unarchive_conversation_action.js +52 -0
  117. package/build/hooks/use_unarchive_conversation_action.js.map +1 -0
  118. package/build/screens/attachment_actions/attachment_actions_screen.d.ts.map +1 -1
  119. package/build/screens/attachment_actions/attachment_actions_screen.js +84 -61
  120. package/build/screens/attachment_actions/attachment_actions_screen.js.map +1 -1
  121. package/build/screens/conversation_details_screen.d.ts.map +1 -1
  122. package/build/screens/conversation_details_screen.js +490 -395
  123. package/build/screens/conversation_details_screen.js.map +1 -1
  124. package/build/screens/conversation_filters/components/conversation_filters.d.ts.map +1 -1
  125. package/build/screens/conversation_filters/components/conversation_filters.js +88 -18
  126. package/build/screens/conversation_filters/components/conversation_filters.js.map +1 -1
  127. package/build/screens/conversation_filters/components/rows.d.ts +9 -0
  128. package/build/screens/conversation_filters/components/rows.d.ts.map +1 -1
  129. package/build/screens/conversation_filters/components/rows.js +93 -1
  130. package/build/screens/conversation_filters/components/rows.js.map +1 -1
  131. package/build/screens/conversation_filters/context/conversation_filter_context.d.ts.map +1 -1
  132. package/build/screens/conversation_filters/context/conversation_filter_context.js +8 -4
  133. package/build/screens/conversation_filters/context/conversation_filter_context.js.map +1 -1
  134. package/build/screens/conversation_filters/filter_types.d.ts +1 -0
  135. package/build/screens/conversation_filters/filter_types.d.ts.map +1 -1
  136. package/build/screens/conversation_filters/filter_types.js +1 -0
  137. package/build/screens/conversation_filters/filter_types.js.map +1 -1
  138. package/build/screens/conversation_filters/screen_props.d.ts +1 -0
  139. package/build/screens/conversation_filters/screen_props.d.ts.map +1 -1
  140. package/build/screens/conversation_filters/screen_props.js.map +1 -1
  141. package/build/screens/conversation_filters_screen.d.ts +1 -0
  142. package/build/screens/conversation_filters_screen.d.ts.map +1 -1
  143. package/build/screens/conversation_filters_screen.js +79 -48
  144. package/build/screens/conversation_filters_screen.js.map +1 -1
  145. package/build/screens/conversation_new/components/groups_form.d.ts.map +1 -1
  146. package/build/screens/conversation_new/components/groups_form.js +37 -34
  147. package/build/screens/conversation_new/components/groups_form.js.map +1 -1
  148. package/build/screens/conversation_screen.d.ts.map +1 -1
  149. package/build/screens/conversation_screen.js +13 -10
  150. package/build/screens/conversation_screen.js.map +1 -1
  151. package/build/screens/conversations/components/filter_dropdown_list_header_component.d.ts +2 -0
  152. package/build/screens/conversations/components/filter_dropdown_list_header_component.d.ts.map +1 -0
  153. package/build/screens/conversations/components/filter_dropdown_list_header_component.js +580 -0
  154. package/build/screens/conversations/components/filter_dropdown_list_header_component.js.map +1 -0
  155. package/build/screens/conversations/components/list_header_component.d.ts.map +1 -1
  156. package/build/screens/conversations/components/list_header_component.js +95 -90
  157. package/build/screens/conversations/components/list_header_component.js.map +1 -1
  158. package/build/screens/conversations/components/search_list_header_component.d.ts.map +1 -1
  159. package/build/screens/conversations/components/search_list_header_component.js +100 -95
  160. package/build/screens/conversations/components/search_list_header_component.js.map +1 -1
  161. package/build/screens/conversations/conversations_screen.d.ts +1 -0
  162. package/build/screens/conversations/conversations_screen.d.ts.map +1 -1
  163. package/build/screens/conversations/conversations_screen.js +15 -2
  164. package/build/screens/conversations/conversations_screen.js.map +1 -1
  165. package/build/screens/design_system_screen.d.ts.map +1 -1
  166. package/build/screens/design_system_screen.js +275 -215
  167. package/build/screens/design_system_screen.js.map +1 -1
  168. package/build/screens/message_actions_screen.d.ts.map +1 -1
  169. package/build/screens/message_actions_screen.js +112 -92
  170. package/build/screens/message_actions_screen.js.map +1 -1
  171. package/build/screens/search/search_screen.d.ts.map +1 -1
  172. package/build/screens/search/search_screen.js +10 -2
  173. package/build/screens/search/search_screen.js.map +1 -1
  174. package/build/screens/send_giphy_screen.d.ts +1 -0
  175. package/build/screens/send_giphy_screen.d.ts.map +1 -1
  176. package/build/screens/send_giphy_screen.js +108 -106
  177. package/build/screens/send_giphy_screen.js.map +1 -1
  178. package/build/screens/team_conversation_screen.js +1 -1
  179. package/build/screens/team_conversation_screen.js.map +1 -1
  180. package/build/types/jolt_events/message_events.d.ts +2 -0
  181. package/build/types/jolt_events/message_events.d.ts.map +1 -1
  182. package/build/types/jolt_events/message_events.js.map +1 -1
  183. package/build/types/resources/conversation.d.ts +2 -2
  184. package/build/types/resources/conversation.d.ts.map +1 -1
  185. package/build/types/resources/conversation.js.map +1 -1
  186. package/build/types/resources/member_ability.d.ts +2 -0
  187. package/build/types/resources/member_ability.d.ts.map +1 -1
  188. package/build/types/resources/member_ability.js.map +1 -1
  189. package/build/types/resources/message.d.ts +2 -0
  190. package/build/types/resources/message.d.ts.map +1 -1
  191. package/build/types/resources/message.js.map +1 -1
  192. package/build/types/resources/person.d.ts +1 -0
  193. package/build/types/resources/person.d.ts.map +1 -1
  194. package/build/types/resources/person.js.map +1 -1
  195. package/build/utils/archived_conversation.d.ts +5 -0
  196. package/build/utils/archived_conversation.d.ts.map +1 -0
  197. package/build/utils/archived_conversation.js +5 -0
  198. package/build/utils/archived_conversation.js.map +1 -0
  199. package/build/utils/date.d.ts +1 -0
  200. package/build/utils/date.d.ts.map +1 -1
  201. package/build/utils/date.js +9 -0
  202. package/build/utils/date.js.map +1 -1
  203. package/build/utils/index.d.ts +1 -0
  204. package/build/utils/index.d.ts.map +1 -1
  205. package/build/utils/index.js +1 -0
  206. package/build/utils/index.js.map +1 -1
  207. package/build/utils/jolt/transform_message_event_data_to_message_resource.d.ts.map +1 -1
  208. package/build/utils/jolt/transform_message_event_data_to_message_resource.js +2 -1
  209. package/build/utils/jolt/transform_message_event_data_to_message_resource.js.map +1 -1
  210. package/build/utils/native_adapters/configuration.d.ts +3 -0
  211. package/build/utils/native_adapters/configuration.d.ts.map +1 -1
  212. package/build/utils/native_adapters/configuration.js +3 -0
  213. package/build/utils/native_adapters/configuration.js.map +1 -1
  214. package/build/utils/native_adapters/index.d.ts +1 -0
  215. package/build/utils/native_adapters/index.d.ts.map +1 -1
  216. package/build/utils/native_adapters/index.js +1 -0
  217. package/build/utils/native_adapters/index.js.map +1 -1
  218. package/build/utils/native_adapters/menu.d.ts +41 -0
  219. package/build/utils/native_adapters/menu.d.ts.map +1 -0
  220. package/build/utils/native_adapters/menu.js +56 -0
  221. package/build/utils/native_adapters/menu.js.map +1 -0
  222. package/build/utils/request/conversation.d.ts +2 -1
  223. package/build/utils/request/conversation.d.ts.map +1 -1
  224. package/build/utils/request/conversation.js +4 -1
  225. package/build/utils/request/conversation.js.map +1 -1
  226. package/build/utils/request/messages_data_options.d.ts.map +1 -1
  227. package/build/utils/request/messages_data_options.js +1 -1
  228. package/build/utils/request/messages_data_options.js.map +1 -1
  229. package/build/utils/system_messages.d.ts +7 -5
  230. package/build/utils/system_messages.d.ts.map +1 -1
  231. package/build/utils/system_messages.js +10 -2
  232. package/build/utils/system_messages.js.map +1 -1
  233. package/build/vendor/font_awesome_pro_solid_icons.d.ts +1 -0
  234. package/build/vendor/font_awesome_pro_solid_icons.d.ts.map +1 -1
  235. package/build/vendor/font_awesome_pro_solid_icons.js +5 -0
  236. package/build/vendor/font_awesome_pro_solid_icons.js.map +1 -1
  237. package/package.json +3 -3
  238. package/src/__tests__/hooks/use_can_browse_archived_conversations.test.tsx +98 -0
  239. package/src/__tests__/screens/conversation_filters/components/conversation_filters.test.tsx +132 -0
  240. package/src/__tests__/screens/conversation_filters_screen.test.tsx +76 -0
  241. package/src/__tests__/screens/conversation_new/components/services_form.test.tsx +1 -0
  242. package/src/__tests__/screens/message_actions_screen.test.tsx +65 -2
  243. package/src/__tests__/screens/send_giphy_screen.test.tsx +102 -0
  244. package/src/__tests__/utils/system_messages.ts +19 -32
  245. package/src/components/conversation/__tests__/message_list.test.tsx +68 -2
  246. package/src/components/conversation/__tests__/system_message.test.tsx +106 -0
  247. package/src/components/conversation/jump_to_bottom_button.tsx +4 -3
  248. package/src/components/conversation/message.tsx +3 -0
  249. package/src/components/conversation/message_form.tsx +3 -1
  250. package/src/components/conversation/message_list.tsx +9 -1
  251. package/src/components/conversation/message_reaction.tsx +7 -2
  252. package/src/components/conversation/messages_disabled_banners.tsx +17 -18
  253. package/src/components/conversation/system_message.tsx +44 -16
  254. package/src/components/conversations/__tests__/conversation_actions.test.tsx +67 -0
  255. package/src/components/conversations/__tests__/conversation_preview.test.tsx +105 -0
  256. package/src/components/conversations/__tests__/conversations.test.tsx +93 -0
  257. package/src/components/conversations/__tests__/conversations_blank_state.test.tsx +73 -0
  258. package/src/components/conversations/archived_results_footer.tsx +36 -0
  259. package/src/components/conversations/conversation_actions.tsx +27 -19
  260. package/src/components/conversations/conversation_preview.tsx +39 -10
  261. package/src/components/conversations/conversations.tsx +26 -3
  262. package/src/components/conversations/conversations_blank_state.tsx +21 -0
  263. package/src/components/conversations/filtered_results_footer.tsx +38 -0
  264. package/src/components/display/__tests__/filter_dropdown.test.tsx +114 -0
  265. package/src/components/display/__tests__/icon_tile.test.tsx +16 -0
  266. package/src/components/display/action_button.tsx +4 -3
  267. package/src/components/display/filter_dropdown.tsx +124 -0
  268. package/src/components/display/icon_tile.tsx +67 -0
  269. package/src/components/display/index.ts +2 -0
  270. package/src/contexts/api_provider.tsx +8 -0
  271. package/src/contexts/conversations_context.tsx +2 -1
  272. package/src/hooks/__tests__/use_conversation_archive.test.tsx +152 -0
  273. package/src/hooks/__tests__/use_conversation_jolt_events.test.tsx +74 -0
  274. package/src/hooks/__tests__/use_conversation_messages.test.tsx +10 -2
  275. package/src/hooks/__tests__/use_jolt.test.tsx +100 -1
  276. package/src/hooks/__tests__/use_mark_latest_message_read.test.tsx +21 -7
  277. package/src/hooks/__tests__/use_reduce_motion.test.tsx +61 -0
  278. package/src/hooks/__tests__/use_unarchive_conversation_action.test.tsx +67 -0
  279. package/src/hooks/groups/use_group_members_for_new_conversation.ts +21 -16
  280. package/src/hooks/index.ts +3 -0
  281. package/src/hooks/use_animated_message_background_color.ts +6 -3
  282. package/src/hooks/use_api.ts +9 -2
  283. package/src/hooks/use_can_browse_archived_conversations.ts +17 -0
  284. package/src/hooks/use_clear_conversation_filters.ts +16 -0
  285. package/src/hooks/use_conversation.ts +44 -3
  286. package/src/hooks/use_conversation_messages.ts +7 -5
  287. package/src/hooks/use_current_person.ts +1 -0
  288. package/src/hooks/use_jolt.ts +57 -1
  289. package/src/hooks/use_manual_archiving_enabled.ts +10 -0
  290. package/src/hooks/use_mark_latest_message_read.ts +4 -3
  291. package/src/hooks/use_reduce_motion.ts +19 -0
  292. package/src/hooks/use_unarchive_conversation_action.ts +24 -0
  293. package/src/screens/__tests__/conversation_details_screen.test.tsx +305 -0
  294. package/src/screens/attachment_actions/__tests__/attachment_actions_screen.test.tsx +72 -0
  295. package/src/screens/attachment_actions/attachment_actions_screen.tsx +3 -1
  296. package/src/screens/conversation_details_screen.tsx +80 -16
  297. package/src/screens/conversation_filters/__tests__/conversation_filters.test.tsx +101 -0
  298. package/src/screens/conversation_filters/components/conversation_filters.tsx +40 -7
  299. package/src/screens/conversation_filters/components/rows.tsx +29 -1
  300. package/src/screens/conversation_filters/context/conversation_filter_context.tsx +4 -0
  301. package/src/screens/conversation_filters/filter_types.ts +1 -0
  302. package/src/screens/conversation_filters/screen_props.ts +1 -0
  303. package/src/screens/conversation_filters_screen.tsx +25 -5
  304. package/src/screens/conversation_new/components/groups_form.tsx +1 -0
  305. package/src/screens/conversation_screen.tsx +4 -2
  306. package/src/screens/conversations/__tests__/conversations_screen.test.tsx +52 -0
  307. package/src/screens/conversations/components/__tests__/filter_dropdown_list_header_component.test.tsx +259 -0
  308. package/src/screens/conversations/components/__tests__/list_header_component.test.tsx +21 -4
  309. package/src/screens/conversations/components/filter_dropdown_list_header_component.tsx +286 -0
  310. package/src/screens/conversations/components/list_header_component.tsx +17 -12
  311. package/src/screens/conversations/components/search_list_header_component.tsx +17 -12
  312. package/src/screens/conversations/conversations_screen.tsx +15 -2
  313. package/src/screens/design_system_screen.tsx +26 -0
  314. package/src/screens/message_actions_screen.tsx +29 -20
  315. package/src/screens/search/__tests__/search_screen.test.tsx +13 -1
  316. package/src/screens/search/search_screen.tsx +8 -2
  317. package/src/screens/send_giphy_screen.tsx +6 -3
  318. package/src/screens/team_conversation_screen.tsx +1 -1
  319. package/src/types/jolt_events/message_events.ts +2 -0
  320. package/src/types/resources/conversation.ts +2 -2
  321. package/src/types/resources/member_ability.ts +2 -0
  322. package/src/types/resources/message.ts +3 -0
  323. package/src/types/resources/person.ts +1 -0
  324. package/src/utils/__tests__/conversation.test.ts +1 -0
  325. package/src/utils/__tests__/date.test.ts +23 -0
  326. package/src/utils/__tests__/group_messages.test.ts +1 -0
  327. package/src/utils/archived_conversation.ts +13 -0
  328. package/src/utils/date.ts +8 -0
  329. package/src/utils/index.ts +1 -0
  330. package/src/utils/jolt/__tests__/transform_message_event_data_to_message_resource.test.ts +35 -0
  331. package/src/utils/jolt/transform_message_event_data_to_message_resource.ts +1 -0
  332. package/src/utils/native_adapters/__tests__/menu.test.tsx +46 -0
  333. package/src/utils/native_adapters/configuration.ts +5 -0
  334. package/src/utils/native_adapters/index.ts +1 -0
  335. package/src/utils/native_adapters/menu.tsx +70 -0
  336. package/src/utils/request/conversation.ts +4 -0
  337. package/src/utils/request/messages_data_options.ts +1 -0
  338. package/src/utils/system_messages.ts +19 -10
  339. package/src/vendor/font_awesome_pro_solid_icons.ts +12 -0
@@ -5,12 +5,12 @@ import ReanimatedSwipeable from 'react-native-gesture-handler/ReanimatedSwipeabl
5
5
  import { useConversationsContext } from '../../contexts/conversations_context';
6
6
  import { useTheme, useCreateAndroidRippleColor } from '../../hooks';
7
7
  import { useConversationsMarkRead, useConversationsMute } from '../../hooks/use_conversations_actions';
8
- import { platformPressedOpacityStyle } from '../../utils';
8
+ import { isArchivedConversation, platformPressedOpacityStyle } from '../../utils';
9
9
  import { tokens } from '../../vendor/tapestry/tokens';
10
10
  import { SwipeableToggleButton } from './swipeable_toggle_button';
11
11
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
12
12
  export function ConversationActions(t0) {
13
- const $ = _c(63);
13
+ const $ = _c(66);
14
14
  const {
15
15
  children,
16
16
  conversation,
@@ -69,125 +69,133 @@ export function ConversationActions(t0) {
69
69
  } = useConversationsMarkRead(t3);
70
70
  const isConversationEmpty = conversation.lastMessageCreatedAt === null;
71
71
  let t4;
72
- if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
73
- t4 = () => {
72
+ if ($[6] !== conversation) {
73
+ t4 = isArchivedConversation(conversation);
74
+ $[6] = conversation;
75
+ $[7] = t4;
76
+ } else {
77
+ t4 = $[7];
78
+ }
79
+ const canMute = !t4;
80
+ let t5;
81
+ if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
82
+ t5 = () => {
74
83
  setDisabled(false);
75
84
  swipeableRef.current?.close();
76
85
  };
77
- $[6] = t4;
86
+ $[8] = t5;
78
87
  } else {
79
- t4 = $[6];
88
+ t5 = $[8];
80
89
  }
81
- const handleSwipeableClose = t4;
82
- let t5;
83
- if ($[7] !== conversation.id || $[8] !== setActiveConversationId) {
84
- t5 = () => {
90
+ const handleSwipeableClose = t5;
91
+ let t6;
92
+ if ($[9] !== conversation.id || $[10] !== setActiveConversationId) {
93
+ t6 = () => {
85
94
  setDisabled(true);
86
95
  setActiveConversationId(conversation.id);
87
96
  };
88
- $[7] = conversation.id;
89
- $[8] = setActiveConversationId;
90
- $[9] = t5;
97
+ $[9] = conversation.id;
98
+ $[10] = setActiveConversationId;
99
+ $[11] = t6;
91
100
  } else {
92
- t5 = $[9];
101
+ t6 = $[11];
93
102
  }
94
- const handleSwipeableOpen = t5;
95
- let t6;
96
- if ($[10] !== disabled || $[11] !== onPress) {
97
- t6 = () => {
103
+ const handleSwipeableOpen = t6;
104
+ let t7;
105
+ if ($[12] !== disabled || $[13] !== onPress) {
106
+ t7 = () => {
98
107
  if (disabled || !onPress) {
99
108
  return;
100
109
  }
101
110
  onPress();
102
111
  };
103
- $[10] = disabled;
104
- $[11] = onPress;
105
- $[12] = t6;
112
+ $[12] = disabled;
113
+ $[13] = onPress;
114
+ $[14] = t7;
106
115
  } else {
107
- t6 = $[12];
116
+ t7 = $[14];
108
117
  }
109
- const handlePress = t6;
110
- let t7;
111
- if ($[13] !== muted || $[14] !== setMuted) {
112
- t7 = () => {
118
+ const handlePress = t7;
119
+ let t8;
120
+ if ($[15] !== muted || $[16] !== setMuted) {
121
+ t8 = () => {
113
122
  setMuted(!muted);
114
123
  handleSwipeableClose();
115
124
  };
116
- $[13] = muted;
117
- $[14] = setMuted;
118
- $[15] = t7;
125
+ $[15] = muted;
126
+ $[16] = setMuted;
127
+ $[17] = t8;
119
128
  } else {
120
- t7 = $[15];
129
+ t8 = $[17];
121
130
  }
122
- const handleMute = t7;
123
- let t8;
124
- if ($[16] !== markRead || $[17] !== read) {
125
- t8 = () => {
131
+ const handleMute = t8;
132
+ let t9;
133
+ if ($[18] !== markRead || $[19] !== read) {
134
+ t9 = () => {
126
135
  markRead(!read);
127
136
  handleSwipeableClose();
128
137
  };
129
- $[16] = markRead;
130
- $[17] = read;
131
- $[18] = t8;
138
+ $[18] = markRead;
139
+ $[19] = read;
140
+ $[20] = t9;
132
141
  } else {
133
- t8 = $[18];
142
+ t9 = $[20];
134
143
  }
135
- const handleLatestMessageUnread = t8;
136
- let t9;
137
- if ($[19] !== isConversationEmpty || $[20] !== read) {
138
- t9 = !isConversationEmpty ? [{
144
+ const handleLatestMessageUnread = t9;
145
+ let t10;
146
+ if ($[21] !== isConversationEmpty || $[22] !== read) {
147
+ t10 = !isConversationEmpty ? [{
139
148
  name: read ? "markUnread" : "markRead",
140
149
  label: read ? "Mark unread" : "Mark read"
141
150
  }] : [];
142
- $[19] = isConversationEmpty;
143
- $[20] = read;
144
- $[21] = t9;
151
+ $[21] = isConversationEmpty;
152
+ $[22] = read;
153
+ $[23] = t10;
145
154
  } else {
146
- t9 = $[21];
155
+ t10 = $[23];
147
156
  }
148
- const readAccessibilityAction = t9;
149
- const t10 = muted ? "unmute" : "mute";
150
- const t11 = muted ? "Enable" : "Silence";
151
- let t12;
152
- if ($[22] !== t10 || $[23] !== t11) {
153
- t12 = {
154
- name: t10,
155
- label: t11
156
- };
157
- $[22] = t10;
158
- $[23] = t11;
159
- $[24] = t12;
157
+ const readAccessibilityAction = t10;
158
+ let t11;
159
+ if ($[24] !== canMute || $[25] !== muted) {
160
+ t11 = canMute ? [{
161
+ name: muted ? "unmute" : "mute",
162
+ label: muted ? "Enable" : "Silence"
163
+ }] : [];
164
+ $[24] = canMute;
165
+ $[25] = muted;
166
+ $[26] = t11;
160
167
  } else {
161
- t12 = $[24];
168
+ t11 = $[26];
162
169
  }
163
- let t13;
164
- if ($[25] !== readAccessibilityAction || $[26] !== t12) {
165
- t13 = [t12, ...readAccessibilityAction];
166
- $[25] = readAccessibilityAction;
167
- $[26] = t12;
168
- $[27] = t13;
170
+ const muteAccessibilityAction = t11;
171
+ let t12;
172
+ if ($[27] !== muteAccessibilityAction || $[28] !== readAccessibilityAction) {
173
+ t12 = [...muteAccessibilityAction, ...readAccessibilityAction];
174
+ $[27] = muteAccessibilityAction;
175
+ $[28] = readAccessibilityAction;
176
+ $[29] = t12;
169
177
  } else {
170
- t13 = $[27];
178
+ t12 = $[29];
171
179
  }
172
- const accessibilityActions = t13;
173
- let t14;
174
- if ($[28] !== handleLatestMessageUnread || $[29] !== handleMute) {
175
- t14 = event => {
176
- bb41: switch (event.nativeEvent.actionName) {
180
+ const accessibilityActions = t12;
181
+ let t13;
182
+ if ($[30] !== handleLatestMessageUnread || $[31] !== handleMute) {
183
+ t13 = event => {
184
+ bb45: switch (event.nativeEvent.actionName) {
177
185
  case "markRead":
178
186
  {
179
187
  handleLatestMessageUnread();
180
- break bb41;
188
+ break bb45;
181
189
  }
182
190
  case "markUnread":
183
191
  {
184
192
  handleLatestMessageUnread();
185
- break bb41;
193
+ break bb45;
186
194
  }
187
195
  case "mute":
188
196
  {
189
197
  handleMute();
190
- break bb41;
198
+ break bb45;
191
199
  }
192
200
  case "unmute":
193
201
  {
@@ -195,43 +203,44 @@ export function ConversationActions(t0) {
195
203
  }
196
204
  }
197
205
  };
198
- $[28] = handleLatestMessageUnread;
199
- $[29] = handleMute;
200
- $[30] = t14;
206
+ $[30] = handleLatestMessageUnread;
207
+ $[31] = handleMute;
208
+ $[32] = t13;
201
209
  } else {
202
- t14 = $[30];
210
+ t13 = $[32];
203
211
  }
204
- const handleAccessibilityAction = t14;
212
+ const handleAccessibilityAction = t13;
213
+ let t14;
205
214
  let t15;
206
- let t16;
207
- if ($[31] !== activeConversationId || $[32] !== conversation.id) {
208
- t15 = () => {
215
+ if ($[33] !== activeConversationId || $[34] !== conversation.id) {
216
+ t14 = () => {
209
217
  if (activeConversationId === conversation.id) {
210
218
  return;
211
219
  }
212
220
  handleSwipeableClose();
213
221
  };
214
- t16 = [activeConversationId, conversation.id, handleSwipeableClose];
215
- $[31] = activeConversationId;
216
- $[32] = conversation.id;
217
- $[33] = t15;
218
- $[34] = t16;
222
+ t15 = [activeConversationId, conversation.id, handleSwipeableClose];
223
+ $[33] = activeConversationId;
224
+ $[34] = conversation.id;
225
+ $[35] = t14;
226
+ $[36] = t15;
219
227
  } else {
220
- t15 = $[33];
221
- t16 = $[34];
228
+ t14 = $[35];
229
+ t15 = $[36];
222
230
  }
223
- useEffect(t15, t16);
224
- let t17;
225
- if ($[35] === Symbol.for("react.memo_cache_sentinel")) {
226
- t17 = () => setDisabled(false);
227
- $[35] = t17;
231
+ useEffect(t14, t15);
232
+ let t16;
233
+ if ($[37] === Symbol.for("react.memo_cache_sentinel")) {
234
+ t16 = () => setDisabled(false);
235
+ $[37] = t16;
228
236
  } else {
229
- t17 = $[35];
237
+ t16 = $[37];
230
238
  }
231
- let t18;
232
- if ($[36] !== handleLatestMessageUnread || $[37] !== handleMute || $[38] !== isConversationEmpty || $[39] !== isMarkReadPending || $[40] !== isMutedPending || $[41] !== muted || $[42] !== read) {
233
- t18 = () => /*#__PURE__*/_jsx(LeftActions, {
239
+ let t17;
240
+ if ($[38] !== canMute || $[39] !== handleLatestMessageUnread || $[40] !== handleMute || $[41] !== isConversationEmpty || $[42] !== isMarkReadPending || $[43] !== isMutedPending || $[44] !== muted || $[45] !== read) {
241
+ t17 = () => /*#__PURE__*/_jsx(LeftActions, {
234
242
  isConversationEmpty: isConversationEmpty,
243
+ canMute: canMute,
235
244
  handleMute: handleMute,
236
245
  handleLatestMessageUnread: handleLatestMessageUnread,
237
246
  muted: muted,
@@ -239,71 +248,72 @@ export function ConversationActions(t0) {
239
248
  isMutedPending: isMutedPending,
240
249
  isMarkReadPending: isMarkReadPending
241
250
  });
242
- $[36] = handleLatestMessageUnread;
243
- $[37] = handleMute;
244
- $[38] = isConversationEmpty;
245
- $[39] = isMarkReadPending;
246
- $[40] = isMutedPending;
247
- $[41] = muted;
248
- $[42] = read;
249
- $[43] = t18;
251
+ $[38] = canMute;
252
+ $[39] = handleLatestMessageUnread;
253
+ $[40] = handleMute;
254
+ $[41] = isConversationEmpty;
255
+ $[42] = isMarkReadPending;
256
+ $[43] = isMutedPending;
257
+ $[44] = muted;
258
+ $[45] = read;
259
+ $[46] = t17;
250
260
  } else {
251
- t18 = $[43];
261
+ t17 = $[46];
252
262
  }
253
- const t19 = `conversation-${conversation.id}`;
254
- let t20;
255
- if ($[44] !== style) {
256
- t20 = t21 => {
263
+ const t18 = `conversation-${conversation.id}`;
264
+ let t19;
265
+ if ($[47] !== style) {
266
+ t19 = t20 => {
257
267
  const {
258
268
  pressed
259
- } = t21;
269
+ } = t20;
260
270
  return [style, pressed && platformPressedOpacityStyle];
261
271
  };
262
- $[44] = style;
263
- $[45] = t20;
272
+ $[47] = style;
273
+ $[48] = t19;
264
274
  } else {
265
- t20 = $[45];
275
+ t19 = $[48];
266
276
  }
267
- let t21;
268
- if ($[46] !== androidRippleColor) {
269
- t21 = {
277
+ let t20;
278
+ if ($[49] !== androidRippleColor) {
279
+ t20 = {
270
280
  color: androidRippleColor,
271
281
  borderless: false,
272
282
  foreground: true
273
283
  };
274
- $[46] = androidRippleColor;
275
- $[47] = t21;
284
+ $[49] = androidRippleColor;
285
+ $[50] = t20;
276
286
  } else {
277
- t21 = $[47];
287
+ t20 = $[50];
278
288
  }
279
- let t22;
280
- if ($[48] !== accessibilityActions || $[49] !== accessibilityLabel || $[50] !== children || $[51] !== handleAccessibilityAction || $[52] !== handlePress || $[53] !== t19 || $[54] !== t20 || $[55] !== t21) {
281
- t22 = /*#__PURE__*/_jsx(Pressable, {
282
- testID: t19,
289
+ let t21;
290
+ if ($[51] !== accessibilityActions || $[52] !== accessibilityLabel || $[53] !== children || $[54] !== handleAccessibilityAction || $[55] !== handlePress || $[56] !== t18 || $[57] !== t19 || $[58] !== t20) {
291
+ t21 = /*#__PURE__*/_jsx(Pressable, {
292
+ testID: t18,
283
293
  onPress: handlePress,
284
- style: t20,
285
- android_ripple: t21,
294
+ style: t19,
295
+ android_ripple: t20,
286
296
  accessibilityLabel: accessibilityLabel,
287
297
  accessibilityRole: "button",
288
298
  accessibilityActions: accessibilityActions,
289
299
  onAccessibilityAction: handleAccessibilityAction,
290
300
  children: children
291
301
  });
292
- $[48] = accessibilityActions;
293
- $[49] = accessibilityLabel;
294
- $[50] = children;
295
- $[51] = handleAccessibilityAction;
296
- $[52] = handlePress;
297
- $[53] = t19;
298
- $[54] = t20;
299
- $[55] = t21;
300
- $[56] = t22;
302
+ $[51] = accessibilityActions;
303
+ $[52] = accessibilityLabel;
304
+ $[53] = children;
305
+ $[54] = handleAccessibilityAction;
306
+ $[55] = handlePress;
307
+ $[56] = t18;
308
+ $[57] = t19;
309
+ $[58] = t20;
310
+ $[59] = t21;
301
311
  } else {
302
- t22 = $[56];
312
+ t21 = $[59];
303
313
  }
304
- let t23;
305
- if ($[57] !== handleSwipeableOpen || $[58] !== styles.swipeableChildContainer || $[59] !== styles.swipeableContainer || $[60] !== t18 || $[61] !== t22) {
306
- t23 = /*#__PURE__*/_jsx(ReanimatedSwipeable, {
314
+ let t22;
315
+ if ($[60] !== handleSwipeableOpen || $[61] !== styles.swipeableChildContainer || $[62] !== styles.swipeableContainer || $[63] !== t17 || $[64] !== t21) {
316
+ t22 = /*#__PURE__*/_jsx(ReanimatedSwipeable, {
307
317
  ref: swipeableRef,
308
318
  childrenContainerStyle: styles.swipeableChildContainer,
309
319
  containerStyle: styles.swipeableContainer,
@@ -311,29 +321,30 @@ export function ConversationActions(t0) {
311
321
  overshootLeft: overshootLeft,
312
322
  overshootRight: false,
313
323
  onSwipeableOpenStartDrag: handleSwipeableOpen,
314
- onSwipeableClose: t17,
324
+ onSwipeableClose: t16,
315
325
  renderRightActions: _temp,
316
- renderLeftActions: t18,
317
- children: t22
326
+ renderLeftActions: t17,
327
+ children: t21
318
328
  });
319
- $[57] = handleSwipeableOpen;
320
- $[58] = styles.swipeableChildContainer;
321
- $[59] = styles.swipeableContainer;
322
- $[60] = t18;
323
- $[61] = t22;
324
- $[62] = t23;
329
+ $[60] = handleSwipeableOpen;
330
+ $[61] = styles.swipeableChildContainer;
331
+ $[62] = styles.swipeableContainer;
332
+ $[63] = t17;
333
+ $[64] = t21;
334
+ $[65] = t22;
325
335
  } else {
326
- t23 = $[62];
336
+ t22 = $[65];
327
337
  }
328
- return t23;
338
+ return t22;
329
339
  }
330
340
  function _temp() {
331
341
  return /*#__PURE__*/_jsx(_Fragment, {});
332
342
  }
333
343
  function LeftActions(t0) {
334
- const $ = _c(15);
344
+ const $ = _c(18);
335
345
  const {
336
346
  isConversationEmpty,
347
+ canMute,
337
348
  handleMute,
338
349
  handleLatestMessageUnread,
339
350
  muted,
@@ -341,10 +352,21 @@ function LeftActions(t0) {
341
352
  isMutedPending,
342
353
  isMarkReadPending
343
354
  } = t0;
344
- const styles = useStyles();
345
- let t1;
346
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
347
- t1 = {
355
+ const t1 = canMute ? 2 : 1;
356
+ let t2;
357
+ if ($[0] !== t1) {
358
+ t2 = {
359
+ actionButtonCount: t1
360
+ };
361
+ $[0] = t1;
362
+ $[1] = t2;
363
+ } else {
364
+ t2 = $[1];
365
+ }
366
+ const styles = useStyles(t2);
367
+ let t3;
368
+ if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
369
+ t3 = {
348
370
  true: {
349
371
  iconName: "general.bell",
350
372
  label: "Enable"
@@ -354,14 +376,14 @@ function LeftActions(t0) {
354
376
  label: "Silence"
355
377
  }
356
378
  };
357
- $[0] = t1;
379
+ $[2] = t3;
358
380
  } else {
359
- t1 = $[0];
381
+ t3 = $[2];
360
382
  }
361
- const muteToggleContent = t1;
362
- let t2;
363
- if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
364
- t2 = {
383
+ const muteToggleContent = t3;
384
+ let t4;
385
+ if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
386
+ t4 = {
365
387
  true: {
366
388
  iconName: "general.outlinedTextMessage",
367
389
  label: "Mark read"
@@ -371,90 +393,103 @@ function LeftActions(t0) {
371
393
  label: "Mark unread"
372
394
  }
373
395
  };
374
- $[1] = t2;
396
+ $[3] = t4;
375
397
  } else {
376
- t2 = $[1];
398
+ t4 = $[3];
377
399
  }
378
- const latestMessageUnreadToggleContent = t2;
379
- const t3 = !read;
380
- let t4;
381
- if ($[2] !== handleLatestMessageUnread || $[3] !== isConversationEmpty || $[4] !== isMarkReadPending || $[5] !== t3) {
382
- t4 = /*#__PURE__*/_jsx(SwipeableToggleButton, {
400
+ const latestMessageUnreadToggleContent = t4;
401
+ const t5 = !read;
402
+ let t6;
403
+ if ($[4] !== handleLatestMessageUnread || $[5] !== isConversationEmpty || $[6] !== isMarkReadPending || $[7] !== t5) {
404
+ t6 = /*#__PURE__*/_jsx(SwipeableToggleButton, {
383
405
  loading: isMarkReadPending,
384
406
  disabled: isConversationEmpty,
385
- toggled: t3,
407
+ toggled: t5,
386
408
  onPress: handleLatestMessageUnread,
387
409
  toggleContent: latestMessageUnreadToggleContent,
388
410
  backgroundColor: tokens.fillColorInteractionSwipeDefault
389
411
  });
390
- $[2] = handleLatestMessageUnread;
391
- $[3] = isConversationEmpty;
392
- $[4] = isMarkReadPending;
393
- $[5] = t3;
394
- $[6] = t4;
412
+ $[4] = handleLatestMessageUnread;
413
+ $[5] = isConversationEmpty;
414
+ $[6] = isMarkReadPending;
415
+ $[7] = t5;
416
+ $[8] = t6;
395
417
  } else {
396
- t4 = $[6];
418
+ t6 = $[8];
397
419
  }
398
- let t5;
399
- if ($[7] !== handleMute || $[8] !== isMutedPending || $[9] !== muted) {
400
- t5 = /*#__PURE__*/_jsx(SwipeableToggleButton, {
420
+ let t7;
421
+ if ($[9] !== canMute || $[10] !== handleMute || $[11] !== isMutedPending || $[12] !== muted) {
422
+ t7 = canMute && /*#__PURE__*/_jsx(SwipeableToggleButton, {
401
423
  loading: isMutedPending,
402
424
  toggled: muted,
403
425
  onPress: handleMute,
404
426
  toggleContent: muteToggleContent,
405
427
  backgroundColor: tokens.fillColorInteractionSwipeSecondary
406
428
  });
407
- $[7] = handleMute;
408
- $[8] = isMutedPending;
409
- $[9] = muted;
410
- $[10] = t5;
429
+ $[9] = canMute;
430
+ $[10] = handleMute;
431
+ $[11] = isMutedPending;
432
+ $[12] = muted;
433
+ $[13] = t7;
411
434
  } else {
412
- t5 = $[10];
435
+ t7 = $[13];
413
436
  }
414
- let t6;
415
- if ($[11] !== styles.actionButtonContainer || $[12] !== t4 || $[13] !== t5) {
416
- t6 = /*#__PURE__*/_jsxs(View, {
437
+ let t8;
438
+ if ($[14] !== styles.actionButtonContainer || $[15] !== t6 || $[16] !== t7) {
439
+ t8 = /*#__PURE__*/_jsxs(View, {
417
440
  style: styles.actionButtonContainer,
418
- children: [t4, t5]
441
+ children: [t6, t7]
419
442
  });
420
- $[11] = styles.actionButtonContainer;
421
- $[12] = t4;
422
- $[13] = t5;
423
- $[14] = t6;
443
+ $[14] = styles.actionButtonContainer;
444
+ $[15] = t6;
445
+ $[16] = t7;
446
+ $[17] = t8;
424
447
  } else {
425
- t6 = $[14];
448
+ t8 = $[17];
426
449
  }
427
- return t6;
450
+ return t8;
428
451
  }
429
452
  const ACTION_BUTTON_WIDTH = 120;
430
- const ACTION_BUTTON_COUNT = 2;
431
- const useStyles = () => {
432
- const $ = _c(3);
453
+ const useStyles = t0 => {
454
+ const $ = _c(6);
455
+ let t1;
456
+ if ($[0] !== t0) {
457
+ t1 = t0 === undefined ? {} : t0;
458
+ $[0] = t0;
459
+ $[1] = t1;
460
+ } else {
461
+ t1 = $[1];
462
+ }
463
+ const {
464
+ actionButtonCount: t2
465
+ } = t1;
466
+ const actionButtonCount = t2 === undefined ? 2 : t2;
433
467
  const {
434
468
  colors
435
469
  } = useTheme();
436
- let t0;
437
- if ($[0] !== colors.conversationActionsBackground || $[1] !== colors.surfaceColor090) {
438
- t0 = StyleSheet.create({
470
+ let t3;
471
+ if ($[2] !== actionButtonCount || $[3] !== colors.conversationActionsBackground || $[4] !== colors.surfaceColor090) {
472
+ t3 = StyleSheet.create({
439
473
  swipeableChildContainer: {
440
474
  backgroundColor: colors.conversationActionsBackground
441
475
  },
442
476
  actionButtonContainer: {
443
477
  flexDirection: "row",
444
478
  alignItems: "center",
445
- width: ACTION_BUTTON_WIDTH * ACTION_BUTTON_COUNT,
479
+ width: ACTION_BUTTON_WIDTH * actionButtonCount,
446
480
  alignContent: "stretch"
447
481
  },
448
482
  swipeableContainer: {
449
483
  backgroundColor: colors.surfaceColor090
450
484
  }
451
485
  });
452
- $[0] = colors.conversationActionsBackground;
453
- $[1] = colors.surfaceColor090;
454
- $[2] = t0;
486
+ $[2] = actionButtonCount;
487
+ $[3] = colors.conversationActionsBackground;
488
+ $[4] = colors.surfaceColor090;
489
+ $[5] = t3;
455
490
  } else {
456
- t0 = $[2];
491
+ t3 = $[5];
457
492
  }
458
- return t0;
493
+ return t3;
459
494
  };
460
495
  //# sourceMappingURL=conversation_actions.js.map