Fix PR remarks

This commit is contained in:
ismailgulek
2022-06-09 11:43:12 +03:00
parent 90bd009226
commit 0a53cc4ac7
8 changed files with 33 additions and 28 deletions

View File

@@ -20,7 +20,7 @@ import Foundation
struct MockSessionCreator: SessionCreatorProtocol {
/// Returns a basic session created from the supplied credentials. This prevents the app from setting up the account during tests.
func createSession(credentials: MXCredentials, client: AuthenticationRestClient, resetOthers: Bool) -> MXSession {
func createSession(credentials: MXCredentials, client: AuthenticationRestClient, removeOtherAccounts: Bool) -> MXSession {
let client = MXRestClient(credentials: credentials,
unauthenticatedHandler: { _,_,_,_ in }) // The handler is expected if credentials are set.
return MXSession(matrixRestClient: client)