Skip to content
Snippets Groups Projects
Commit 771ce12a authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Fixed a disagreement between core and client about how to serialize

features
parent 0458129d
No related branches found
No related tags found
No related merge requests found
......@@ -11,12 +11,12 @@ object ClientInitSerializer : HandshakeMessageSerializer<HandshakeMessage.Client
"MsgType" to QVariant_("ClientInit", Type.QString),
"ClientVersion" to QVariant_(data.clientVersion, Type.QString),
"ClientDate" to QVariant_(data.buildDate, Type.QString),
"ClientFeatures" to QVariant_(data.clientFeatures?.toInt(), Type.UInt)
"Features" to QVariant_(data.clientFeatures?.toInt(), Type.UInt)
)
override fun deserialize(data: QVariantMap) = HandshakeMessage.ClientInit(
clientVersion = data["ClientVersion"].value(),
buildDate = data["ClientDate"].value(),
clientFeatures = Flags.Companion.of(data["ClientFeatures"].value(0))
clientFeatures = Flags.Companion.of(data["Features"].value(0))
)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment