Skip to content

Commit 0e613d7

Browse files
committed
api/event: Document a missing stream-event op.
This is the inverse of `occupy`. We don't actually *do* anything with `occupy`, so we don't with this either.
1 parent 4658bb9 commit 0e613d7

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/api/eventTypes.js

+1
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ export type StreamEvent =
121121
| {| ...StreamListEvent, op: 'create', |}
122122
| {| ...StreamListEvent, op: 'delete', |}
123123
| {| ...StreamListEvent, op: 'occupy', |}
124+
| {| ...StreamListEvent, op: 'vacate', |}
124125
| {|
125126
...EventCommon,
126127
type: typeof EventTypes.stream,

src/streams/streamsReducers.js

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export default (state: StreamsState = initialState, action: Action): StreamsStat
4343
);
4444

4545
case 'occupy':
46+
case 'vacate':
4647
return state;
4748

4849
default:

src/subscriptions/subscriptionsReducers.js

+1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ export default (state: SubscriptionsState = initialState, action: Action): Subsc
7171
case 'create':
7272
case 'delete':
7373
case 'occupy':
74+
case 'vacate':
7475
return state;
7576

7677
default:

0 commit comments

Comments
 (0)