Skip to content

Commit

Permalink
expanding min length method for VC titles
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinSchuhmacher committed Jan 20, 2025
1 parent e4a3f51 commit 69a4712
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,11 @@ export class VideoConferenceService {

public async getScopeInfo(userId: EntityId, scopeId: string, scope: VideoConferenceScope): Promise<ScopeInfo> {
const ensureMinTitleLength = (title: string): string => {
return title.length === 1 ? title + '_' : title;
const trimmedTitle = title.trim();
if (trimmedTitle.length >= 2) {
return trimmedTitle;
}
return trimmedTitle.padEnd(2, '_');
};

switch (scope) {
Expand Down

0 comments on commit 69a4712

Please sign in to comment.