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

feat: extend kind list, kind types, kind translaions #3179

Merged
merged 3 commits into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/extension/background-script/actions/nostr/enable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,17 @@ const enable = async (message: MessageAllowanceEnable, sender: Sender) => {
3, // Update follow list
4, // Encrypted direct messages
7, // Reaction
6, // Repost
pavanjoshi914 marked this conversation as resolved.
Show resolved Hide resolved
9734, // Zap request
10000, // mute list
10002, // Relay list metadata
10003, // bookmarks
pavanjoshi914 marked this conversation as resolved.
Show resolved Hide resolved
22242, // Client relay authentication
30023, // Long-form content
30008, // Manage profile badges
30009, // Badge definition
30078, // App Data
10000135, // Upload Chunk/Image Upload
];
reasonableEventKindIds.forEach(async (kindId) => {
await addPermissionFor(
Expand Down
18 changes: 18 additions & 0 deletions src/extension/providers/nostr/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,25 @@ export enum EventKind {
Contacts = 3,
DM = 4,
Deleted = 5,
Repost = 6,
pavanjoshi914 marked this conversation as resolved.
Show resolved Hide resolved
React = 7,
AwardBadge = 8,
CreateChannel = 40,
UpdateChannel = 41,
SendChannelMessage = 42,
HideChannelMessage = 43,
MuteChannelUser = 44,
ReportNote = 1984,
ZapRequest = 9734,
ZapReceipt = 9735,
MuteList = 10000,
RelayList = 10002,
Bookmarks = 10003,
Authenticate = 22242,
RemoteSign = 24133,
ProfileBadge = 30008,
CreateBadge = 30009,
LongNote = 30023,
AppData = 30078,
UploadChunk = 10000135,
}
8 changes: 8 additions & 0 deletions src/i18n/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -1039,10 +1039,18 @@
"title": "zap receipt",
"description": "Display a confirmation of a paid lightning invoice"
},
"10000": {
"title": "mute list",
"description": "Blocks spammers and bad actors from your feed"
},
"10002": {
"title": "relay list",
"description": "Update preferred relays for discovering your notes and receiving others' notes"
},
"10003": {
"title": "bookmarks",
"description": "Bookmark user posts"
},
pavanjoshi914 marked this conversation as resolved.
Show resolved Hide resolved
"22242": {
"title": "authenticate",
"description": "Authenticate to a relay"
Expand Down
Loading