cinnyapp / cinny

Yet another matrix client
https://cinny.in
GNU Affero General Public License v3.0
1.86k stars 239 forks source link

Only one homeserver option shouldn't show a dropdown #1038

Closed viasux closed 1 month ago

viasux commented 1 year ago

Describe the bug

When you choose only one homeserver as an option in cinny's config file, as well as making it so users can't type in the homeserver box, there shouldn't be a dropdown at all.

image

Reproduction

  1. Install cinny
  2. Configure cinny to only have one homeserver and not allow users to set their own
  3. See issue on signup

Expected behavior

I expect there to not be a dropdown on the right for homeservers when there's only one option

Platform and versions

1. OS: Windows 10
2. Browser: Librewolf
3. Cinny Version: 2.2.2
4. Matrix Homeserver: kitty.social

Additional context

No response

centralscrutinizer21 commented 1 year ago

Can i ask how you edited your config.json in order to achieve this? When I put my server it always fall back to matrix.org

kfiven commented 1 year ago

You probably missing a comma somewhere @centralscrutinizer21 .json is very strict about that.

centralscrutinizer21 commented 1 year ago

@kfiven can you post an example of a config.json set to show a single server?

ajbura commented 1 year ago

@centralscrutinizer21

{
  "defaultHomeserver": 0,
  "homeserverList": [
    "xyz.server"
  ],
  "allowCustomHomeservers": true
}
Domoel commented 1 year ago

Could someone explain how to apply the config.json if one is using a docker compose setup? I tried to mount the file directly to the root directory of the docker directory with hte following entry:

    volumes:
      - /volume2/docker/test/config.json:/config.json

However it does not work. Could somebody explain me how to deal with this issue?

Edit: I was able to fix the issue. Instead of mounting it directly with ./cinny/config.json:/config.jsonone must mount the file into the following directory ./cinny/config.json:/app/config.json. After cookie deletion everything was there.