diamondburned / dissent

Tiny native Discord app
https://flathub.org/apps/details/so.libdb.dissent
GNU General Public License v3.0
1.23k stars 39 forks source link

Empty TextView when sending spoiler textblocks #167

Open tfuxu opened 10 months ago

tfuxu commented 10 months ago

When working on implementing spoilers, I've encountered this bug where when you send a textblock inside of a spoiler, a content handler (or presumably MarkdownViewer) creates an Gtk.TextView object normally intended for standard messages above that textblock, without any text inside.

Screenshots:

Not in spoiler:

Screenshot from 2023-10-03 19-18-41

In spoiler:

Screenshot from 2023-10-03 19-18-17

Minimal reproducer:

||```go
println("Text")
```||

Just send it from official client or gtkcord, and check using inspector if there is an unused TextView inside message row.