decord/beta/source/modules/messages/native/getEmbeddedActivityKey.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

24 lines
808 B
TypeScript

// Module ID: 11819
// Function ID: 11820
// Name: getEmbeddedActivityKey
// Dependencies: [2]
// Exports: default, parseEmbeddedActivityKey
// Module 11819 (getEmbeddedActivityKey)
import size from "module_2" /* 2 */;
const result = size.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.channelId, obj.applicationId, obj.instanceId] = parts;
tmp = obj;
}
return tmp;
};