You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Convo 1 has convo1.context = undefined while convo2.context = {conversationId: "", metadata: {}}
But in Swift, if I get back the conversations from the same private key, I have no way to differentiate them from their conversationId.
Indeed the Swift SDK will return the both of them with context = {conversationId: "", metadata: {}} because of this line: https://github.com/xmtp/xmtp-ios/blob/main/Sources/XMTP/ConversationV2.swift#L21
Expected behavior
I should be able to differentiate a conversation with an empty string for conversation Id from a conversation without any context in Swift
Steps to reproduce the bug
No response
The text was updated successfully, but these errors were encountered:
I think this should be fixed in the latest release that fixes a deterministic topics bug allowing duplicate conversations across all SDKs. After diving in the code mentioned above is actually stale and not used and the issue seemed to be related to how we do deterministic topics. Please feel free to reopen if that is not the case. I'd also advise updating the JS SDK as well.
Describe the bug
In the JS SDK, these return different conversations (different topics):
Convo 1 has
convo1.context = undefined
whileconvo2.context = {conversationId: "", metadata: {}}
But in Swift, if I get back the conversations from the same private key, I have no way to differentiate them from their conversationId.
Indeed the Swift SDK will return the both of them with
context = {conversationId: "", metadata: {}}
because of this line:https://github.com/xmtp/xmtp-ios/blob/main/Sources/XMTP/ConversationV2.swift#L21
Expected behavior
I should be able to differentiate a conversation with an empty string for conversation Id from a conversation without any context in Swift
Steps to reproduce the bug
No response
The text was updated successfully, but these errors were encountered: