Promote development → master (initial production release: pre-release line + Stage 18) #104
@@ -341,7 +341,11 @@ async function adoptSession(s: Session): Promise<void> {
|
|||||||
await saveSession(s);
|
await saveSession(s);
|
||||||
try {
|
try {
|
||||||
app.profile = await gateway.profileGet();
|
app.profile = await gateway.profileGet();
|
||||||
if (!app.localeLocked) setLocale(localeFrom(app.profile.preferredLanguage, app.locale));
|
// The live interface language follows the device — the explicit local choice (locked, saved
|
||||||
|
// in prefs) or the system guess made at bootstrap — and is no longer overridden from the
|
||||||
|
// account here. preferred_language stays the user's saved choice (written from Settings,
|
||||||
|
// and used for out-of-app push routing), but the Telegram bot a user signs in through must
|
||||||
|
// not dictate the UI: a ru-bot launch on an English system stays English.
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
handleError(err);
|
handleError(err);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user