Add methods for invites #19

Closed
notplants wants to merge 2 commits from invites into friends-requests
Owner

This PR adds methods for creating and accepting invites.

The create invite method works, but doesn't seem to be picking up the "uses" argument I'm sending. Maybe I'm not sending it in the right form. Even though I'm passing 100 as the value for uses, I can see in the go-sbot log:
t=2h2m24.220677722s unit=legacyInvites invite=created uses=1

Notably this is also what I see in the go-sbot log if I call ./sbotcli invite create --uses 100, which is the documented way to call it via sbotcli, which makes me think its not an error in how we are passing uses, but something potentially deeper in sbot.

A second issue: the invite use command currently produces the error:
Application error: Sbot returned an error response: muxrpc: no such command: invite.use

I also see in sbotcli that invite accept is TODO https://github.com/cryptoscope/ssb/blob/master/cmd/sbotcli/main.go#L575, but not sure if invite use is also TODO as a muxrpc call or if it expects a different form.

I added this to the list of sbot issues to investigate here https://server.commoninternet.net/pad/p/sbot_issues

This PR adds methods for creating and accepting invites. The create invite method works, but doesn't seem to be picking up the "uses" argument I'm sending. Maybe I'm not sending it in the right form. Even though I'm passing 100 as the value for uses, I can see in the go-sbot log: ```t=2h2m24.220677722s unit=legacyInvites invite=created uses=1``` Notably this is also what I see in the go-sbot log if I call `./sbotcli invite create --uses 100`, which is the documented way to call it via sbotcli, which makes me think its not an error in how we are passing uses, but something potentially deeper in sbot. A second issue: the invite use command currently produces the error: `Application error: Sbot returned an error response: muxrpc: no such command: invite.use` I also see in sbotcli that invite accept is TODO https://github.com/cryptoscope/ssb/blob/master/cmd/sbotcli/main.go#L575, but not sure if invite use is also TODO as a muxrpc call or if it expects a different form. I added this to the list of sbot issues to investigate here https://server.commoninternet.net/pad/p/sbot_issues
notplants added 1 commit 2022-01-16 14:54:30 +00:00
Author
Owner

the kuska PR that makes this PR functional is here: https://github.com/mhfowler/kuska-ssb/pull/2

the kuska PR that makes this PR functional is here: https://github.com/mhfowler/kuska-ssb/pull/2
notplants added 1 commit 2022-01-17 16:08:32 +00:00
glyph closed this pull request 2022-02-04 08:31:02 +00:00
Owner

Ugh I accidentally closed this by merging #18

Grrr.

Ugh I accidentally closed this by merging https://git.coopcloud.tech/golgi-ssb/golgi/pulls/18 Grrr.

Pull request closed

This pull request cannot be reopened because the branch was deleted.
Sign in to join this conversation.