You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to some investigation done in cinnyapp/cinny#2047, MatrixEvent.getOriginalContent seems to be lying about the type of the returned content, more specifically when it returns an IClearEvent but says it returns an IContent (I think, please forgive any mistakes).
This seems to be leading to some clients (or at least Cinny) to be unable to properly thread messages, because they fail to understand when a message is threaded or not.
There are more details in the issue linked above, but I can give more information if needed.
Thanks!
The text was updated successfully, but these errors were encountered:
filipesmedeiros
changed the title
MatrixEvent.getOriginalContent seems to be lying about types
MatrixEvent.getOriginalContent seems to be lying about types, hindering threading in some clients
Jan 20, 2025
As you can see by the code, it does not return IClearEvent, it returns IClearEvent["content"] which is a subset of IContent - given IContent has all of its fields optional they are exchangeable like this
According to some investigation done in cinnyapp/cinny#2047,
MatrixEvent.getOriginalContent
seems to be lying about the type of the returned content, more specifically when it returns anIClearEvent
but says it returns anIContent
(I think, please forgive any mistakes).This seems to be leading to some clients (or at least Cinny) to be unable to properly thread messages, because they fail to understand when a message is threaded or not.
There are more details in the issue linked above, but I can give more information if needed.
Thanks!
The text was updated successfully, but these errors were encountered: