Skip to content
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

Make ChannelConfig.commands non-optional #1182

Merged
merged 1 commit into from Jun 11, 2021

Conversation

b-onc
Copy link
Contributor

@b-onc b-onc commented Jun 11, 2021

Backend doesn't send commands when it's empty and we initialize it as empty when it's missing, it doesn't need to be optional

CHANGELOG.md Outdated
@@ -14,6 +14,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- `textDidChange` -> `handleTextChange`
If you've subclassed UI components and overridden these functions, you should rename your overrides.
For more information, see (#1177)[https://github.com/GetStream/stream-chat-swift/pull/1177] and [#1178](https://github.com/GetStream/stream-chat-swift/issues/1178)
- `ChannelConfig.commands` is no longer an optional
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing PR link

@codecov-commenter
Copy link

codecov-commenter commented Jun 11, 2021

Codecov Report

Merging #1182 (59eb246) into main (424a0d2) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1182   +/-   ##
=======================================
  Coverage   91.24%   91.24%           
=======================================
  Files         217      217           
  Lines        9261     9261           
=======================================
  Hits         8450     8450           
  Misses        811      811           
Flag Coverage Δ
llc-tests 91.24% <100.00%> (ø)
llc-tests-ios12 91.24% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...Client/Endpoints/Payloads/ChannelListPayload.swift 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 424a0d2...59eb246. Read the comment docs.

Backend doesn't send `commands` when it's empty and we initialize it as empty when it's missing, it doesn't need to be optional
@b-onc b-onc force-pushed the channelconfig-commands-nonoptional branch from 59eb246 to f8e1574 Compare June 11, 2021 12:16
@b-onc b-onc merged commit 58b279e into main Jun 11, 2021
@b-onc b-onc deleted the channelconfig-commands-nonoptional branch June 11, 2021 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants