decord/beta/source/modules/debug/serializePushNotifcationLogs.tsx
github-actions 19e52f659f chore: update source for beta 347.11
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4973.js (118.4 MB)
2026-09-26 17:57:22 +00:00

51 lines
1.6 KiB
TypeScript

// Module ID: 10488
// Function ID: 10489
// Name: serializePushNotifcationLogs
// Dependencies: [1074, 510, 2]
// Exports: default
// Module 10488 (serializePushNotifcationLogs)
import Storage3 from "Storage" /* 510 */;
import Constants from "Constants" /* 1074 */;
import size from "module_2" /* 2 */;
({ DEVICE_TOKEN: c2, DEVICE_VOIP_TOKEN: c3 } = Constants);
const result = size.fileFinishedImporting("modules/debug/serializePushNotifcationLogs.tsx");
export default function serializePushNotificationLogs(arr, arg1) {
closure_0 = arg1;
if (0 === arr.length) {
return "No logs";
} else {
const Storage = Storage3.Storage;
value = Storage.get(React2);
const Storage2 = Storage3.Storage;
value2 = Storage2.get(React3);
let str2 = "";
if (null != value) {
let _HermesInternal = HermesInternal;
str2 = "Device Token: " + value;
}
let str3 = "";
if (null != value2) {
let _HermesInternal2 = HermesInternal;
str3 = "Device Voip Token: " + value2;
}
const mapped = arr.map((silent) => {
let str = "Displayed";
if (silent.silent) {
str = "Silent";
}
if (closure_0) {
const _HermesInternal2 = HermesInternal;
let combined = "" + silent.channelId + " - " + silent.messageId;
} else {
const _HermesInternal = HermesInternal;
combined = "" + silent.title + " - " + silent.content;
}
return "" + new Date(silent.receivedTimestamp).toISOString() + " [" + silent.type + "] " + str + " - " + combined;
});
const _HermesInternal3 = HermesInternal;
return "" + str2 + "\n" + str3 + "\n\n" + mapped.join("\n");
}
};