27 lines
1.3 KiB
TypeScript
27 lines
1.3 KiB
TypeScript
/* Metro module 12711; source: modules/activities/isActivityParticipantCurrentUserCurrentSession.tsx; dependencies: [1226, 2] */
|
|
function _fun97367(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97367, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12901:6, offset: 0x0217dfa0, size: 106 bytes, params: 8, frame: 17
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/isActivityParticipantCurrentUserCurrentSession.tsx');
|
|
exports.isActivityParticipantCurrentUserCurrentSession = function(a0) {
|
|
var r3;
|
|
var r1;
|
|
var r0;
|
|
var value = a1;
|
|
r3 = value !== undefined ? value : AuthenticationStore;
|
|
value = r3.getId();
|
|
var value2 = r3.getSessionId();
|
|
value = a0.userId === value;
|
|
if (value) {
|
|
r1 = a0.sessionId == null || a0.sessionId === undefined;
|
|
r1 = !r1 ? a0.sessionId === value2 : r1;
|
|
r0 = r1;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
};
|
|
}
|
|
|