signal
signal copied to clipboard
Replies to replies have "null" attachment, causing broken display on desktop Signal app
I am using the most recent build of the bridge via github on commit https://github.com/mautrix/signal/commit/c4f7c975f84b25c79c61461f33b9d517347eeceb though this issue has been happening for a while.
When replying to another message that includes a reply, an invalid attachment is created and causes a null attachment icon to show on desktop Signal: Grey bubble was sent from Signal's Android app, blue was sent via the bridge. the "2345" message was sent with line 382 shown below removed, "back atcha" was sent with that line present.
I've confirmed this issue stems from this section: https://github.com/mautrix/signal/blob/7227540df8b33f2ad7bf4a8277fa2ece58a19676/mautrix_signal/portal.py#L375-L382
Apparently desktop Signal does not handle this odd behaviour as gracefully as Android and iOS. I would assume the fix would be to add the ability for the bridge to determine if the reply has an attachment or not per the TODO, though I'm unsure I'd be able to implement the fix in a quick manner so I'll leave this issue for now.
Additionally, based on the commit (https://github.com/mautrix/signal/commit/498e0f2bab89daac07da8dc29a9f544bc2639f6a) that added that line to begin with, it was a quick fix for iOS to render replies properly so I would be unable to test any changes I make due to lack of an iPhone.
I can't reproduce this with latest mautrix-signal