normalize domains before saving them to database

This commit is contained in:
Conny Duck 2018-07-17 22:05:46 +02:00
parent 240ce1d459
commit baa8250e70

View File

@ -57,7 +57,7 @@ class AccountManager(db: AppDatabase) {
accountDao.insertOrReplace(it)
}
activeAccount = AccountEntity(id = 0, domain = domain, accessToken = accessToken, isActive = true)
activeAccount = AccountEntity(id = 0, domain = domain.toLowerCase(), accessToken = accessToken, isActive = true)
}