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
1 changed files with 1 additions and 1 deletions

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