mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-06 17:11:55 +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,
|
||||
...autoCompleteProps
|
||||
} = 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 (
|
||||
|
||||
Reference in New Issue
Block a user