Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add missing NostrEvent subclass mappings from the EventKind enum #148

Merged
merged 1 commit into from
Apr 20, 2024

Conversation

tyiu
Copy link
Contributor

@tyiu tyiu commented Apr 19, 2024

No description provided.

@tyiu tyiu requested a review from bryanmontz April 19, 2024 13:58
case .muteList: return 10000
case .bookmarksList: return 10003
case .longformContent: return 30023
case .setMetadata: return 0
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No functional changes on rawValue, only indentation for readability.

}

/// The ``NostrEvent`` subclass associated with the kind.
public var classForKind: NostrEvent.Type {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I moved classForKind from EventKindMapper in RelayResponse to here for colocation purposes so that it's easier to maintain the EventKind enum as we add more.

@tyiu tyiu force-pushed the tyiu/fix-class-for-kind branch from 31500a2 to 4223699 Compare April 19, 2024 14:13
@tyiu tyiu force-pushed the tyiu/fix-class-for-kind branch from 4223699 to 9c782fa Compare April 19, 2024 14:15
@bryanmontz bryanmontz merged commit 0d0edc7 into main Apr 20, 2024
4 checks passed
@bryanmontz bryanmontz deleted the tyiu/fix-class-for-kind branch April 20, 2024 11:53
RandyMcMillan pushed a commit to RandyMcMillan/nostr-sdk-ios that referenced this pull request Sep 1, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants