mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 09:25:27 +00:00
fix: make the autocompletor actually run when editing messages (#445)
This commit is contained in:
@@ -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 (
|
||||||
|
|||||||
Reference in New Issue
Block a user