summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-04-04 00:16:10 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-04-04 00:16:10 +1000
commit3e9e8aac3ba0f2890a7eceef9fba13d9b17f6494 (patch)
tree0e3344e7d23baa434f725afe0c007153b493670f /src
parentSend d: {} in heartbeat ack (diff)
downloadserver-3e9e8aac3ba0f2890a7eceef9fba13d9b17f6494.tar.xz
Don't send random read state / guild settings version numbers
Diffstat (limited to 'src')
-rw-r--r--src/gateway/opcodes/Identify.ts7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/gateway/opcodes/Identify.ts b/src/gateway/opcodes/Identify.ts
index f035fe15..2e661a14 100644
--- a/src/gateway/opcodes/Identify.ts
+++ b/src/gateway/opcodes/Identify.ts
@@ -389,15 +389,12 @@ export async function onIdentify(this: WebSocket, data: Payload) {
 		read_state: {
 			entries: read_states,
 			partial: false,
-			// TODO: what is this magic number?
-			// Isn't `version` referring to the number of changes since this obj was created?
-			// Why do we send this specific version?
-			version: 304128,
+			version: 0, // TODO
 		},
 		user_guild_settings: {
 			entries: user_guild_settings_entries,
 			partial: false,
-			version: 642, // TODO: see above
+			version: 0, // TODO
 		},
 		private_channels: channels,
 		session_id: this.session_id,