RocketChat / Rocket.Chat.ReactNative

Rocket.Chat mobile clients
https://rocket.chat
MIT License
1.91k stars 1.14k forks source link

feat: Read messages on room close to prevent fetching already seen messages #5723

Closed diegolmello closed 3 weeks ago

diegolmello commented 3 weeks ago

Proposed changes

We are reading for every chunk of messages received, but we're not updating subscription.lastOpen, which is the value used as the "from date" to fetch new messages next time the room is opened.

Issue(s)

How to test or reproduce

Screenshots

Types of changes

Checklist

Further comments

NATIVE-576