Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
26 lines
940 B
TypeScript
26 lines
940 B
TypeScript
// Module ID: 13365
|
|
// Function ID: 13366
|
|
// Name: getApplicationFromMessage
|
|
// Dependencies: [1918, 13362, 8458, 2]
|
|
// Exports: getApplicationFromMessage
|
|
|
|
// Module 13365 (getApplicationFromMessage)
|
|
import ApplicationRecord from "ApplicationRecord" /* 1918 */;
|
|
|
|
const SpotifyApplication = fn(13362).SpotifyApplication;
|
|
const isSpotifyParty = fn(8458).isSpotifyParty;
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/activities/utils/getApplicationFromMessage.tsx");
|
|
|
|
export const getApplicationFromMessage = function getApplicationFromMessage(application) {
|
|
if (null != application.application) {
|
|
let fromServer = ApplicationRecord.createFromServer(application.application);
|
|
} else if (null != application.activity) {
|
|
if (null != application.activity.party_id) {
|
|
if (isSpotifyParty(application.activity.party_id)) {
|
|
fromServer = SpotifyApplication;
|
|
}
|
|
}
|
|
}
|
|
return fromServer;
|
|
};
|