From 27370279daf11813247c161e32f8d5080cab55a2 Mon Sep 17 00:00:00 2001 From: marco Date: Thu, 2 Sep 2021 11:00:54 +0200 Subject: [PATCH] Fix video toggling on pasting Signed-off-by: marco --- src/components/CallView/shared/LocalMediaControls.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/components/CallView/shared/LocalMediaControls.vue b/src/components/CallView/shared/LocalMediaControls.vue index c73f5105d..efa0518b4 100644 --- a/src/components/CallView/shared/LocalMediaControls.vue +++ b/src/components/CallView/shared/LocalMediaControls.vue @@ -646,6 +646,14 @@ export default { }, toggleVideo() { + /** + * Abort toggling the video if the 'v' key is lifted when pasting an + * image in the new message form. + */ + if (document.getElementsByClassName('upload-editor').length !== 0) { + return + } + if (!this.model.attributes.videoAvailable) { return }