improvement(mothership): do not silently re-route missing stream id (#4295)

This commit is contained in:
Vikhyath Mondreti
2026-04-24 16:37:40 -07:00
committed by GitHub
parent e6fefc863c
commit f16d17ba49

View File

@@ -165,6 +165,7 @@ function isStreamRef(value: unknown): value is MothershipStreamV1StreamRef {
return (
isRecord(value) &&
typeof value.streamId === 'string' &&
value.streamId.length > 0 &&
isOptionalString(value.chatId) &&
isOptionalString(value.cursor)
)