normalize domains before saving them to database

This commit is contained in:
Conny Duck 2018-07-17 22:05:46 +02:00
parent ee812e3130
commit e67261f80d

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)
}