refactor: filter non-mention like url into meta

pull/90/head
moonrailgun 2 years ago
parent 3f220373c7
commit 1c8108b36b

@ -46,7 +46,7 @@ export const ChatInputBoxInput: React.FC<ChatInputBoxInputProps> = React.memo(
onChange={(e, newValue, _, mentions) =>
props.onChange(
newValue,
mentions.map((m) => m.id)
mentions.filter((m) => m.display.startsWith('@')).map((m) => m.id) // 仅处理mention的数据进行记录
)
}
onKeyDown={props.onKeyDown}

Loading…
Cancel
Save