Repository navigation
Commit f71c6c7
fix(mobile): start a repeated catch-up before the relay's drift window
A repeated unread catch-up started 60s before the newest message an
earlier one returned. A message that reaches the relay late with an
older created_at, such as one composed offline, could fall before that
start and never count as unread.
The relay rejects events whose created_at is more than 900s from its
clock, so the next catch-up now starts relayLiveWindowSkewSeconds
(960s, as reconnect replay uses) before the previous one was sent. That
covers every message stored since, however late, and needs no event
timestamps.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Tom Brow <[email protected]>1 parent a873876 commit f71c6c7
3 files changed
Lines changed: 49 additions & 55 deletions
File tree
- mobile
- lib/features/channels
- test/features/channels
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
199 | 201 | | |
200 | 202 | | |
201 | 203 | | |
202 | 204 | | |
203 | 205 | | |
204 | 206 | | |
205 | | - | |
| 207 | + | |
206 | 208 | | |
207 | 209 | | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
233 | 216 | | |
234 | 217 | | |
235 | 218 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | 37 | | |
42 | 38 | | |
43 | 39 | | |
| |||
68 | 64 | | |
69 | 65 | | |
70 | 66 | | |
71 | | - | |
72 | | - | |
73 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
74 | 70 | | |
75 | 71 | | |
76 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2163 | 2163 | | |
2164 | 2164 | | |
2165 | 2165 | | |
2166 | | - | |
| 2166 | + | |
2167 | 2167 | | |
| 2168 | + | |
2168 | 2169 | | |
2169 | 2170 | | |
2170 | 2171 | | |
2171 | | - | |
| 2172 | + | |
2172 | 2173 | | |
2173 | 2174 | | |
2174 | 2175 | | |
| |||
2177 | 2178 | | |
2178 | 2179 | | |
2179 | 2180 | | |
| 2181 | + | |
| 2182 | + | |
| 2183 | + | |
| 2184 | + | |
| 2185 | + | |
| 2186 | + | |
| 2187 | + | |
| 2188 | + | |
| 2189 | + | |
| 2190 | + | |
2180 | 2191 | | |
| 2192 | + | |
2181 | 2193 | | |
2182 | 2194 | | |
2183 | 2195 | | |
| 2196 | + | |
2184 | 2197 | | |
2185 | 2198 | | |
2186 | 2199 | | |
2187 | | - | |
2188 | | - | |
2189 | | - | |
2190 | | - | |
2191 | | - | |
2192 | | - | |
| 2200 | + | |
| 2201 | + | |
| 2202 | + | |
| 2203 | + | |
2193 | 2204 | | |
2194 | | - | |
2195 | | - | |
| 2205 | + | |
| 2206 | + | |
| 2207 | + | |
| 2208 | + | |
| 2209 | + | |
| 2210 | + | |
| 2211 | + | |
| 2212 | + | |
2196 | 2213 | | |
2197 | 2214 | | |
2198 | | - | |
| 2215 | + | |
2199 | 2216 | | |
2200 | 2217 | | |
2201 | 2218 | | |
2202 | | - | |
2203 | | - | |
2204 | | - | |
2205 | | - | |
2206 | | - | |
2207 | | - | |
| 2219 | + | |
| 2220 | + | |
| 2221 | + | |
| 2222 | + | |
2208 | 2223 | | |
2209 | 2224 | | |
2210 | 2225 | | |
| |||
0 commit comments