decord/source/modules/messages/native/getEmbeddedActivityKey.tsx
2026-07-24 07:16:23 +00:00

21 lines
726 B
TypeScript

// Module ID: 9347
// Function ID: 72961
// Name: getEmbeddedActivityKey
// Dependencies: [2]
// Exports: default, parseEmbeddedActivityKey
// Module 9347 (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: parts[0], applicationId: parts[1], instanceId: parts[2] };
tmp = obj;
}
return tmp;
};