22 lines
761 B
JavaScript
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;
|
|
};
|