QuickBlox / quickblox-react-native-sdk

quickblox-react-native-sdk
Other
4 stars 1 forks source link

Search using opponent name #71

Open maharjanaman opened 11 months ago

maharjanaman commented 11 months ago

Is there any option to search with opponent name? Current search is happening only with chat name causing one opponent to be able to search and other is unable to search.

IlliaChemolosov commented 10 months ago

@maharjanaman You can find comprehensive information about operators and fields available for searching dialogs in our documentation at https://docs.quickblox.com/docs/react-native-chat-dialogs#search-operators.

maharjanaman commented 10 months ago

Thanks for the response. From the docs, the field name searches the dialog by chat name but not the opponent name for a private chat. Is this the case? If yes, is there any way to search by opponent name for the private chat?

IlliaChemolosov commented 10 months ago

@maharjanaman Yes, in the case of private chats 'name' field, the search primarily looks for the opponent's name. You can also utilize the 'all' operator, the 'occupant_ids' key, and the user ID to specifically search for a dialogue using the opponent's name in a private chat.

maharjanaman commented 10 months ago

@IlliaChemolosov opponent's name is not being used while using the 'name' field for search. This is on the latest version of react native sdk.