Bug 485139 - NeoChat don't display textual body of m.image messages
Summary: NeoChat don't display textual body of m.image messages
Status: RESOLVED FIXED
Alias: None
Product: NeoChat
Classification: Applications
Component: General (show other bugs)
Version: 24.02.1
Platform: Flatpak Linux
: NOR normal
Target Milestone: ---
Assignee: Tobias Fella
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-06 16:38 UTC by Bohdan Mart
Modified: 2024-04-30 21:13 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Example of NeoChat alongside with SchildiChat displaying same message (196.77 KB, image/png)
2024-04-06 16:38 UTC, Bohdan Mart
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bohdan Mart 2024-04-06 16:38:40 UTC
Created attachment 168222 [details]
Example of NeoChat alongside with SchildiChat displaying same message

SUMMARY

NeoChat allows sending Image Attachment with text. But it is unable to dispaly text under image. So it is inconsitent. It can send this kind of message, but can't display it. Other clients that I am aware of aren't able to send in single message both text body and image.



STEPS TO REPRODUCE
1. Open any chat room
2. Select attachment button
3. Attach image
4. It isn't sent right away and you can add some text. Add this text
5. Send message

OBSERVED RESULT
You can see only image in chat. Message can be observed if you right click and select "View Source". It's in "body" field

EXPECTED RESULT

Being able to EITHER see text under the image, OR not being able to attach text to image when sending and just send image.

Text from message's "body" is rendered in *SchildiChat* which is fork of Element, but isn't shown in Element.

I assume most clients would not display it. 


SOFTWARE/OS VERSIONS
Linux/KDE Plasma:   Manjaro KDE
(available in About System) 
Host:
KDE Plasma Version: 5.27.11
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.12
flatpak:
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION

Same behaviro was observed in version 23.08.5 installed from package manager. Decided to try out on latest version before filing bug-report. 

Offending message can be observed in official room:  #neochat:kde.org

Link to message is: https://matrix.to/#/!oXVtZGWmHbaJvGTerl:kde.org/$1AlEqRR_AcdvRRb9mtR5MZLJbCdSBrfdqbVzZ43x-zU?via=kde.org&via=matrix.org&via=envs.net


JSON content of this message:

```json
{
    "content": {
        "body": "go I have to use default sticker widget in Element  to see any sttickers in NeoCHat?",
        "filename": "2024-04-06-13-06-13.png",
        "info": {
            "h": 384,
            "mimetype": "image/png",
            "size": 9200,
            "w": 512
        },
        "msgtype": "m.image",
        "url": "mxc://matrix.org/hIWEvirrvDjROOyuFZrWPGSa"
    },
    "event_id": "$1AlEqRR_AcdvRRb9mtR5MZLJbCdSBrfdqbVzZ43x-zU",
    "origin_server_ts": 1712397995617,
    "sender": "@winnie_ua:matrix.org",
    "type": "m.room.message",
    "unsigned": {
        "age": 22077045
    }
}
```
Comment 1 Bohdan Mart 2024-04-06 18:46:59 UTC
BTW. It's part of RECENTLY merged proposal  MSC2530 "Support for Media Captions"

https://github.com/matrix-org/matrix-spec-proposals/blob/main/proposals/2530-body-as-caption.md