Change random room name in meet

Is it (still) not possible to have a bit more control over this random room name. For instance not having things like ‘MoodyAnimalsEmancipateSeldom’ but ‘oogh2xeiHum0hoh9’

You go in modules then you execute “git clone https://github.com/jitsi/js-utils.git”.
But, we need to import the good one, so you need to change the import inside react/features/welcome/components/AbstractWelcomePage.js"

You replace this line :
import { generateRoomWithoutSeparator } from ‘js-utils/random’;

with this line :
import { generateRoomWithoutSeparator } from ‘…/…/…/…/modules/js-utils/random’;

In “random” you can modify a method that generate your name 's room.

That should be good now.

Cloned the modules directory and made the changes however, it is not reflecting on my page. Any help?

@Marco_Scammacca

vim modules/js-utils/random/roomNameGenerator.js

You can modify a classic room name generator.

for example if you want the room number to be numerical and only 10 random characters …
Do this:

add
const NUMBER = [
‘1’, ‘2’, ‘3’, ‘4’, ‘5’, ‘6’, ‘7’, ‘8’, ‘9’, ‘0’
];

and NUMBER in “CATEGORIES”

and then in PATTERNS write:

NUMBER__NUMBER__NUMBER__NUMBER__NUMBER__NUMBER__NUMBER__NUMBER__NUMBER__NUMBER

so, make the project.

Hi @Marco_Scammacca,

This is what I exactly did. However, it is not reflecting on the website. Do i need to update the package.json?

did you run the “make” command to compile the code?

no, can you show me an example of the command?

how did you download the project? git clone from github?

i did quick installation and then cloned js-utils. Saw the makefile here in github, shoud i put it in my repo?

You can try to run “make” command in ubuntu at this directory :
/usr/share/jitsi-meet

This is what I get when I run the make command

root@sparksoft:/home/ubuntu/jitsi-meet# make
./node_modules/.bin/webpack -p

Insufficient number of arguments or no entry found.
Alternatively, run 'webpack(-cli) --help' for usage info.

Hash: 20c1ebf67589371c73e6
Version: webpack 4.27.1
Time: 76ms
Built at: 05/23/2020 7:43:27 PM

ERROR in Entry module not found: Error: Can't resolve './src' in '/usr/share/jitsi-meet'
Makefile:19: recipe for target 'compile' failed
make: *** [compile] Error 2```

Just to provide an update, I also cloned webpack.config.js from github so I can run the make command. But when I do so, here is the error message and I think it didnt apply the changes that I made in roomNameGenerator.js:

        | ./modules/transport/index.js 1.26 KiB [built]
        | ./react/features/base/util/parseURLParams.js 1.46 KiB [built]
        | ./react/features/base/util/strings.web.js 240 bytes [built]
        | ./modules/API/constants.js 768 bytes [built]
        | ./react/features/base/util/index.js 178 bytes [built]
        | ./react/features/base/util/helpers.js 2.37 KiB [built]
        | ./react/features/base/util/httpUtils.js 1.06 KiB [built]
        | ./react/features/base/util/loadScript.web.js 555 bytes [built]
        | ./react/features/base/util/openURLInBrowser.web.js 183 bytes [built]
        | ./react/features/base/util/timeoutPromise.js 1.06 KiB [built]
        + 4 hidden modules
    
    ERROR in ./modules/transport/index.js
    Module not found: Error: Can't resolve 'js-utils/transport' in '/usr/share/jitsi-meet/
modules/transport'
     @ ./modules/transport/index.js 5:0-76 6:0-50 6:0-50 34:20-29 35:19-46
     @ ./modules/API/external/external_api.js
     @ ./modules/API/external/index.js
    
    ERROR in chunk external_api [entry]
    external_api.min.js
    /usr/share/jitsi-meet/node_modules/babel-loader/lib/index.js??ref--4!/usr/share/jitsi-
meet/modules/API/external/external_api.js 228ef96b445f2a778781cde8f8f18979
    Unexpected token (37:20)
    | function getJitsiMeetTransport() {
    |   if (!transport) {
    |     transport = new !(function webpackMissingModule() { var e = new Error("Cannot fi
nd module 'js-utils/transport'"); e.code = 'MODULE_NOT_FOUND'; throw e; }())({
    |       backend: new !(function webpackMissingModule() { var e = new Error("Cannot fin
d module 'js-utils/transport'"); e.code = 'MODULE_NOT_FOUND'; throw e; }())({
    |         postisOptions
Makefile:19: recipe for target 'compile' failed
make: *** [compile] Error 2
root@sparksoft:/home/ubuntu/jitsi-meet# --display-modules
--display-modules: command not found```

Hi, the quick install I think install the jitsi-meet under usr / share.
So the modification to the js-utils module you have to do it inside this solution. Then you can compile the project with the make command in usr / share / jitsi-meet.

I don’t understand why you also have usr / ubuntu / jitsi-meet …

Hi,

I just created a symlink for jitsi that’s why it is under usr/ubuntu.