From baa8250e7068dba1b70f143ea54c87ceb46fa5f3 Mon Sep 17 00:00:00 2001 From: Conny Duck Date: Tue, 17 Jul 2018 22:05:46 +0200 Subject: [PATCH] normalize domains before saving them to database --- app/src/main/java/com/keylesspalace/tusky/db/AccountManager.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/db/AccountManager.kt b/app/src/main/java/com/keylesspalace/tusky/db/AccountManager.kt index 7e6c5c73..e3c1c667 100644 --- a/app/src/main/java/com/keylesspalace/tusky/db/AccountManager.kt +++ b/app/src/main/java/com/keylesspalace/tusky/db/AccountManager.kt @@ -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) }