forked from abner/for-legacy-web
fix: make the autocompletor actually run when editing messages (#445)
parent
91f6947634
commit
535a40df0c
|
|
@ -88,7 +88,11 @@ export default function MessageEditor({ message, finish }: Props) {
|
||||||
onBlur,
|
onBlur,
|
||||||
...autoCompleteProps
|
...autoCompleteProps
|
||||||
} = useAutoComplete((v) => setContent(v ?? ""), {
|
} = useAutoComplete((v) => setContent(v ?? ""), {
|
||||||
users: { type: "all" },
|
users: { type: "channel", id: message.channel!._id },
|
||||||
|
channels:
|
||||||
|
message.channel!.channel_type === "TextChannel"
|
||||||
|
? { server: message.channel!.server_id! }
|
||||||
|
: undefined,
|
||||||
});
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue