34 lines
1.9 KiB
TypeScript
34 lines
1.9 KiB
TypeScript
/* Metro module 6614; source: modules/guild_member/GuildMemberActionCreators.tsx; dependencies: [1937, 661, 6607, 694, 507, 2] */
|
|
function _fun52257(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#52257, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6792:6, offset: 0x01323fc3, size: 138 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const impersonateStore = importDefault(1937) /* metro dependency 1937: ImpersonateStore */;
|
|
const env0_4 = (require(661) /* metro dependency 661: Constants */).Endpoints;
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_member/GuildMemberActionCreators.tsx');
|
|
exports.updateGuildSelfMember = updateGuildSelfMember;
|
|
}
|
|
|
|
function updateGuildSelfMember(a0, a1) { // fn#52258, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6792:234, offset: 0x0132404d, size: 227 bytes, params: 3, frame: 19
|
|
const value = a2;
|
|
const value2 = undefined;
|
|
let r7 = value !== value2 ? value : false;
|
|
if (ImpersonateStore.isFullServerPreview(a0)) {
|
|
(require(6607) /* metro dependency 6607: ImpersonateActionCreators */).updateImpersonatedData(a0,
|
|
{memberOptions: a1});
|
|
return value2;
|
|
}
|
|
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_MEMBER_UPDATE_LOCAL',
|
|
guildId: a0, roles: a1.roles, flags: a1.flags});
|
|
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
|
|
const patch = HTTP.patch;
|
|
const object2 = {};
|
|
object2.url = Endpoints.SET_GUILD_MEMBER(a0);
|
|
object2.body = a1;
|
|
r7 = r7 ? !!r7 : value2;
|
|
object2.oldFormErrors = r7;
|
|
object2.rejectWithError = false;
|
|
return Reflect.apply(patch, HTTP, [object2]);
|
|
}
|
|
|