diff --git a/VERSION.properties b/VERSION.properties index fee81775..8441b46d 100644 --- a/VERSION.properties +++ b/VERSION.properties @@ -1,2 +1,2 @@ -client.version=1.20.67 +client.version=1.20.68 server.version=1.16.32 diff --git a/shine-UI/js/i18n/locales/en.json b/shine-UI/js/i18n/locales/en.json index 00330108..6dfb3a27 100644 --- a/shine-UI/js/i18n/locales/en.json +++ b/shine-UI/js/i18n/locales/en.json @@ -2267,14 +2267,12 @@ "chat_view": { "security_notice": { "title": "Private chat security", - "encryption": "Messages in this chat are encrypted on the participants' devices.", - "servers": "The server delivers encrypted data but should not be able to read the conversation.", - "derivation": "Chat keys are derived from account keys and stored on the devices.", - "rotation": "After key rotation, some messages may require the keys to be received again.", - "source": "Before sending, make sure you are communicating with the intended user and server.", - "warning_label": "Important:", - "warning": "never share private keys or your account password with anyone.", - "recovery": "Access recovery depends on your saved keys and password. Keep them secure." + "zero_knowledge_label": "Zero-Knowledge Architecture:", + "zero_knowledge": "We don't trust servers. SHiNE does not store your private keys and has no technical access to chat content.", + "self_custody_label": "Self-Custody & Open Source:", + "self_custody": "Your key is generated locally from your login and password. No hidden algorithms — the code is fully open.", + "control_label": "Absolute Control:", + "control": "Forget your password and you lose access to your messages forever." }, "text_002": "Muted", "text_015": "Search", diff --git a/shine-UI/js/i18n/locales/ru.json b/shine-UI/js/i18n/locales/ru.json index 2e6b5407..55898bae 100644 --- a/shine-UI/js/i18n/locales/ru.json +++ b/shine-UI/js/i18n/locales/ru.json @@ -2400,14 +2400,12 @@ "chat_view": { "security_notice": { "title": "Ваша переписка защищена сквозным шифрованием", - "encryption": "Все личные сообщения шифруются с использованием современных криптографических алгоритмов. Ключи шифрования хранятся ТОЛЬКО на устройствах участников переписки.", - "servers": "Сервера SHiNE не имеют ваших приватных ключей и даже технически никак не могут прочитать ваши сообщения.", - "derivation": "Ваш ключ шифрования высчитывается из вашего логина и пароля", - "rotation": "При смене пароля перекодирование всех ваших сообщений со старого пароля на новый происходит на устройстве пользователя.", - "source": "Код наших приложений полностью открыт и вы легко можете проверить всё это сами.", - "warning_label": "Важно:", - "warning": "если вы забудете свой пароль, восстановить доступ к вашей зашифрованной переписке будет невозможно.", - "recovery": "SHiNE не хранит ваши секретные ключи и никак не сможет помочь вам восстановить вашу переписку" + "zero_knowledge_label": "Zero-Knowledge Architecture:", + "zero_knowledge": "Мы не доверяем серверам. SHiNE не хранит ваши приватные ключи и технически не имеет доступа к содержимому чатов.", + "self_custody_label": "Self-Custody & Open Source:", + "self_custody": "Ваш ключ генерируется локально из вашего логина и пароля. Никаких скрытых алгоритмов — код полностью открыт.", + "control_label": "Absolute Control:", + "control": "Забудете пароль — навсегда потеряете доступ к переписке." }, "text_001": "Чат", "text_002": "Без звука", diff --git a/shine-UI/js/pages/chat-view.js b/shine-UI/js/pages/chat-view.js index 1a62afdc..3a40735d 100644 --- a/shine-UI/js/pages/chat-view.js +++ b/shine-UI/js/pages/chat-view.js @@ -1185,27 +1185,17 @@ function createDmEncryptionNotice() { heading.textContent = `🔒 ${t('screens.chat_view.security_notice.title')}`; notice.append(heading); - for (const text of [ - t('screens.chat_view.security_notice.encryption'), - t('screens.chat_view.security_notice.servers'), - t('screens.chat_view.security_notice.derivation'), - t('screens.chat_view.security_notice.rotation'), - t('screens.chat_view.security_notice.source'), + for (const [label, text] of [ + [t('screens.chat_view.security_notice.zero_knowledge_label'), t('screens.chat_view.security_notice.zero_knowledge')], + [t('screens.chat_view.security_notice.self_custody_label'), t('screens.chat_view.security_notice.self_custody')], + [t('screens.chat_view.security_notice.control_label'), t('screens.chat_view.security_notice.control')], ]) { const paragraph = document.createElement('p'); - paragraph.textContent = text; + const strong = document.createElement('strong'); + strong.textContent = `${label} `; + paragraph.append(strong, document.createTextNode(text)); notice.append(paragraph); } - - const warning = document.createElement('p'); - const warningLabel = document.createElement('strong'); - warningLabel.textContent = `${t('screens.chat_view.security_notice.warning_label')} `; - warning.append(warningLabel, document.createTextNode(t('screens.chat_view.security_notice.warning'))); - notice.append(warning); - - const recovery = document.createElement('p'); - recovery.textContent = t('screens.chat_view.security_notice.recovery'); - notice.append(recovery); return notice; } diff --git a/shine-UI/tests/dm-security-notice.test.mjs b/shine-UI/tests/dm-security-notice.test.mjs index 5224691b..ecc6e277 100644 --- a/shine-UI/tests/dm-security-notice.test.mjs +++ b/shine-UI/tests/dm-security-notice.test.mjs @@ -11,23 +11,21 @@ const en = JSON.parse(source('../js/i18n/locales/en.json')); for (const [locale, language] of [['ru', ru], ['en', en]]) { test(`в ${locale} есть полный текст предупреждения DM`, () => { const note = language.screens.chat_view.security_notice; - for (const key of ['title', 'encryption', 'servers', 'derivation', 'rotation', 'source', 'warning_label', 'warning', 'recovery']) { + for (const key of ['title', 'zero_knowledge_label', 'zero_knowledge', 'self_custody_label', 'self_custody', 'control_label', 'control']) { assert.ok(typeof note[key] === 'string' && note[key].trim(), `${locale}/${key}`); } }); } -test('русский текст DM соответствует утверждённой пользователем редакции от 13.11.2026', () => { +test('русский текст DM соответствует утверждённой пользователем редакции от 27.11.2026', () => { assert.deepEqual(ru.screens.chat_view.security_notice, { "title": "Ваша переписка защищена сквозным шифрованием", - "encryption": "Все личные сообщения шифруются с использованием современных криптографических алгоритмов. Ключи шифрования хранятся ТОЛЬКО на устройствах участников переписки.", - "servers": "Сервера SHiNE не имеют ваших приватных ключей и даже технически никак не могут прочитать ваши сообщения.", - "derivation": "Ваш ключ шифрования высчитывается из вашего логина и пароля", - "rotation": "При смене пароля перекодирование всех ваших сообщений со старого пароля на новый происходит на устройстве пользователя.", - "source": "Код наших приложений полностью открыт и вы легко можете проверить всё это сами.", - "warning_label": "Важно:", - "warning": "если вы забудете свой пароль, восстановить доступ к вашей зашифрованной переписке будет невозможно.", - "recovery": "SHiNE не хранит ваши секретные ключи и никак не сможет помочь вам восстановить вашу переписку" + "zero_knowledge_label": "Zero-Knowledge Architecture:", + "zero_knowledge": "Мы не доверяем серверам. SHiNE не хранит ваши приватные ключи и технически не имеет доступа к содержимому чатов.", + "self_custody_label": "Self-Custody & Open Source:", + "self_custody": "Ваш ключ генерируется локально из вашего логина и пароля. Никаких скрытых алгоритмов — код полностью открыт.", + "control_label": "Absolute Control:", + "control": "Забудете пароль — навсегда потеряете доступ к переписке." }); // Текст должен отображаться напрямую через textContent, без HTML-сущностей. for (const text of Object.values(ru.screens.chat_view.security_notice)) {