Bug 488322

Summary: Message edit text field sometimes shows up empty
Product: [Applications] NeoChat Reporter: Tobias Fella <fella>
Component: GeneralAssignee: Tobias Fella <fella>
Status: RESOLVED DUPLICATE    
Severity: normal CC: carl, james.h.graham, jim+kde, nate
Priority: NOR    
Version First Reported In: git master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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 ***