mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 12:07:28 +00:00
2278116579
Deleting a message that headed a thread took the thread with it: the "N replies" summary under the message disappeared and there was no way back to the replies, which are still there. Every branch of the timeline content mapper passes `MsgLikeContent`'s thread information on except the redacted one, which returned a bare `RedactedContent` and dropped it. The thread summary lives on `MsgLikeContent` next to `kind`, so it survives the redaction; only the app was throwing it away. `RedactedContent` now carries the thread info like the other contents do, and `EventTimelineItem.threadInfo()` reads it. A deleted message that still heads a thread is also left out of the "N removed messages" group, which would otherwise hide the summary again as soon as three deletions ended up next to each other. Part of #7397