-
Notifications
You must be signed in to change notification settings - Fork 232
Grouped channels endpoint #4071
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
Closed
Closed
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
b0bef38
Initial implementation of grouped channels
martinmitrevski b03d0ba
Updated grouped endpoint
martinmitrevski 8da29bd
Updated payload
martinmitrevski 1cdf026
Small updates
martinmitrevski a98243c
Unread count fixes
martinmitrevski 2b1e85f
Small Fixes
martinmitrevski a348c09
Added events payload
martinmitrevski 61becd4
Save the grouped unread channels when doing the grouped endpoint
martinmitrevski 4fc7e3e
Fix bug with linking
martinmitrevski 28ea1cd
Removed conversion to payload
martinmitrevski 5acceea
Remove unused code
martinmitrevski 72e4a87
Fix tests
martinmitrevski 79e1909
Remove message unread count from grouped response
martinmitrevski ea0bf5a
Removed unread count from the payload
martinmitrevski 394ae25
Add messageCount filter key
laevandus 88eb99a
Tidy ChatClient by reorganising query grouped channels
laevandus 253989d
User class for request and response types, tidy changelog
laevandus d99da83
Use local message count for filtering when server provided is not pre…
laevandus 4822ee3
Sync pre-filled channel list controllers with query grouped channels …
laevandus b035571
Update fetch limit for avoiding to keep track of prefilled channel count
laevandus 51b7829
Route grouped-channel prefill through ChannelListQuery.groupKey and p…
laevandus f7d1f02
Make inits internal
laevandus File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,7 +7,7 @@ import Foundation | |
| /// A struct representing base URL for `ChatClient`. | ||
| public struct BaseURL: CustomStringConvertible { | ||
| /// The default base URL for StreamChat service. | ||
| public static let `default` = BaseURL(urlString: "https://chat.stream-io-api.com/")! | ||
| public static let `default` = BaseURL(urlString: "https://chat-edge-dublin-ce2.stream-io-api.com/")! | ||
|
Contributor
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. Reminder for this change |
||
|
|
||
| /// The base url for StreamChat data center located in the US East Cost. | ||
| public static let usEast = BaseURL(urlString: "https://chat-proxy-us-east.stream-io-api.com/")! | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Reminder that sync repository needs to use this endpoint as well for not spamming query channels endpoint when app reconnects.