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

23 lines
761 B
TypeScript
Raw Normal View History

2026-07-21 06:55:02 +00:00
// Module ID: 9303
2026-07-21 22:01:30 +00:00
// Function ID: 72698
2026-07-20 16:05:17 +00:00
// Name: getEmbeddedActivityKey
2026-07-21 22:01:30 +00:00
// Dependencies: []
2026-07-20 16:05:17 +00:00
// Exports: default, parseEmbeddedActivityKey
2026-07-21 06:55:02 +00:00
// Module 9303 (getEmbeddedActivityKey)
2026-07-20 16:05:17 +00:00
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;
};