fix: show 'Encrypted direct messages not supported' for kind 4 events (#754)

* fix: show 'Encrypted direct messages not supported' for kind 4 events (#753)

Co-authored-by: The Daniel <dmnyc@users.noreply.github.com>

* i18n: add translations for 'Encrypted direct messages not supported'

Also use kinds.EncryptedDirectMessage constant instead of magic number 4.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: The Daniel 🖖 <3638467+dmnyc@users.noreply.github.com>
Co-authored-by: The Daniel <dmnyc@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Cody Tseng 2026-02-18 13:43:19 +08:00 committed by GitHub
parent 2fbbe6ce1d
commit ae8a534103
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 33 additions and 3 deletions

View file

@ -180,6 +180,7 @@ export default {
'Supported NIPs': 'NIPهای پشتیبانی شده',
'Open in a': 'باز کردن در {{a}}',
'Cannot handle event of kind k': 'نمی‌توان رویداد از نوع {{k}} را پردازش کرد',
'Encrypted direct messages not supported': 'پیام‌های مستقیم رمزگذاری‌شده پشتیبانی نمی‌شوند',
'Sorry! The note cannot be found 😔': 'متأسفانه! یادداشت یافت نشد 😔',
'This user has been muted': 'این کاربر بی‌صدا شده است',
Wallet: 'کیف پول',