-
Notifications
You must be signed in to change notification settings - Fork 21
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
Bug: senderAddress
returns inboxId
in 1.34.0-beta.2
#401
Comments
Opened a PR here to expose the member information better #402 |
I'm not sure if there is a scenario where the senderAddress will be an address again instead of an inboxId. Is that going to be a problem? Wondering how we might be able to mitigate that for you in this transition aside from the members work I did in PR 402? I could maybe return the first address from the list of address associated with the inboxId and add an additional field called inboxId to the message just to make them explicitly different? Would that help? |
We have moved to use the My question is more on whether In my head it is still possible to send both from the client side, as the client has typically signed the user into their I guess once the keys are pulled in from the initial signature it could be the case that the wallet is no longer associated directly with the client though. Our use-case is something like we have users sign-in with their eoa & we create them a passkey wallet that is then attached to their If the Another issue we have with lack of |
In the future inboxId will be the primary source of truth as identities will be able to add multiple addresses and even remove addresses. So senderAddress won't really work for messages as the senderAddress may get removed from the inboxId but the inboxId will still remain. While 1to1 messages are on V2 and group messages are on V3 we are in a bit of limbo where renaming to senderInboxId doesn't work just yet but in the future when we move 1to1 also into V3 the inboxId will be more prevalent. I'm not certain if inboxIds will have the ability to set a primary address but asked a few team members to chime in on that. |
In the V3 Currently |
Agree with everything that has been said about With the new system messages really aren't sent by a wallet. Once you have registered a set of installation keys (which are XMTP specific) you don't need to use the wallet in subsequent client creation. From a protocol perspective we don't need the wallet after first use. You can use our SDK and send messages just relying on the installation keys stored in There is one thing that is technically possible, but I'd have to understand the use-case better before we committed to doing it. Every message is signed by an installation key. And every installation key was added to the inbox by a wallet originally. So there is a line that connects back from the message to a wallet. I just don't know if that's really solving the user problem, or if we should have some notion of a "primary wallet" that apps use when they only want to show one wallet address or ENS name. |
Describe the bug
Hey this is probably better in a discussions section but since there is a bug & no discussions I thought an issue works.
I assume this bug is just a placeholder while
inboxId
is still being implemented as it is the same in each of the client libraries.We use
senderAddress
(and just generally the users XMTP address) extensively throughout the app.So I am wondering whether the longer term api will also include the
senderAddress
in messages?It is still the case that a client is instantiated using a particular address so this could be sent with the message but maybe that is going to change?
It is pretty essential to be able to access the available addresses related the users
inboxId
(again I assume this will happen & I am just early to the party) right now we are using a patch that just the addresses off the groupShould I assume that the main way to get a users address will be through a method linked to the
inboxId
that will be available in the future or one of their linked addresses will be sent on the message as before?Expected behavior
No response
Steps to reproduce the bug
No response
The text was updated successfully, but these errors were encountered: