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

23 lines
751 B
TypeScript
Raw Normal View History

2026-08-14 17:33:39 +00:00
// Module ID: 8672
// Function ID: 8673
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-08-14 17:33:39 +00:00
// Module 8672 (getEmbeddedActivityKey)
2026-07-23 10:11:24 +00:00
const result = require("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;
};