Merge pull request #14 from janderedev/pr-1

This commit is contained in:
Paul Makles 2021-08-06 14:48:15 +01:00 committed by GitHub
commit 8d65e1ee11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -477,6 +477,10 @@ export default observer(({ channel }: Props) => {
return send(); return send();
} }
if (e.key === "Escape" && replies.length > 0) {
setReplies(replies.slice(0, -1));
}
debouncedStopTyping(true); debouncedStopTyping(true);
}} }}
placeholder={ placeholder={