Commit aadc2da
committed
feat(plan-59 Phase 5a): CMC chat-stream awareness on Contact
- initStreamCache: also seed accessibleStreamIds with each CMC
relationship's localChatStreamId + remoteChatStreamId so doctor-side
chat events fetched via back-channel pass eventIsAccessible.
- chatEventInfos: recognize CMC chat streams. Events on the patient's
outgoing stream resolve to source='me'; events on the doctor's chat
stream (read via back-channel) resolve to source='contact'.
- Legacy fallback path preserved for collectorClients-backed chat
(deleted in Phase 10).
Closes the chat-display gap for hds-webapp's polling fetchCmcIncomingChat.
513/513 tests pass.1 parent 6f5d569 commit aadc2da
1 file changed
Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
233 | 244 | | |
234 | 245 | | |
235 | 246 | | |
| |||
291 | 302 | | |
292 | 303 | | |
293 | 304 | | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
294 | 323 | | |
295 | 324 | | |
296 | 325 | | |
| |||
0 commit comments