Bug 488322 - Message edit text field sometimes shows up empty
Summary: Message edit text field sometimes shows up empty
Status: RESOLVED DUPLICATE of bug 485844
Alias: None
Product: NeoChat
Classification: Applications
Component: General (other bugs)
Version First Reported In: git master
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Tobias Fella
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-10 19:44 UTC by Tobias Fella
Modified: 2024-07-23 13:38 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Fella 2024-06-10 19:44:17 UTC
SUMMARY
Message edit text field sometimes shows up empty

STEPS TO REPRODUCE
1.  click "edit" button
2.
3. 

OBSERVED RESULT
text field is sometimes missing text

EXPECTED RESULT
text

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2024-06-11 14:00:41 UTC
I can reproduce this by editing a message and then trying to edit it a second time. The second time, the text field is always empty.
Comment 2 James Lyne 2024-06-15 14:10:42 UTC
Can also reproduce by editing twice. Viewing the message source shows that the message body is empty after the first edit, so the text field is populated with nothing.

Before edit:
"content": {
    "body": "test",
    "format": "org.matrix.custom.html",
    "formatted_body": "test",
    "msgtype": "m.text"
}

After edit:
"content": {
    "body": "",
    "format": "org.matrix.custom.html",
    "formatted_body": "test 2",
    "msgtype": "m.text"
}

Restarting neochat fixes this.
Comment 3 James Graham 2024-07-23 13:38:38 UTC

*** This bug has been marked as a duplicate of bug 485844 ***