From 886aa451d2efd3b47a956cd7cc935c5659b6359b Mon Sep 17 00:00:00 2001 From: gagik Date: Thu, 7 Nov 2024 00:59:36 +0100 Subject: [PATCH] better comments --- src/participant/participant.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/participant/participant.ts b/src/participant/participant.ts index 7caf5366b..dc64ed4d6 100644 --- a/src/participant/participant.ts +++ b/src/participant/participant.ts @@ -943,7 +943,9 @@ export default class ParticipantController { stream, }); - // databaseName will be undefined if some error occurs. + // databaseName will be undefined if it cannot be found from + // the metadata or history, in which case the user will be prompted + // to select it or if some error occurs. if (!databaseName) { return { databaseName, collectionName }; } @@ -1233,7 +1235,7 @@ export default class ParticipantController { }); // If either the database or collection name could not be automatically picked - // then the user has been prompted to select one manually. + // then the user has been prompted to select one manually or been presented with an error. if (databaseName === undefined || collectionName === undefined) { return namespaceRequestChatResult({ databaseName,