-
Notifications
You must be signed in to change notification settings - Fork 512
Closed
Labels
bugfeature: api 🛠️OCS API for conversations, chats and participantsOCS API for conversations, chats and participantsfeature: chat 💬Chat and system messagesChat and system messagesfeature: upload & shares & voice 📤🎙️Sharing files into a chat and audio recordingsSharing files into a chat and audio recordingsregression
Milestone
Description
How to use GitHub
- Please use the 👍 reaction to show that you are affected by the same issue.
- Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
- Subscribe to receive notifications on status change and new comments.
Steps to reproduce
- Open a conversation with shared files
Expected behaviour
Preview of the file / image should be shown. The message is reactable and can be replied to.
Actual behaviour
The message is received as a system message which neither is reactable, nor can be replied to.
Additional infos
The problem comes from #8798, in particular this part:
spreed/lib/Chat/Parser/SystemMessage.php
Lines 414 to 424 in 9184830
| if (isset($metaData['messageType'])) { | |
| if ($metaData['messageType'] === 'voice-message') { | |
| $chatMessage->setMessageType('voice-message'); | |
| } elseif ($metaData['messageType'] === 'record-audio') { | |
| $chatMessage->setMessageType('record-audio'); | |
| } elseif ($metaData['messageType'] === 'record-video') { | |
| $chatMessage->setMessageType('record-video'); | |
| } | |
| } else { | |
| $chatMessage->setMessageType(ChatManager::VERB_MESSAGE); | |
| } |
For files shared $metaData['messageType'] is set, but looks like it's an empty string?! Before the change the check for voice-message would fail and therefore fallback to setting the message type to ChatMananger::VERB_MESSAGE, this is not the case anymore.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugfeature: api 🛠️OCS API for conversations, chats and participantsOCS API for conversations, chats and participantsfeature: chat 💬Chat and system messagesChat and system messagesfeature: upload & shares & voice 📤🎙️Sharing files into a chat and audio recordingsSharing files into a chat and audio recordingsregression
