Fix enter key sending message while still composing

This commit is contained in:
brecert 2021-09-17 17:20:22 -04:00
parent 2ff9c91287
commit 5b16977b0e
No known key found for this signature in database
GPG key ID: 1B2E56B9EC985B96

View file

@ -523,6 +523,7 @@ export default observer(({ channel }: Props) => {
if ( if (
!e.shiftKey && !e.shiftKey &&
!e.isComposing &&
e.key === "Enter" && e.key === "Enter" &&
!isTouchscreenDevice !isTouchscreenDevice
) { ) {