dendrite
dendrite copied to clipboard
Use mautrix for tag events instead of deprecated matrix/go
The iOS crashes because dendrite is using an old framework that is deprecated. For reference look here. This PR just fixes this.
Signed-off-by: Dario <[email protected]>
The Spec states order is a number in the range of 0-1, while the iOS SDK is using string.
https://spec.matrix.org/latest/client-server-api/#mtag
So imo this should be fixed in the iOS SDK.
The Spec states
orderis a number in the range of 0-1, while the iOS SDK is using string. https://spec.matrix.org/latest/client-server-api/#mtagSo imo this should be fixed in the iOS SDK.
Indeed, but the new library (mautrix) is also using a string or json.Number, so it might be serialized as string and used as a number. Probably because a valid value could be 0.0000004200000000000069, and the precision of decoding into a float32 might not be enough. Therefore the usage of strings.
I think the change is legit, but both libraries use string (or json.Number) to improve the precision of encoding/decoding the message.
Well, sorry for that, but Element iOS is not spec conform.