Commit 6034f8e
committed
WIP single channel
Switch to new channel for messages
TODO mention that this needs to come after typing has been changed to
single channel
JS stuff based on 688d5147e3928f6c40664006eb626d2afae3d33c in
ably/ably-chat-js#505
I'm assuming that this needs to be accompanied by the v3 chat API, and
am assuming that we need v3 for occupancy, too.
Switch reactions to use single channel
TODO update failing tests
Use ephemeral publishing for reactions
Remove feature-specific error codes
TODO next we can remove the code that supports this
remove the RoomFeature on contributor
not needed now we've done 4ea9148
have not updated any wording in tests - waiting for new spec points
Put typing indicators on same channel
TODO revert - this is just so that I can proceed with single-channel
stuff, but this will break typing indicators _and_ presence
(functionality / integration tests)
change Room code to only create a single channel
TODO tidy up some of this contributor / channel difference - and I think
there's still just too much complexity left here too
Move discontinuities to room level
and remove EmitsDiscontinuities, same as JS
TODO tests
move channel to room level
per JS API changes
didn't bother with an Implementation class for `Room` since we barely
touch the channel inside it; have just written to make sure you use
`internalChannel`
WIP Make lifecycle manager single-contributor
This only contains the internal API changes, to allow me to do some
further refactors
TODO fill in the behaviour once the spec is done
Also worst case we could ship like this, it's massively overengineered
for a single contributor but could work
WIP remove FeatureChannel and RoomLifecycleContributor
TODO implement the changes to manager
wip
wip
TODO check that the non-tested spec poitns (i.e. code comments) are
udpated too
Update room options API
TODO if we have any tests that pass a room option to turn a feature on
(e.g. the "merges channel options") one, then remove that
Based on [1] at 9103d78.
- there's no concept of a feature being turned "on" any more, and
correspondingly no error when you try and use a feature that's not
turned on
- remove `allFeaturesEnabled`, since the equivalent has been removed
from JS
- you can now fetch a room without passing a room options; this uses the
default options
[1] ably/ably-chat-js#505
wip update for spec 09ba2c
TODO mention that we've resolved 133 (setting of presence-related
channel modes)1 parent f466cdb commit 6034f8e
File tree
37 files changed
+2745
-3273
lines changed- Example/AblyChatExample
- Mocks
- Sources/AblyChat
- Tests/AblyChatTests
- Mocks
37 files changed
+2745
-3273
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
| 73 | + | |
77 | 74 | | |
78 | 75 | | |
79 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
| |||
83 | 85 | | |
84 | 86 | | |
85 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
86 | 92 | | |
87 | 93 | | |
88 | 94 | | |
89 | 95 | | |
90 | 96 | | |
91 | | - | |
92 | 97 | | |
93 | 98 | | |
94 | 99 | | |
95 | 100 | | |
96 | 101 | | |
97 | 102 | | |
98 | | - | |
99 | 103 | | |
100 | 104 | | |
101 | 105 | | |
| |||
179 | 183 | | |
180 | 184 | | |
181 | 185 | | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
192 | 191 | | |
193 | 192 | | |
194 | 193 | | |
195 | 194 | | |
196 | 195 | | |
197 | 196 | | |
198 | | - | |
199 | 197 | | |
200 | 198 | | |
201 | 199 | | |
| |||
226 | 224 | | |
227 | 225 | | |
228 | 226 | | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | 227 | | |
234 | 228 | | |
235 | 229 | | |
236 | 230 | | |
237 | 231 | | |
238 | | - | |
239 | 232 | | |
240 | 233 | | |
241 | 234 | | |
242 | 235 | | |
243 | 236 | | |
244 | 237 | | |
245 | | - | |
246 | 238 | | |
247 | 239 | | |
248 | 240 | | |
| |||
269 | 261 | | |
270 | 262 | | |
271 | 263 | | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | 264 | | |
277 | 265 | | |
278 | 266 | | |
| |||
389 | 377 | | |
390 | 378 | | |
391 | 379 | | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | 380 | | |
397 | 381 | | |
398 | 382 | | |
399 | 383 | | |
400 | 384 | | |
401 | | - | |
402 | 385 | | |
403 | 386 | | |
404 | 387 | | |
405 | 388 | | |
406 | 389 | | |
407 | 390 | | |
408 | | - | |
409 | 391 | | |
410 | 392 | | |
411 | 393 | | |
| |||
422 | 404 | | |
423 | 405 | | |
424 | 406 | | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | 407 | | |
430 | 408 | | |
431 | 409 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | | - | |
| 13 | + | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| |||
45 | 44 | | |
46 | 45 | | |
47 | 46 | | |
48 | | - | |
| 47 | + | |
49 | 48 | | |
50 | 49 | | |
51 | 50 | | |
| |||
84 | 83 | | |
85 | 84 | | |
86 | 85 | | |
87 | | - | |
| 86 | + | |
88 | 87 | | |
89 | 88 | | |
90 | 89 | | |
| |||
132 | 131 | | |
133 | 132 | | |
134 | 133 | | |
135 | | - | |
| 134 | + | |
136 | 135 | | |
137 | 136 | | |
138 | 137 | | |
| |||
170 | 169 | | |
171 | 170 | | |
172 | 171 | | |
173 | | - | |
| 172 | + | |
174 | 173 | | |
175 | 174 | | |
176 | 175 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
| 11 | + | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | 20 | | |
31 | 21 | | |
32 | 22 | | |
| |||
47 | 37 | | |
48 | 38 | | |
49 | 39 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | 40 | | |
55 | 41 | | |
56 | 42 | | |
57 | 43 | | |
58 | | - | |
| 44 | + | |
59 | 45 | | |
60 | 46 | | |
61 | 47 | | |
62 | 48 | | |
63 | 49 | | |
64 | 50 | | |
65 | 51 | | |
66 | | - | |
67 | | - | |
| 52 | + | |
| 53 | + | |
68 | 54 | | |
69 | 55 | | |
70 | 56 | | |
| |||
94 | 80 | | |
95 | 81 | | |
96 | 82 | | |
97 | | - | |
| 83 | + | |
98 | 84 | | |
99 | 85 | | |
100 | 86 | | |
| |||
159 | 145 | | |
160 | 146 | | |
161 | 147 | | |
162 | | - | |
| 148 | + | |
163 | 149 | | |
164 | 150 | | |
165 | 151 | | |
| |||
204 | 190 | | |
205 | 191 | | |
206 | 192 | | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | 193 | | |
213 | 194 | | |
214 | 195 | | |
| |||
230 | 211 | | |
231 | 212 | | |
232 | 213 | | |
233 | | - | |
| 214 | + | |
234 | 215 | | |
235 | 216 | | |
236 | 217 | | |
| |||
241 | 222 | | |
242 | 223 | | |
243 | 224 | | |
244 | | - | |
| 225 | + | |
245 | 226 | | |
246 | 227 | | |
247 | 228 | | |
| |||
276 | 257 | | |
277 | 258 | | |
278 | 259 | | |
279 | | - | |
280 | | - | |
| 260 | + | |
| 261 | + | |
281 | 262 | | |
282 | 263 | | |
283 | 264 | | |
| |||
295 | 276 | | |
296 | 277 | | |
297 | 278 | | |
298 | | - | |
299 | | - | |
| 279 | + | |
| 280 | + | |
300 | 281 | | |
301 | 282 | | |
302 | 283 | | |
| |||
311 | 292 | | |
312 | 293 | | |
313 | 294 | | |
314 | | - | |
| 295 | + | |
315 | 296 | | |
316 | 297 | | |
317 | 298 | | |
318 | 299 | | |
319 | 300 | | |
320 | 301 | | |
321 | 302 | | |
322 | | - | |
| 303 | + | |
323 | 304 | | |
324 | 305 | | |
325 | 306 | | |
| |||
330 | 311 | | |
331 | 312 | | |
332 | 313 | | |
333 | | - | |
| 314 | + | |
334 | 315 | | |
335 | 316 | | |
336 | 317 | | |
| |||
0 commit comments