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

Deprecation warning: Filter.notEqual #3529

Closed
srgray opened this issue Dec 11, 2024 · 1 comment
Closed

Deprecation warning: Filter.notEqual #3529

srgray opened this issue Dec 11, 2024 · 1 comment

Comments

@srgray
Copy link

srgray commented Dec 11, 2024

I am using the Filter.notEqual to search for users that are not my currentUserId, example:

        let notCurrentUserFilter: Filter<UserListFilterScope> = .notEqual(.id, to: currentUserId)

I get a deprecation warning for using the .notEqual filter. Can you recommend a replacement for that?

StreamChat version: 4.68.0

@laevandus
Copy link
Contributor

Hi @srgray, there is no replacement for the notEqual operator.
One alternative is to manually filter results before displaying them. Results are value types so removing the current user from this list is fast.

If you have additional questions, please contact us through the engineering support (please also include if You use UIKit or SwiftUI or custom UI). We have dedicated support engineers who are happy to take this 1:1 and find a solution for your use-case.

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

No branches or pull requests

2 participants