decord/source/9299_getEmbeddedActivityKey.js
2026-07-20 16:05:17 +00:00

22 lines
761 B
JavaScript

// Module ID: 9299
// Function ID: 72673
// Name: getEmbeddedActivityKey
// Dependencies: []
// Exports: default, parseEmbeddedActivityKey
// Module 9299 (getEmbeddedActivityKey)
const _module = require(dependencyMap[0]);
const result = _module.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;
};