Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormarco <marcoambrosini@pm.me>2021-09-02 12:00:54 +0300
committermarco <marcoambrosini@pm.me>2021-09-02 12:00:54 +0300
commit27370279daf11813247c161e32f8d5080cab55a2 (patch)
tree8bea715f6fbcd2fd7c84c63bcda86db3e25ae7fb /src
parentd9af8d76ad2ee82b8462a029c19b32efd0629298 (diff)
Fix video toggling on pasting
Signed-off-by: marco <marcoambrosini@pm.me>
Diffstat (limited to 'src')
-rw-r--r--src/components/CallView/shared/LocalMediaControls.vue8
1 files changed, 8 insertions, 0 deletions
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
}