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/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-07-01 17:08:32 +0300
committerJoas Schilling <coding@schilljs.com>2021-07-01 17:08:32 +0300
commit39a929e20dd97f24d2aa9a997b24e268e1a9abdd (patch)
tree1ebf59942f089a0e5e4fc4d5f1407169b4e9d5d0 /lib
parent63fe1ac0d71cd660bee3df5ff3d304d5aca4871e (diff)
Fix detecting wav files as voice-messages
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Chat/SystemMessage/Listener.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Chat/SystemMessage/Listener.php b/lib/Chat/SystemMessage/Listener.php
index 4b1facb3e..b749a603e 100644
--- a/lib/Chat/SystemMessage/Listener.php
+++ b/lib/Chat/SystemMessage/Listener.php
@@ -321,7 +321,8 @@ class Listener implements IEventListener {
$metaData = is_array($metaData) ? $metaData : [];
if (isset($metaData['messageType']) && $metaData['messageType'] === 'voice-message') {
- if ($share->getNode()->getMimeType() !== 'audio/mpeg') {
+ if ($share->getNode()->getMimeType() !== 'audio/mpeg'
+ && $share->getNode()->getMimeType() !== 'audio/wav') {
unset($metaData['messageType']);
}
}