Conversation
Test Results 4 files 511 suites 3m 52s ⏱️ Results for commit b893cc3. ♻️ This comment has been updated with latest results. Summary: workflow run #21664714455 |
…wireapp/wire-ios into fix/WPB-22732-remove-apiversionresolver
| private func configureTransportSession() { | ||
| transportSession.setNetworkStateDelegate(self) | ||
| transportSession.setAccessTokenRenewalFailureHandler { [weak self] response in | ||
| self?.transportSessionAccessTokenDidFail(response: response) |
There was a problem hiding this comment.
question: are you sure we can delete this? It seems like it's necessary to trigger logout.
There was a problem hiding this comment.
not completely sure 😅, i thought it was only for renewing token after api v2
| if let apiVersion { | ||
| self = .apiVersion(apiVersion) | ||
| init(apiVersion: WireNetwork.APIVersion?) { | ||
| if let apiVersion, let version = WireTransport.APIVersion(rawValue: Int32(apiVersion.rawValue)) { |
There was a problem hiding this comment.
thought (maybe out of scope): I guess we should always be able to map a WireNetwork.APIVersion to WireTransport.APIVersion right? if nil is returned here it doesn't really mean no preference but is some programmer error. I think it is worth adding mappers somewhere that convert between the two APIVersion types.
There was a problem hiding this comment.
yeah for me the fix is to remove duplication, it should be doable either in making WireNetwork a dependency of WireTransport or moving APIVersion definition to WireFoundation.
I guess the latter is more appropriate
Issue
Following removing dead code from non multibackend code, this PR removes the APIVersionResolver
Testing
N/A
Checklist
[WPB-XXX].UI accessibility checklist
If your PR includes UI changes, please utilize this checklist: