-
Notifications
You must be signed in to change notification settings - Fork 11
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
Put a limit to founder if target amount was not reached #227
Conversation
dangershony
commented
Dec 18, 2024
@@ -82,6 +83,7 @@ public Task LookupInvestmentRequestsAsync(string nostrPubKey, string? senderNpub | |||
{ | |||
var subscription = nostrClient.Streams.EventStream | |||
.Where(_ => _.Subscription == subscriptionKey) | |||
.Where(_ => _.Event.Tags.FindFirstTagValue("subject") == "Investment offer") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DavidGershony what do you think about this as filter on the subscription?
I suppose the filter only actually happens in the client not the server, I am not sure it is possible to filter based on subject.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It happens on the client side, if you want to filter on the server side you need to add it to the filter we send to the relay, and you can add tags to the filter so should be possible to filter by subject.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will try this next
…nder instead of just the trx hex