mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-21 22:50:59 -05:00
fix: make the autocompletor actually run when editing messages (#445)
This commit is contained in:
parent
91f6947634
commit
535a40df0c
1 changed files with 5 additions and 1 deletions
|
@ -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 (
|
||||
|
|
Loading…
Reference in a new issue