-
Notifications
You must be signed in to change notification settings - Fork 24
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
Fix peer addresses actually returns peer addresses #263
Conversation
@@ -82,6 +82,14 @@ public struct Group: Identifiable, Equatable, Hashable { | |||
return [] | |||
} | |||
} | |||
|
|||
public var peerAddresses: [String] { |
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.
when reading this, it wasn't clear to me ( initially ) that this is the "other conversation members peer addresses" list. not sure if it's a good idea or not, but the memberAddresses.map(\.localizedLowercase)
seems to be error prone, as it might create different address representation to the same address. Ideally, it would be lower-cased at the source.
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.
That would be ideal but since we haven't been lowercasing from the beginning it's not that easy and would potentially break existing clients. Something we can strive for when we move to v3 tho.
* peer addresses was not removing self from list * bump the pod * dry it up
* peer addresses was not removing self from list * bump the pod * dry it up
* peer addresses was not removing self from list * bump the pod * dry it up
Wasn't removing self correctly