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

Removing conversations that contain a no valid topic #194

Merged
merged 8 commits into from
Nov 30, 2023

Conversation

giovasdistillery
Copy link
Contributor

Expectations

  • Adding a filter to not show conversations that contain no valid topics
  • The filter for now is allowing topics with no special characters

@giovasdistillery giovasdistillery added the bug Something isn't working label Nov 25, 2023
@giovasdistillery giovasdistillery requested a review from a team as a code owner November 25, 2023 00:28
Copy link
Contributor

@nplasterer nplasterer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mind bumping the podfile like what I did here: #193 so we can get these changes into react native as well.

Also looks like a legit lint error.

Sources/XMTP/Conversations.swift Outdated Show resolved Hide resolved
giovasdistillery and others added 2 commits November 27, 2023 13:42
Update pod version to trigger the build
Sources/XMTP/Conversations.swift Outdated Show resolved Hide resolved
Tests/XMTPTests/ConversationsTest.swift Outdated Show resolved Hide resolved
Tests/XMTPTests/ConversationsTest.swift Outdated Show resolved Hide resolved
@@ -39,4 +39,8 @@ public enum Topic {
private func wrap(_ value: String) -> String {
"/xmtp/0/\(value)/proto"
}

static func isValidTopic(topic: String) -> Bool {
return topic.allSatisfy(\.isASCII)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also commented on the Android PR on this. do we want to allow characters 0-32 in topics?

@nplasterer nplasterer merged commit bf38bb9 into main Nov 30, 2023
1 check passed
@nplasterer nplasterer deleted the gg/bugfix/conversations_with_invalid_topics branch November 30, 2023 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Conversations with invalid topics should not be included in the conversation list
4 participants