Need to fix index load issues

This commit is contained in:
gamer147
2026-05-23 14:50:16 -04:00
parent bf6ddf5428
commit 631e42289a
12 changed files with 351 additions and 119 deletions

View File

@@ -48,13 +48,20 @@ public class GameStartResponse
[Key("transition_account_data")]
public List<TransitionAccountData> TransitionAccountData { get; set; } = new();
// INTENTIONALLY OMITTED: `rewrite_viewer_id` and `account_delete_reservation_status`.
// Both are presence-checked by the client via `Keys.Contains(...)` + `.ToInt()` with no
// null guard. MessagePack-CSharp writes [Key] properties unconditionally (null → Nil),
// and the System.Text.Json `WhenWritingNull` ignore only affects the plain-JSON path.
// So including these as nullable properties is a guaranteed NRE on the encrypted client
// path. We don't need them — the client tolerates their absence — so don't declare them.
// Re-add only if we have a real value to send.
/// <summary>
/// When present, client overwrites <c>Certification.ViewerId</c> with this value. Optional
/// — leave null to omit. The serialization pipeline (JSON + msgpack via the translation
/// middleware) drops null properties end-to-end, so the client sees the key as absent.
/// </summary>
[Key("rewrite_viewer_id")]
public long? RewriteViewerId { get; set; }
/// <summary>
/// Presence indicates the user has applied for account deletion (value ignored by client at
/// this stage). Optional — leave null to omit.
/// </summary>
[Key("account_delete_reservation_status")]
public int? AccountDeleteReservationStatus { get; set; }
// --- Agreement / consent state (all required) ---