|
|
@ -23,7 +23,7 @@ import { sleep } from "@utils/misc";
|
|
|
|
import { Queue } from "@utils/Queue";
|
|
|
|
import { Queue } from "@utils/Queue";
|
|
|
|
import definePlugin from "@utils/types";
|
|
|
|
import definePlugin from "@utils/types";
|
|
|
|
import { Constants, FluxDispatcher, RestAPI, UserProfileStore, UserStore, useState } from "@webpack/common";
|
|
|
|
import { Constants, FluxDispatcher, RestAPI, UserProfileStore, UserStore, useState } from "@webpack/common";
|
|
|
|
import type { ComponentType, ReactNode } from "react";
|
|
|
|
import { type ComponentType, type ReactNode } from "react";
|
|
|
|
|
|
|
|
|
|
|
|
// LYING to the type checker here
|
|
|
|
// LYING to the type checker here
|
|
|
|
const UserFlags = Constants.UserFlags as Record<string, number>;
|
|
|
|
const UserFlags = Constants.UserFlags as Record<string, number>;
|
|
|
@ -205,6 +205,7 @@ export default definePlugin({
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<ErrorBoundary noop>
|
|
|
|
<ErrorBoundary noop>
|
|
|
|
<MentionWrapper
|
|
|
|
<MentionWrapper
|
|
|
|
|
|
|
|
key={"mention" + data.userId}
|
|
|
|
RoleMention={RoleMention}
|
|
|
|
RoleMention={RoleMention}
|
|
|
|
UserMention={UserMention}
|
|
|
|
UserMention={UserMention}
|
|
|
|
data={data}
|
|
|
|
data={data}
|
|
|
|