1
0
mirror of https://github.com/tuskyapp/Tusky synced 2025-01-21 22:37:12 +01:00

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