Auto-register if displayName URL param is given
Fixes https://github.com/vector-im/element-call/issues/442
This commit is contained in:
parent
a3e4d6998f
commit
5784a005dc
3 changed files with 32 additions and 34 deletions
|
|
@ -19,7 +19,6 @@ import {
|
|||
adjectives,
|
||||
colors,
|
||||
animals,
|
||||
Config,
|
||||
} from "unique-names-generator";
|
||||
|
||||
const elements = [
|
||||
|
|
@ -143,12 +142,11 @@ const elements = [
|
|||
"oganesson",
|
||||
];
|
||||
|
||||
export function generateRandomName(config: Config): string {
|
||||
export function generateRandomName(): string {
|
||||
return uniqueNamesGenerator({
|
||||
dictionaries: [colors, adjectives, animals, elements],
|
||||
style: "lowerCase",
|
||||
length: 3,
|
||||
separator: "-",
|
||||
...config,
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue