From 535d2771bb806475f2bff9487eec4b90d8578888 Mon Sep 17 00:00:00 2001 From: Blake Oliver Date: Wed, 29 Apr 2026 21:11:54 -0600 Subject: [PATCH] Update message IDs to be compatible with new game server --- CHANGELOG.md | 1 + KDChat/Networking/ProtocolTypes.swift | 14 +++++++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 94197ec..f0b9305 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ Some bugs fixed this release: * Fix DM's tab: add haptics, sound, and keyboard fix; fix display of unanswered DM conversations * Attempt to fix scroll to bottom not showing the last message until sending another * Scroll to bottom when the keyboard opens (any buffer and DMs tab) +* Fix message IDs to be compatible with new server ### Known bugs You've reported them but they aren't fixed just yet: diff --git a/KDChat/Networking/ProtocolTypes.swift b/KDChat/Networking/ProtocolTypes.swift index 74dc91e..0a64894 100644 --- a/KDChat/Networking/ProtocolTypes.swift +++ b/KDChat/Networking/ProtocolTypes.swift @@ -12,8 +12,8 @@ enum ServerMethod: Int32 { case leaveGame = 5 // 6 = TimeSync, 7 = RequestProfile case directMessage = 8 - // 9..20 = game-specific methods - case remoteFormEvent = 21 + // 9..21 = game-specific methods + case remoteFormEvent = 22 } // MARK: - Client Methods (server -> client) @@ -30,11 +30,11 @@ enum ClientMethod: Int32 { // 8 = Profile (unhandled) case say = 9 case loadInstance = 10 - // 11..32 = game-specific methods (unhandled) - case showRemoteForm = 33 - case updateRemoteForm = 34 - case closeRemoteForm = 35 - case disconnect = 36 + // 11..33 = game-specific methods (unhandled) + case showRemoteForm = 34 + case updateRemoteForm = 35 + case closeRemoteForm = 36 + case disconnect = 37 } // MARK: - Remote Form Event Types