decord/source/modules/messages/native/getEmbeddedActivityKey.tsx
2026-08-12 06:57:52 +00:00

22 lines
751 B
TypeScript

// Module ID: 8654
// Function ID: 8655
// Name: getEmbeddedActivityKey
// Dependencies: [2]
// Exports: default, parseEmbeddedActivityKey
// Module 8654 (getEmbeddedActivityKey)
const result = require("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;
};