25 lines
908 B
TypeScript
25 lines
908 B
TypeScript
// Module ID: 12375
|
|
// Function ID: 12376
|
|
// Name: getApplicationFromMessage
|
|
// Dependencies: [4212, 12372, 8175, 2]
|
|
// Exports: getApplicationFromMessage
|
|
|
|
// Module 12375 (getApplicationFromMessage)
|
|
import createExecutable from "createExecutable";
|
|
import { SpotifyApplication } from "getIconURL";
|
|
import { isSpotifyParty } from "WEB_OPEN";
|
|
|
|
const result = require("WEB_OPEN").fileFinishedImporting("modules/activities/utils/getApplicationFromMessage.tsx");
|
|
|
|
export const getApplicationFromMessage = function getApplicationFromMessage(application) {
|
|
if (null != application.application) {
|
|
let fromServer = createExecutable.createFromServer(application.application);
|
|
} else if (null != application.activity) {
|
|
if (null != application.activity.party_id) {
|
|
if (isSpotifyParty(application.activity.party_id)) {
|
|
fromServer = SpotifyApplication;
|
|
}
|
|
}
|
|
}
|
|
return fromServer;
|
|
};
|