chat: say 'not implemented yet' instead of 'not yet brokered'
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user