🐛 Fix gateway

This commit is contained in:
2025-11-30 17:51:27 +08:00
parent fdd14b860e
commit a46de4662c

View File

@@ -42,8 +42,8 @@ public class WebSocketController(
var accountId = Guid.Parse(currentUser.Id!); var accountId = Guid.Parse(currentUser.Id!);
var deviceId = currentSession.Challenge?.DeviceId ?? Guid.NewGuid().ToString(); var deviceId = currentSession.Challenge?.DeviceId ?? Guid.NewGuid().ToString();
if (string.IsNullOrEmpty(deviceId)) // TODO temporary fix due to the server update
return BadRequest("Unable to get device ID from session."); if (string.IsNullOrEmpty(deviceId)) deviceId = Guid.NewGuid().ToString().Replace("-", "");
if (deviceAlt is not null) if (deviceAlt is not null)
deviceId = $"{deviceId}+{deviceAlt}"; deviceId = $"{deviceId}+{deviceAlt}";