Skip to content
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

Merged
merged 3 commits into from
Feb 22, 2024

Conversation

nplasterer
Copy link
Contributor

Wasn't removing self correctly

@nplasterer nplasterer self-assigned this Feb 22, 2024
@nplasterer nplasterer requested a review from a team as a code owner February 22, 2024 15:23
@@ -82,6 +82,14 @@ public struct Group: Identifiable, Equatable, Hashable {
return []
}
}

public var peerAddresses: [String] {

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.

Copy link
Contributor Author

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.

@nplasterer nplasterer merged commit 880ec58 into main Feb 22, 2024
1 check passed
@nplasterer nplasterer deleted the np/fix-peeraddresses branch February 22, 2024 15:56
kele-leanes pushed a commit that referenced this pull request Feb 23, 2024
* peer addresses was not removing self from list

* bump the pod

* dry it up
kele-leanes pushed a commit that referenced this pull request Feb 23, 2024
* peer addresses was not removing self from list

* bump the pod

* dry it up
kele-leanes pushed a commit that referenced this pull request Feb 23, 2024
* peer addresses was not removing self from list

* bump the pod

* dry it up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants