This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

+31 -28
View File
@@ -1,36 +1,39 @@
/* Metro module 11405; source: modules/messages/isMessagePinnable.tsx; dependencies: [3784, 661, 5216, 6860, 2] */
import PermissionStore from '../../stores/PermissionStore.tsx'; /* Metro dependency 3784 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
function _fun87388(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87388, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11591:6, offset: 0x01fbcf51, size: 150 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_4 = constantsModule.ChannelTypes;
const env0_5 = constantsModule.Permissions;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/messages/isMessagePinnable.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/messages/isMessagePinnable.tsx');
exports.default = isMessagePinnable;
function isMessagePinnable(a0, a1) { // fn#87389, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11591:231, offset: 0x01fbcfe7, size: 236 bytes, params: 3, frame: 16
var r0;
let value = a1.isSystemDM();
if (value) {
r0 = !value;
} else {
value = importDefault(5216) /* metro dependency 5216: isSystemMessage */;
value = !value(a0);
r0 = value;
}
const permissionStoreBinding = PermissionStore;
const can = permissionStoreBinding.can;
const PIN_MESSAGES = Permissions.PIN_MESSAGES;
let r3 = Reflect.apply(can, permissionStoreBinding, [PIN_MESSAGES,
a1]) && PermissionStore.can(Permissions.READ_MESSAGE_HISTORY, a1);
if (r0) {
r3 = !r3 ? a1.isPrivate() : r3;
r0 = r3;
}
r0 = r0 && (require(6860) /* metro dependency 6860: ThreadHooks */).getIsActiveChannelOrUnarchivableThread(a1) && a1.type !== ChannelTypes.GUILD_VOICE;
r0 = r0 && a1.type !== ChannelTypes.GUILD_STAGE_VOICE && a1.type !== ChannelTypes.MEDIA_THREAD;
return r0;
}
}
function isMessagePinnable(a0, a1) { // fn#87389, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11591:231, offset: 0x01fbcfe7, size: 236 bytes, params: 3, frame: 16
var r0;
let value = a1.isSystemDM();
if (value) {
r0 = !value;
} else {
value = importDefault(5216) /* metro dependency 5216: isSystemMessage */;
value = !value(a0);
r0 = value;
}
const can = PermissionStore.can;
const PIN_MESSAGES = Permissions.PIN_MESSAGES;
let r3 = Reflect.apply(can, PermissionStore, [PIN_MESSAGES,
a1]) && PermissionStore.can(Permissions.READ_MESSAGE_HISTORY, a1);
if (r0) {
r3 = !r3 ? a1.isPrivate() : r3;
r0 = r3;
}
r0 = r0 && (require(6860) /* metro dependency 6860: ThreadHooks */).getIsActiveChannelOrUnarchivableThread(a1) && a1.type !== ChannelTypes.GUILD_VOICE;
r0 = r0 && a1.type !== ChannelTypes.GUILD_STAGE_VOICE && a1.type !== ChannelTypes.MEDIA_THREAD;
return r0;
}
global.__d(_fun87388, 11405, [3784, 661, 5216, 6860,
2]) /* metro module 11405, dependencies: [3784, 661, 5216, 6860, 2] */;