chat: say 'not implemented yet' instead of 'not yet brokered'

This commit is contained in:
2026-10-17 10:44:06 +01:00
parent 7875762b9a
commit 8692561bc7
+2 -2
View File
@@ -451,11 +451,11 @@ func handleChat(ctx context.Context, request protocol.Message, broker chatBroker
handleChatSessions(ctx, request, broker, hub, owners, clientID, write)
return true
case protocol.ChatCreate:
// chat_create remains declared for the client but not yet brokered.
// chat_create remains declared for the client but is not implemented yet.
// Answer explicitly so the client never mistakes the generic Pong for a
// chat reply, and the boundary stays visible instead of silently
// dropping.
_ = write(protocol.Message{Type: protocol.Error, ID: request.ID, Error: "chat_create is not yet brokered"})
_ = write(protocol.Message{Type: protocol.Error, ID: request.ID, Error: "creating a chat is not implemented yet"})
return true
}
return false