diff options
author | marco <marcoambrosini@pm.me> | 2021-09-02 12:00:54 +0300 |
---|---|---|
committer | marco <marcoambrosini@pm.me> | 2021-09-02 12:00:54 +0300 |
commit | 27370279daf11813247c161e32f8d5080cab55a2 (patch) | |
tree | 8bea715f6fbcd2fd7c84c63bcda86db3e25ae7fb /src | |
parent | d9af8d76ad2ee82b8462a029c19b32efd0629298 (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.vue | 8 |
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 } |