According to #1349, replying to a threaded reply should, as far as I can tell, reply within that same thread. This is happening sometimes, but not always. In some cases, it even does something weird where other clients don't see the reply at all. The screenshot below might help.
The "E assim?" message is inside a thread; the "Olá?" message replies to that, but doesn't get put inside the thread.
The video below even shows the messages, in Element, appearing inside the thread and then disappearing (they don't show up outside the thread also).
Describe the bug
According to #1349, replying to a threaded reply should, as far as I can tell, reply within that same thread. This is happening sometimes, but not always. In some cases, it even does something weird where other clients don't see the reply at all. The screenshot below might help.
The "E assim?" message is inside a thread; the "Olá?" message replies to that, but doesn't get put inside the thread.
The video below even shows the messages, in Element, appearing inside the thread and then disappearing (they don't show up outside the thread also).
https://github.com/user-attachments/assets/c9b7ed74-2d17-4399-bb9f-6a98a07ec48e
I will also post the sources for these three messages (the original, the first threaded reply, and the "failed" threaded reply).
The sources
Initial message ```javascript { "<== DECRYPTED_EVENT ==>": { "content": { "msgtype": "m.text", "body": "Olá " }, "event_id": "$G3f6k1-xYD5D0L7I9heDezTS6IEKMLypYPv4Lm9h4Kc", "origin_server_ts": 1730861185499, "sender": "@filipe:chat.filipesm.eu", "type": "m.room.message", "unsigned": { "age": 33748570, "m.relations": { "m.thread": { "count": 2, "current_user_participated": true, "latest_event": { "content": { "algorithm": "m.megolm.v1.aes-sha2", "ciphertext": "AwgDEoABnceNA+S1LxDfZ0AhjZgHebPrUErclyloL7pxhpeFzQkgR8Kq5hTp++dFIuqPmsJTyfTaRu52Gv6LuH66CNjEM1wJnLUAR+cFHfPeQ/dGe0Nz6IX2ytKR0HKoFFXav3or1lka1XuWnCh3lZDc27tg6omi76aGnYUA8wSLpEzqj4+3l8Q3KFnsyZtzVPEu8nRc25sh2YZexHcZcjgi/5wawrjSec0jz4zCLcloEwEjsE65TP01S3RQI9yu8QBvUuKRmuia/ivWBwE", "device_id": "PELfujDz1L", "m.relates_to": { "event_id": "$G3f6k1-xYD5D0L7I9heDezTS6IEKMLypYPv4Lm9h4Kc", "is_falling_back": true, "m.in_reply_to": { "event_id": "$CMTH-tUKKa3ZJDY_qf5ka1EeCT2Ca5lmfXhZYOGo_8Y" }, "rel_type": "m.thread" }, "sender_key": "wRzGQwu4M4Gm5UE1vuTnqFyqNEjhgyU85QOkdTk1YnU", "session_id": "QlQEi3IRf6utYPVecqTO6Oad7N+ySGGAcDr8Ebew5JM" }, "event_id": "$gurWt1gh2_Oaut8p56XLmB2CZIFFFi8KxzvAdfjQO8A", "origin_server_ts": 1730861410860, "room_id": "!wzIvctSysYGDinFtVb:matrix.org", "sender": "@filipe:chat.filipesm.eu", "type": "m.room.encrypted", "unsigned": { "transaction_id": "$local.e4e5596e-a9a0-48fd-97b3-5e0c6ec67e63" } } } }, "transaction_id": "$local.f537da89-7792-4e0a-abfd-70fcbded67f3" }, "room_id": "!wzIvctSysYGDinFtVb:matrix.org" }, "<== ORIGINAL_EVENT ==>": { "content": { "algorithm": "m.megolm.v1.aes-sha2", "ciphertext": "AwgBEoABz4N0h9fXxDZjt3q2hpS3H5CDcC7NGsJonDVyCKR4vCSJUNugO/pEO9nxKi2xpNBzZ7frXxY7G+UknYip5n/Jje9X5DACq1kgMIiHdi+5DkPzOXUXWa8OtJkQDu/SrS+CId99nM2/1MypTNfs69S0vieptEVO1H9287Ijxfz3SGD3y5CKeZZtrm0lFjhTwnNZmD3A4kN0SryoIeqiB1v7T6tB9bY+e+dLeaq4cAYPQcz7y0QMrQ17HV1pRPrQ4My02tXZql1d/Q0", "device_id": "PELfujDz1L", "sender_key": "wRzGQwu4M4Gm5UE1vuTnqFyqNEjhgyU85QOkdTk1YnU", "session_id": "QlQEi3IRf6utYPVecqTO6Oad7N+ySGGAcDr8Ebew5JM" }, "event_id": "$G3f6k1-xYD5D0L7I9heDezTS6IEKMLypYPv4Lm9h4Kc", "origin_server_ts": 1730861185499, "sender": "@filipe:chat.filipesm.eu", "type": "m.room.encrypted", "unsigned": { "age": 33748570, "m.relations": { "m.thread": { "count": 2, "current_user_participated": true, "latest_event": { "content": { "algorithm": "m.megolm.v1.aes-sha2", "ciphertext": "AwgDEoABnceNA+S1LxDfZ0AhjZgHebPrUErclyloL7pxhpeFzQkgR8Kq5hTp++dFIuqPmsJTyfTaRu52Gv6LuH66CNjEM1wJnLUAR+cFHfPeQ/dGe0Nz6IX2ytKR0HKoFFXav3or1lka1XuWnCh3lZDc27tg6omi76aGnYUA8wSLpEzqj4+3l8Q3KFnsyZtzVPEu8nRc25sh2YZexHcZcjgi/5wawrjSec0jz4zCLcloEwEjsE65TP01S3RQI9yu8QBvUuKRmuia/ivWBwE", "device_id": "PELfujDz1L", "m.relates_to": { "event_id": "$G3f6k1-xYD5D0L7I9heDezTS6IEKMLypYPv4Lm9h4Kc", "is_falling_back": true, "m.in_reply_to": { "event_id": "$CMTH-tUKKa3ZJDY_qf5ka1EeCT2Ca5lmfXhZYOGo_8Y" }, "rel_type": "m.thread" }, "sender_key": "wRzGQwu4M4Gm5UE1vuTnqFyqNEjhgyU85QOkdTk1YnU", "session_id": "QlQEi3IRf6utYPVecqTO6Oad7N+ySGGAcDr8Ebew5JM" }, "event_id": "$gurWt1gh2_Oaut8p56XLmB2CZIFFFi8KxzvAdfjQO8A", "origin_server_ts": 1730861410860, "room_id": "!wzIvctSysYGDinFtVb:matrix.org", "sender": "@filipe:chat.filipesm.eu", "type": "m.room.encrypted", "unsigned": { "transaction_id": "$local.e4e5596e-a9a0-48fd-97b3-5e0c6ec67e63" } } } }, "transaction_id": "$local.f537da89-7792-4e0a-abfd-70fcbded67f3" }, "room_id": "!wzIvctSysYGDinFtVb:matrix.org" } } ``` Successful threaded reply ```javascript { "<== DECRYPTED_EVENT ==>": { "content": { "msgtype": "m.text", "body": "E assim?", "m.relates_to": { "event_id": "$G3f6k1-xYD5D0L7I9heDezTS6IEKMLypYPv4Lm9h4Kc", "is_falling_back": true, "m.in_reply_to": { "event_id": "$CMTH-tUKKa3ZJDY_qf5ka1EeCT2Ca5lmfXhZYOGo_8Y" }, "rel_type": "m.thread" } }, "event_id": "$gurWt1gh2_Oaut8p56XLmB2CZIFFFi8KxzvAdfjQO8A", "origin_server_ts": 1730861410860, "sender": "@filipe:chat.filipesm.eu", "type": "m.room.message", "unsigned": { "age": 33523209, "transaction_id": "$local.e4e5596e-a9a0-48fd-97b3-5e0c6ec67e63" }, "room_id": "!wzIvctSysYGDinFtVb:matrix.org" }, "<== ORIGINAL_EVENT ==>": { "content": { "algorithm": "m.megolm.v1.aes-sha2", "ciphertext": "AwgDEoABnceNA+S1LxDfZ0AhjZgHebPrUErclyloL7pxhpeFzQkgR8Kq5hTp++dFIuqPmsJTyfTaRu52Gv6LuH66CNjEM1wJnLUAR+cFHfPeQ/dGe0Nz6IX2ytKR0HKoFFXav3or1lka1XuWnCh3lZDc27tg6omi76aGnYUA8wSLpEzqj4+3l8Q3KFnsyZtzVPEu8nRc25sh2YZexHcZcjgi/5wawrjSec0jz4zCLcloEwEjsE65TP01S3RQI9yu8QBvUuKRmuia/ivWBwE", "device_id": "PELfujDz1L", "m.relates_to": { "event_id": "$G3f6k1-xYD5D0L7I9heDezTS6IEKMLypYPv4Lm9h4Kc", "is_falling_back": true, "m.in_reply_to": { "event_id": "$CMTH-tUKKa3ZJDY_qf5ka1EeCT2Ca5lmfXhZYOGo_8Y" }, "rel_type": "m.thread" }, "sender_key": "wRzGQwu4M4Gm5UE1vuTnqFyqNEjhgyU85QOkdTk1YnU", "session_id": "QlQEi3IRf6utYPVecqTO6Oad7N+ySGGAcDr8Ebew5JM" }, "event_id": "$gurWt1gh2_Oaut8p56XLmB2CZIFFFi8KxzvAdfjQO8A", "origin_server_ts": 1730861410860, "sender": "@filipe:chat.filipesm.eu", "type": "m.room.encrypted", "unsigned": { "age": 33523209, "transaction_id": "$local.e4e5596e-a9a0-48fd-97b3-5e0c6ec67e63" }, "room_id": "!wzIvctSysYGDinFtVb:matrix.org" } } ``` "Failed" threaded reply ```javascript { "<== DECRYPTED_EVENT ==>": { "content": { "msgtype": "m.text", "body": "> <@filipe:chat.filipesm.eu> E assim?\n\nOlá?", "format": "org.matrix.custom.html", "formatted_body": "Reproduction
Expected behavior
The reply would be threaded (and visible in other clients like Element, inside the thread)
Platform and versions
Additional context
No response