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:
parent
2fbbe6ce1d
commit
ae8a534103
20 changed files with 33 additions and 3 deletions
|
|
@ -110,5 +110,13 @@ export default function ContentPreview({
|
|||
return <FollowPackPreview event={event} className={className} />
|
||||
}
|
||||
|
||||
return <div className={className}>[{t('Cannot handle event of kind k', { k: event.kind })}]</div>
|
||||
return (
|
||||
<div className={className}>
|
||||
[
|
||||
{event.kind === kinds.EncryptedDirectMessage
|
||||
? t('Encrypted direct messages not supported')
|
||||
: t('Cannot handle event of kind k', { k: event.kind })}
|
||||
]
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue