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

"formatted_body" is set to "* (null)" when editing messages #6446

Closed
progval opened this issue Jul 18, 2022 · 0 comments · Fixed by matrix-org/matrix-ios-sdk#1529
Closed
Assignees
Labels
A-Message-Editing O-Frequent Affects or can be seen by most users regularly or impacts most users' first experience S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect Something isn't working: bugs, crashes, hangs and other reported problems

Comments

@progval
Copy link

progval commented Jul 18, 2022

Steps to reproduce

  1. Send Edit as a message
  2. Rewrite it as Edit 2

Outcome

What did you expect?

It should send "* Edit 2" as the value of "formatted_body'

What happened instead?

It sends "* (null)" as the value of "formatted_body'

Here is the whole event:

{
  "content": {
    "body": "* Edit 2",
    "format": "org.matrix.custom.html",
    "formatted_body": "* (null)",
    "m.new_content": {
      "body": "Edit 2",
      "msgtype": "m.text"
    },
    "m.relates_to": {
      "event_id": "$SNcTFgRqjHARfq8FMDgYPGn9CFGRyPMNwDJax3sIIyc",
      "rel_type": "m.replace"
    },
    "msgtype": "m.text"
  },
  "origin_server_ts": 1658148449393,
  "sender": "<redacted>",
  "type": "m.room.message",
  "unsigned": {},
  "event_id": "$uZkqokz323-rN0GzVLxGDxB7aLzLCGRFzzFqbAdO-1o",
  "room_id": "<redacted>"
}

Your phone model

Element 1.8.20

Operating system version

No response

Application version

No response

Homeserver

synapse 1.62.0

Will you send logs?

No

@progval progval added the T-Defect Something isn't working: bugs, crashes, hangs and other reported problems label Jul 18, 2022
@stefanceriu stefanceriu added A-Message-Editing S-Major Severely degrades major functionality or product features, with no satisfactory workaround O-Frequent Affects or can be seen by most users regularly or impacts most users' first experience labels Jul 18, 2022
@stefanceriu stefanceriu added S-Minor Impairs non-critical functionality or suitable workarounds exist and removed S-Major Severely degrades major functionality or product features, with no satisfactory workaround labels Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Message-Editing O-Frequent Affects or can be seen by most users regularly or impacts most users' first experience S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect Something isn't working: bugs, crashes, hangs and other reported problems
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants