2026-09-10 19:12:31 +00:00
|
|
|
// Module ID: 12516
|
|
|
|
|
// Function ID: 12517
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: MessageRequestModalActionCreators
|
2026-09-10 19:12:31 +00:00
|
|
|
// Dependencies: [12513, 1074, 1242, 4950, 1114, 5044, 4572, 12517, 1896, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: onMarkAsNotSpamConfirmationModal, openAcceptMessageRequestConfirmModal
|
|
|
|
|
|
2026-09-10 19:12:31 +00:00
|
|
|
// Module 12516 (MessageRequestModalActionCreators)
|
2026-09-10 05:38:07 +00:00
|
|
|
import Constants from "Constants" /* 1074 */;
|
|
|
|
|
import util from "util" /* 1114 */;
|
|
|
|
|
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1242 */;
|
2026-09-05 10:56:28 +00:00
|
|
|
import asyncRequireImpl from "asyncRequireImpl" /* 1896 */;
|
2026-09-10 19:12:31 +00:00
|
|
|
import ActionSheetActionCreatorsDefault from "ActionSheetActionCreators" /* 4572 */;
|
|
|
|
|
import actions_AlertActionCreatorsDefault from "actions/AlertActionCreators" /* 4950 */;
|
|
|
|
|
import common_AlertDefault from "common/Alert" /* 5044 */;
|
|
|
|
|
import MessageRequestConstants from "MessageRequestConstants" /* 12513 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const type = MessageRequestConstants.MESSAGE_REQUEST_ACCEPT_CONFIRMATION_MODAL;
|
|
|
|
|
const AnalyticEvents = Constants.AnalyticEvents;
|
|
|
|
|
const result = size.fileFinishedImporting("modules/message_request/MessageRequestModalActionCreators.native.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const openAcceptMessageRequestConfirmModal = function openAcceptMessageRequestConfirmModal(arg0) {
|
|
|
|
|
({ channelId, onConfirm, onCancel } = arg0);
|
2026-09-10 05:38:07 +00:00
|
|
|
AnalyticsUtilsDefault.track(AnalyticEvents.OPEN_MODAL, { type, channel_id: channelId });
|
|
|
|
|
const obj2 = { type, channel_id: channelId };
|
|
|
|
|
const obj4 = { title: null, body: null, cancelText: null, confirmText: null, onConfirm: null, onCancel: null, confirmColor: null };
|
|
|
|
|
const intl = util.intl;
|
|
|
|
|
obj4.title = intl.string(util.t["66tnno"]);
|
|
|
|
|
const intl2 = util.intl;
|
|
|
|
|
obj4.body = intl2.string(util.t["c/k4SW"]);
|
|
|
|
|
const intl3 = util.intl;
|
|
|
|
|
obj4.cancelText = intl3.string(util.t["ETE/oC"]);
|
|
|
|
|
const intl4 = util.intl;
|
|
|
|
|
obj4.confirmText = intl4.string(util.t["cY+Oob"]);
|
|
|
|
|
obj4.onConfirm = onConfirm;
|
|
|
|
|
obj4.onCancel = onCancel;
|
|
|
|
|
obj4.confirmColor = common_AlertDefault.Colors.BRAND;
|
|
|
|
|
actions_AlertActionCreatorsDefault.show(obj4);
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|
|
|
|
|
export const onMarkAsNotSpamConfirmationModal = function onMarkAsNotSpamConfirmationModal(arg0) {
|
|
|
|
|
({ onConfirm, onCancel, channel } = arg0);
|
2026-09-10 19:12:31 +00:00
|
|
|
ActionSheetActionCreatorsDefault.openLazy(asyncRequireImpl(12517, dependencyMap.paths), "SpamMessageHamActionSheet", { channel, onConfirm, onCancel });
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|