-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
api: Add stream/update event #880
Changes from all commits
74748a0
2f0aac5
1ee4bb6
03f385a
fc3db42
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,7 @@ void main() { | |
))); | ||
}); | ||
|
||
test('added by events', () async { | ||
test('added/updated by events', () async { | ||
final stream1 = eg.stream(); | ||
final stream2 = eg.stream(); | ||
final store = eg.store(); | ||
|
@@ -56,6 +56,17 @@ void main() { | |
|
||
await store.addSubscription(eg.subscription(stream1)); | ||
checkUnified(store); | ||
|
||
await store.handleEvent(eg.channelUpdateEvent(store.streams[stream1.streamId]!, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If adding this to the |
||
property: ChannelPropertyName.name, value: 'new stream', | ||
)); | ||
checkUnified(store); | ||
|
||
await store.handleEvent(eg.channelUpdateEvent(store.streams[stream1.streamId]!, | ||
property: ChannelPropertyName.channelPostPolicy, | ||
value: ChannelPostPolicy.administrators, | ||
)); | ||
checkUnified(store); | ||
}); | ||
}); | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commit message nit: Let's try to use more brief wording, say:
or
Also, I believe this is closely related to the previous commit
api: Add stream/update event
So, most probably this will get squashed into it during maintainer or integration review.