Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,74 @@
|
||||
/* Metro module 10254; source: modules/channel/getChannelIcon.tsx; dependencies: [57, 1878, 661, 1360, 1423, 2] */
|
||||
function _fun79628(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#79628, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10440:6, offset: 0x01e5b9b8, size: 169 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const env0_5 = (require(661) /* metro dependency 661: Constants */).ChannelTypes;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/channel/getChannelIcon.tsx');
|
||||
exports.getChannelIconURL = getChannelIconURL_79629;
|
||||
exports.getChannelIconSource = getChannelIconSource_79630;
|
||||
}
|
||||
|
||||
function getChannelIconURL_79629(a0) { // fn#79629, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10440:227, offset: 0x01e5ba61, size: 232 bytes, params: 2, frame: 18
|
||||
var getChannelIconURL;
|
||||
var object2;
|
||||
var recipients;
|
||||
var value2;
|
||||
var property;
|
||||
let value = a1;
|
||||
const r5 = value !== undefined ? value : 32;
|
||||
const type = a0.type;
|
||||
const DM = ChannelTypes.DM;
|
||||
if (DM === type) {
|
||||
recipients = a0.recipients;
|
||||
value2 = recipients.map(UserStore.getUser);
|
||||
value = env0_3(value2.filter((require(1360) /* metro dependency 1360: GlobalUtils */).isNotNullish), 1);
|
||||
property = value[0];
|
||||
value = null;
|
||||
return value == property ? value : property.getAvatarURL(undefined, r5, a2);
|
||||
}
|
||||
const GROUP_DM = ChannelTypes.GROUP_DM;
|
||||
if (GROUP_DM === type) {
|
||||
value = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
|
||||
getChannelIconURL = value.getChannelIconURL;
|
||||
object2 = {};
|
||||
object2.id = a0.id;
|
||||
object2.icon = a0.icon;
|
||||
object2.applicationId = a0.getApplicationId();
|
||||
object2.size = r5;
|
||||
return Reflect.apply(getChannelIconURL, value, [object2]);
|
||||
}
|
||||
}
|
||||
|
||||
function getChannelIconSource_79630(a0) { // fn#79630, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10440:550, offset: 0x01e5bb49, size: 224 bytes, params: 2, frame: 15
|
||||
var getChannelIconSource;
|
||||
var object2;
|
||||
var recipients;
|
||||
var value2;
|
||||
var property;
|
||||
const type = a0.type;
|
||||
var value;
|
||||
const DM = ChannelTypes.DM;
|
||||
if (DM === type) {
|
||||
recipients = a0.recipients;
|
||||
value2 = recipients.map(UserStore.getUser);
|
||||
value = env0_3(value2.filter((require(1360) /* metro dependency 1360: GlobalUtils */).isNotNullish), 1);
|
||||
property = value[0];
|
||||
value = null;
|
||||
return value != property ? property.getAvatarSource(undefined) : value;
|
||||
}
|
||||
const GROUP_DM = ChannelTypes.GROUP_DM;
|
||||
if (GROUP_DM === type) {
|
||||
value = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
|
||||
getChannelIconSource = value.getChannelIconSource;
|
||||
object2 = {};
|
||||
object2.id = a0.id;
|
||||
object2.icon = a0.icon;
|
||||
object2.applicationId = a0.getApplicationId();
|
||||
object2.size = 128;
|
||||
return Reflect.apply(getChannelIconSource, value, [object2]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user