Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Unable to render message" from a bot, only in Element iOS and not other clients #6865

Closed
moodler opened this issue Oct 12, 2022 · 3 comments
Labels
T-Defect Something isn't working: bugs, crashes, hangs and other reported problems

Comments

@moodler
Copy link

moodler commented Oct 12, 2022

Steps to reproduce

We have a bot that uses the matrix-nio library. It works fine on Element web, Element desktop, Fluffychat, Cinny. On Element IO (both iPhone and iPad) however, we just get this: ** Unable to render message. Please report a bug

Outcome

Element iOS:
image

Element web:
image

Cinny:
image

Here is the message source as an image:
image

Message source text:
{
"type": "m.room.message",
"sender": "@moodlebot:moodle.com",
"content": {
"msgtype": "m.notice",
"format": "org.matrix.custom.html",
"body": "I think it would be amazing if robots could take care of all the cleaning and maintenance. It would free up a lot of time for people to do other things."
},
"origin_server_ts": 1665554111724,
"unsigned": {
"age": 28983016
},
"event_id": "$8C5ZVwbp5VLCsc_BCG_ypEc1aNfLzjXITnCircWE6CY",
"room_id": "!HoguyYYqAHvInYDFtC:moodle.com"
}

Your phone model

iPhone 13, iPad 2020

Operating system version

iOS 16 beta

Application version

1.9.7 (but it's been happening for a while)

Homeserver

Synapse

Will you send logs?

No

@moodler moodler added the T-Defect Something isn't working: bugs, crashes, hangs and other reported problems label Oct 12, 2022
@moodler
Copy link
Author

moodler commented Oct 12, 2022

is it as simple as Element iOS not being able to render that "msgtype" perhaps? I see the bot is using "m.notice" while mine are using "m.text"

@moodler
Copy link
Author

moodler commented Oct 12, 2022

It wasn't msgtype. it was the formatting.

Things worked again when we switched from HTML (the nio default) to plain text.

Seems to have something to do with a missing "formatting_body", which perhaps Element iOS is more strict about. Up to you if you want to fix that (I would).

In the meantime, we've also filed this pull request to nio: anoadragon453/nio-template#39

@ismailgulek
Copy link
Contributor

It seems iOS client is spec-compliant on this case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Defect Something isn't working: bugs, crashes, hangs and other reported problems
Projects
None yet
Development

No branches or pull requests

2 participants