stream-js icon indicating copy to clipboard operation
stream-js copied to clipboard

Subscription won't receive faye update when feed.get({ mark_seen: true})

Open dgarciamuria opened this issue 4 years ago • 4 comments

I came across this bug in a react native app (https://github.com/GetStream/react-native-activity-feed/issues/93). Originally reported in their repo but I think it belongs here. Essentially, if a subscription is created to a user's notifications feed notifications.subscribe(data => doSomething) it wont get called if later retrieving that feed with mark_seen: true option. This affects their IconBadge component, where the counter gets out of sync after marking all notifications as read.

dgarciamuria avatar Jan 06 '20 15:01 dgarciamuria

Hey! Thanks for getting in touch, we'll take a look at this and try to recreate the issue. Bear with us!

shodgetts avatar Jan 06 '20 18:01 shodgetts

@shodgetts Were you able to do recreate?

I am experiencing the same surface bug as per https://github.com/GetStream/react-native-activity-feed/issues/93#issuecomment-809273185

wodow avatar Mar 29 '21 10:03 wodow

Could this be related to https://github.com/GetStream/stream-js/issues/423 ?

wodow avatar Mar 29 '21 10:03 wodow

Any updates here? I can confirm that realtime messages are not coming for mark_read or mark_seen updates. It makes it impossible to keep an up-to-date notifications counter, without periodically polling the feed (which defeats the purpose of realtime)

amakhrov avatar Aug 09 '22 22:08 amakhrov