Open Lazizbek97 opened 3 months ago
In your code, where does chatIds
come from? Was it a typo and chatIds
is meant to be currentUserChatIds
?
Could you confirm if the filter is not working when you use a hardcoded value like the following?
final messageStream = supabase
.from('chats')
.stream(primaryKey: ['id']).inFilter('id', ['hard-coded-uuid-value-from-chats']);
Describe the bug I have one table(chats) which has id auto generated when any items added. other table(chat_members) connected with this table's id field(foreign key pairs). when i listen this chats table, with following code:
it is not giving chats, where its id contains currentUserChatIds.
Expected behavior i want to filter chats where its id are in current user's chats id list.
Screenshots Here is chat table
Here is chat member table, where members added when user click on join button
Additional context flutter version: