mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-27 15:39:47 +01:00
The generic data channel message works fine for receiving, but it could not be used for sending, because the serialization of the payload failed (the generated JsonMapper did not call 'writeFieldName("payload")', apparently because the payload was defined as "Any", so there was no field name set when serializing the payload contents). It is very likely that the nick data channel message, which has an explicit payload type and was used only for sending but not for receiving, was added back in the day just to work around that limitation. However, due to how the JsonMappers are generated if several properties with the same name are defined only the first one will be parsed, and only those with a value will be serialized. This makes possible to define first a generic payload property and then a payload property with an explicit type to have a single data channel message class that can be used both for sending and receiving. As the nick data channel message is now no longer needed it was removed. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com> |
||
---|---|---|
.. | ||
talk |