nabla / nabla-react-native

Nabla React Native SDK
16 stars 4 forks source link

`watchConversations` hook is not triggered when removing a message #4

Closed HenriChabert closed 1 year ago

HenriChabert commented 1 year ago

Hello team, It seems that watcher returned by watchConversations is not triggered when we delete a message from a conversation. Is it a known behaviour? Is it linked to the recent addition of content_deleted webhook? Thanks!

benoitletondor commented 1 year ago

Hey, thanks for your question.

Yes this is normal behavior. If you are using watchConversation (a single one, not all) then you'll be notified if a message is deleted in that conversation, but the watcher for all conversations isn't triggered on all internal conversation event.

If you're interested in watching that, watching the conversation itself is the way to go.