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

[Bug]: always opens #russian chat tab #3213

Open
adminxp opened this issue Jun 23, 2024 · 4 comments
Open

[Bug]: always opens #russian chat tab #3213

adminxp opened this issue Jun 23, 2024 · 4 comments
Labels

Comments

@adminxp
Copy link

adminxp commented Jun 23, 2024

Describe the Bug

always opens #russian chat tab even if it is removed from autojoin channels.
faf client ignores settings and if you have russian IP opens extra chat tab regardless of settings u make

Log file or Error Message

1

Reproduce the bug

1

Expected Behavior

it should not open any extra chat tabs and follow user's settings

Screenshots

No response

Additional context

No response

Which Operating System are you using?

Windows

@adminxp adminxp added the bug label Jun 23, 2024
@sulikdan
Copy link
Contributor

@adminxp
is it still going on? Are you sure it is also related to russian IP?
I tried to add chat channel(to settings) -> closed client -> opened .. chat (it was tthere) -> removed the channel -> closed client -> opened again ... the removed chat was not opened.

@Sheikah45
Copy link
Member

Sheikah45 commented Sep 21, 2024

It partially has to do with if the user has their os language set to russian I believe or if their IP is russian

@adminxp
Copy link
Author

adminxp commented Sep 22, 2024

@adminxp is it still going on? Are you sure it is also related to russian IP? I tried to add chat channel(to settings) -> closed client -> opened .. chat (it was tthere) -> removed the channel -> closed client -> opened again ... the removed chat was not opened.

FAF always opens Russian tab for me and have been opening it since its been initially made. Faf client does not follow settings to remove it from autojoin. I don't know how it works from IP or from OS language but it should follow settings in client. I have been waiting for years that it will be fixed...

@Ivan-Shaml
Copy link

Ivan-Shaml commented Jan 2, 2025

I don't find this behavior as a bug, but rather as feature, at least it looks intentionally implemented this way.

As far as I see, it uses the JVM/Operating System locale settings and checks it against hardcoded map of locales >> language chat channels. If the locale is in the map, you get auto-joined to the respective channel. IP address has nothing to do here.

This behavior is not influenced by the client.prefs (user controlled settings) since its in the default constructor of the ChatPrefs class.
See: https://github.com/FAForever/downlords-faf-client/blob/develop/src/main/java/com/faforever/client/preferences/ChatPrefs.java#L57

Maybe additional setting can be added, to enable/disable this auto-join by locale ?

P.S. Speaking of bugs, a potential bug can be this code here: https://github.com/FAForever/downlords-faf-client/blob/develop/src/main/java/com/faforever/client/i18n/I18n.java#L44

Since the Locale.setDefault in I18n I believe is called after the Locale.getDefault in ChatPrefs, you cannot influence the auto-join based on locale, specified in the settings, but rather always the OS one gets picked in ChatPrefs, but that is nitpicking 😁 😁

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

No branches or pull requests

4 participants