Use correct var name

This commit is contained in:
Hugh Nimmo-Smith 2022-10-13 15:58:19 +01:00
parent 1e60f3c25b
commit e2f3dde5c1

View file

@ -66,7 +66,7 @@ internal class DefaultAuthenticationService @Inject constructor(
private val pendingSessionStore: PendingSessionStore, private val pendingSessionStore: PendingSessionStore,
private val getWellknownTask: GetWellknownTask, private val getWellknownTask: GetWellknownTask,
private val directLoginTask: DirectLoginTask, private val directLoginTask: DirectLoginTask,
private val loginTokenAuthTask: QrLoginTokenTask private val qrLoginTokenTask: QrLoginTokenTask
) : AuthenticationService { ) : AuthenticationService {
private var pendingSessionData: PendingSessionData? = pendingSessionStore.getPendingSessionData() private var pendingSessionData: PendingSessionData? = pendingSessionStore.getPendingSessionData()
@ -428,7 +428,7 @@ internal class DefaultAuthenticationService @Inject constructor(
initialDeviceName: String?, initialDeviceName: String?,
deviceId: String?, deviceId: String?,
): Session { ): Session {
return loginTokenAuthTask.execute( return qrLoginTokenTask.execute(
QrLoginTokenTask.Params( QrLoginTokenTask.Params(
homeServerConnectionConfig = homeServerConnectionConfig, homeServerConnectionConfig = homeServerConnectionConfig,
loginToken = loginToken, loginToken = loginToken,