Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Identify Cinny desktop as such, rather than as Cinny Web #375

Closed
Porkepix opened this issue Oct 14, 2024 · 5 comments
Closed

Identify Cinny desktop as such, rather than as Cinny Web #375

Porkepix opened this issue Oct 14, 2024 · 5 comments

Comments

@Porkepix
Copy link

Describe the problem

Currently, Cinny desktop identify itself as "Cinny Web" by default in the list of Matrix sessions.

Describe the solution you'd like

Showing as "Cinny desktop" by default would be less confusing (it could even include OS and/or a unique ID).

Alternatives considered

None, it's just an improvement over the current situation.

Additional context

I thought there may have been some variables that could be used for that purpose, but only found https://github.com/cinnyapp/cinny-desktop/blob/main/config.json which seems identical to the one at https://github.com/cinnyapp/cinny/blob/dev/config.json so it wasn't the way.

Searching through the repo with "Cinny Web" though I could find from the main repo these results:

src/client/state/cons.js
9:  DEVICE_DISPLAY_NAME: 'Cinny Web',

src/app/pages/auth/register/PasswordRegisterForm.tsx
112:        initial_device_display_name: 'Cinny Web',
253:      initial_device_display_name: 'Cinny Web',

src/app/pages/auth/login/PasswordLoginForm.tsx
136:      initial_device_display_name: 'Cinny Web',
154:      initial_device_display_name: 'Cinny Web',
166:      initial_device_display_name: 'Cinny Web',

src/app/pages/auth/login/TokenLogin.tsx
60:      initial_device_display_name: 'Cinny Web',

Which led me to search for DEVICE_DISPLAY_NAME found only at

src/client/state/cons.js
9:  DEVICE_DISPLAY_NAME: 'Cinny Web',

This seems declared but never used.

On the other hand, looking for initial_device_display_name
found many matches where this is set manually everytime:

❯  rg initial_device_display_name
src/app/pages/auth/register/PasswordRegisterForm.tsx
112:        initial_device_display_name: 'Cinny Web',
253:      initial_device_display_name: 'Cinny Web',

src/app/pages/auth/login/PasswordLoginForm.tsx
136:      initial_device_display_name: 'Cinny Web',
154:      initial_device_display_name: 'Cinny Web',
166:      initial_device_display_name: 'Cinny Web',

src/app/pages/auth/login/TokenLogin.tsx
60:      initial_device_display_name: 'Cinny Web',

So I was wondering if DEVICE_DISPLAY_NAME already set shouldn't be used instead of redeclaring this everytime?
And if there would be a way to declare that variable for the Desktop application so that it's passed at cinyapp during build and use something else?

@kfiven
Copy link
Collaborator

kfiven commented Oct 14, 2024

duplicate of #64

@kfiven kfiven closed this as not planned Won't fix, can't repro, duplicate, stale Oct 14, 2024
@Porkepix
Copy link
Author

@kfiven Then would you want most of the message to be replicated in the other issue/another issue in Cinny app repo?

Because here I was also pointing on a seemingly unused variable, and to placed where it'd make sense to have it used.

(Note though that I'm absolutely not familiar of JS and its families codebases).

@kfiven
Copy link
Collaborator

kfiven commented Oct 14, 2024

I don't think there's a need to mention as the issue is already linked in that issue now.

@Porkepix
Copy link
Author

Yes but I mean, the possible unused variables and placed it could be used belongs to the other repo, if that was worth something, right?

@kfiven
Copy link
Collaborator

kfiven commented Oct 14, 2024

IMO it's not worth filling issue for that, when somebody (hopefully) will try to fix this issue, they will have to play with that code anyways and as it is now, it's not causing any issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants