From e67261f80dcd4beca0ca2947932120d0a4d08104 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 7e6c5c736..e3c1c6670 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) }