From b77a4573d1f426981fd953991216fd3478a1620d Mon Sep 17 00:00:00 2001
From: sandtechnology <a1294790523@hotmail.com>
Date: Sun, 18 Jun 2023 19:52:33 +0800
Subject: [PATCH] [core] Add missed KEY_DEVICE_INFO context for
 qSecurityGetSign

---
 .../commonMain/kotlin/network/protocol/packet/OutgoingPacket.kt  | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mirai-core/src/commonMain/kotlin/network/protocol/packet/OutgoingPacket.kt b/mirai-core/src/commonMain/kotlin/network/protocol/packet/OutgoingPacket.kt
index 01211713c..b71f02a62 100644
--- a/mirai-core/src/commonMain/kotlin/network/protocol/packet/OutgoingPacket.kt
+++ b/mirai-core/src/commonMain/kotlin/network/protocol/packet/OutgoingPacket.kt
@@ -325,6 +325,7 @@ internal inline fun BytePacketBuilder.writeSsoPacket(
             EncryptServiceContext(client.uin, buildTypeSafeMap {
                 set(EncryptServiceContext.KEY_APP_QUA, "V1_AND_SQ_8.9.58_4106_YYB_D") // 8.9.58
                 set(EncryptServiceContext.KEY_CHANNEL_PROXY, createChannelProxy(client.bot))
+                set(EncryptServiceContext.KEY_DEVICE_INFO, client.device)
                 set(EncryptServiceContext.KEY_QIMEI36, client.qimei36 ?: "")
             }),
             sequenceId,