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

22 lines
726 B
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 9240
2026-07-27 11:26:19 +00:00
// Function ID: 72451
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-07-25 08:10:48 +00:00
// Module 9240 (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) {
const obj = { channelId: parts[0], applicationId: parts[1], instanceId: parts[2] };
tmp = obj;
}
return tmp;
};