https://bugs.kde.org/show_bug.cgi?id=485139

            Bug ID: 485139
           Summary: NeoChat don't display textual body of m.image messages
    Classification: Applications
           Product: NeoChat
           Version: 24.02.1
          Platform: Flatpak
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: General
          Assignee: fe...@posteo.de
          Reporter: mart.bog...@gmail.com
                CC: c...@carlschwan.eu
  Target Milestone: ---

Created attachment 168222
  --> https://bugs.kde.org/attachment.cgi?id=168222&action=edit
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
    }
}
```

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to