|
|
@ -16,8 +16,8 @@
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
import { LazyComponent, useAwaiter, useForceUpdater } from "@utils/react";
|
|
|
|
import { useAwaiter, useForceUpdater } from "@utils/react";
|
|
|
|
import { find, findByPropsLazy } from "@webpack";
|
|
|
|
import { findByPropsLazy, findComponentByCodeLazy } from "@webpack";
|
|
|
|
import { Forms, React, RelationshipStore, useRef, UserStore } from "@webpack/common";
|
|
|
|
import { Forms, React, RelationshipStore, useRef, UserStore } from "@webpack/common";
|
|
|
|
|
|
|
|
|
|
|
|
import { Auth, authorize } from "../auth";
|
|
|
|
import { Auth, authorize } from "../auth";
|
|
|
@ -31,7 +31,7 @@ import ReviewComponent from "./ReviewComponent";
|
|
|
|
const { Editor, Transforms } = findByPropsLazy("Editor", "Transforms");
|
|
|
|
const { Editor, Transforms } = findByPropsLazy("Editor", "Transforms");
|
|
|
|
const { ChatInputTypes } = findByPropsLazy("ChatInputTypes");
|
|
|
|
const { ChatInputTypes } = findByPropsLazy("ChatInputTypes");
|
|
|
|
|
|
|
|
|
|
|
|
const InputComponent = LazyComponent(() => find(m => m.default?.type?.render?.toString().includes("default.CHANNEL_TEXT_AREA")).default);
|
|
|
|
const InputComponent = findComponentByCodeLazy("default.CHANNEL_TEXT_AREA");
|
|
|
|
const { createChannelRecordFromServer } = findByPropsLazy("createChannelRecordFromServer");
|
|
|
|
const { createChannelRecordFromServer } = findByPropsLazy("createChannelRecordFromServer");
|
|
|
|
|
|
|
|
|
|
|
|
interface UserProps {
|
|
|
|
interface UserProps {
|
|
|
|