Files
discord-decomp/sources/modules/keyboard/native/openCustomKeyboard.android.tsx
T
2026-07-27 16:20:00 +03:00

40 lines
2.2 KiB
TypeScript

/* Metro module 11574; source: modules/keyboard/native/openCustomKeyboard.android.tsx; dependencies: [1482, 5459, 4023, 11538, 2] */
function _fun88631(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88631, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11760:6, offset: 0x01fec8e2, size: 103 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/keyboard/native/openCustomKeyboard.android.tsx');
exports.default = openCustomKeyboard_88632;
}
function openCustomKeyboard_88632({channelId, chatInputRef, chatInputNativeRef, keyboardParams, secondaryTextFieldRef}) { // fn#88632, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11760:190, offset: 0x01fec949, size: 121 bytes, params: 2, frame: 15
(require(1482) /* metro dependency 1482: KeyboardUIStoreNative */).setKeyboardType(keyboardParams);
(require(5459) /* metro dependency 5459: RunAfterInteractionsUtils */).runAfterInteractions(_fun88633);
}
function _fun88633() { // fn#88633, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11760:367, offset: 0x01fec9c2, size: 159 bytes, params: 1, frame: 19
var r2;
var r3;
let current = chatInputRef.current;
current.blur();
const value2 = secondaryTextFieldRef == null;
const value3 = undefined;
if (value2) {
r2 = value2;
r3 = value3;
} else {
current = secondaryTextFieldRef.current;
r2 = current == null;
r3 = current;
}
if (!r2) {
r3.blur();
}
const portalKeyboardUIStoreNativeModule = require(4023) /* metro dependency 4023: PortalKeyboardUIStoreNative */;
portalKeyboardUIStoreNativeModule.openPortalKeyboard(keyboardParams.type, channelId, chatInputRef);
const defaultImport = importDefault(11538) /* metro dependency 11538: ChatInputNativeCommands */;
defaultImport.openCustomKeyboard(chatInputNativeRef.current);
return value3;
}