-
Notifications
You must be signed in to change notification settings - Fork 438
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1657 +/- ##
===========================================
+ Coverage 36.65% 36.71% +0.06%
===========================================
Files 298 301 +3
Lines 14036 14156 +120
===========================================
+ Hits 5145 5198 +53
- Misses 8891 8958 +67
Continue to review full report at Codecov.
|
@@ -10,8 +10,8 @@ import RealmSwift | |||
import SlackTextViewController | |||
import SimpleImageViewer | |||
|
|||
private typealias NibCellIndentifier = (nibName: String, cellIdentifier: String) | |||
private let kEmptyCellIdentifier = "kEmptyCellIdentifier" |
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.
Need to revert this change.
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.
Just one comment, otherwise it's looking good 👍
@@ -23,7 +23,7 @@ fileprivate extension SubscriptionType { | |||
} | |||
} | |||
|
|||
class SubscriptionFilesRequest: APIRequest { | |||
final class SubscriptionFilesRequest: APIRequest { |
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.
👍
@@ -11,15 +11,17 @@ import Foundation | |||
extension AuthViewController { | |||
internal func handleAuthenticationResponse(_ response: LoginResponse) { | |||
if case let .resource(resource) = response, let error = resource.error { | |||
stopLoading() | |||
DispatchQueue.main.async { [weak self] in |
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.
👍
@@ -0,0 +1,59 @@ | |||
// | |||
// SubscriptionRolesRequest.swift |
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.
👍
|
||
extension ChatViewController { | ||
|
||
func updateSubscriptionRoles() { |
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.
I think this would be a good method for SubscriptionsClient, with realm and subscription as parameters, instead of being in the ViewController. This would make it more testable and reusable.
I can do it in another PR if you want.
@RocketChat/ios
Closes #1654
Progress
channels.roles
&groups.roles
Rocket.Chat#10607)Demo