decord/source/modules/messages/native/getEmbeddedActivityKey.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

24 lines
775 B
TypeScript

// Module ID: 11539
// Function ID: 11540
// Name: getEmbeddedActivityKey
// Dependencies: [2]
// Exports: default, parseEmbeddedActivityKey
// Module 11539 (getEmbeddedActivityKey)
import set from "set" /* 2 */;
const result = set.fileFinishedImporting("modules/messages/native/getEmbeddedActivityKey.tsx");
export default function getEmbeddedActivityKey(location) {
return "" + location.location.id + ":" + location.applicationId + ":" + location.launchId;
};
export const parseEmbeddedActivityKey = function parseEmbeddedActivityKey(str) {
const parts = str.split(":");
let tmp = null;
if (parts.length >= 3) {
const obj = { channelId: null, applicationId: null, instanceId: null };
[obj[0], obj[1], obj[2]] = parts;
tmp = obj;
}
return tmp;
};