normalize domains before saving them to database

main
Conny Duck 6 years ago
parent 240ce1d459
commit baa8250e70
  1. 2
      app/src/main/java/com/keylesspalace/tusky/db/AccountManager.kt

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

Loading…
Cancel
Save