Commit 92f35fb
Fix: split unread marker effect to avoid clearing marker on readNewestAction
The single effect with reportLastReadTime in the dependency array caused
unreadMarkerTime to update whenever readNewestAction marked messages as
read, immediately clearing the unread indicator. Split into two effects:
one for report switches (original behavior) and one that only fires when
reportLastReadTime transitions from empty to a real value (sign-in case).
Co-authored-by: Pujan Shah <Pujan92@users.noreply.github.com>1 parent d1d655e commit 92f35fb
1 file changed
Lines changed: 11 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | 262 | | |
268 | 263 | | |
269 | 264 | | |
270 | | - | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
271 | 276 | | |
272 | 277 | | |
273 | 278 | | |
| |||
0 commit comments