decord/source/modules/messages/native/getEmbeddedActivityKey.tsx

25 lines
775 B
TypeScript
Raw Normal View History

2026-09-03 10:05:34 +00:00
// Module ID: 11364
// Function ID: 11365
2026-07-20 16:05:17 +00:00
// Name: getEmbeddedActivityKey
2026-07-23 10:11:24 +00:00
// Dependencies: [2]
2026-07-20 16:05:17 +00:00
// Exports: default, parseEmbeddedActivityKey
2026-09-03 10:05:34 +00:00
// Module 11364 (getEmbeddedActivityKey)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
const result = set.fileFinishedImporting("modules/messages/native/getEmbeddedActivityKey.tsx");
2026-07-20 16:05:17 +00:00
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) {
2026-07-29 08:29:29 +00:00
const obj = { channelId: null, applicationId: null, instanceId: null };
[obj[0], obj[1], obj[2]] = parts;
2026-07-20 16:05:17 +00:00
tmp = obj;
}
return tmp;
};