fix account switching (#4636)
closes #4631 closes #4629 and other weirdness introduced in Tusky 26.1. I did a lot of testing on 2 physical devices and multiple emulators. It definitely is better than before, but probably still not perfect.
This commit is contained in:
parent
74d479c3dc
commit
31e4f08966
8 changed files with 121 additions and 145 deletions
|
|
@ -38,9 +38,7 @@ inline fun <reified T> apiForAccount(
|
|||
)
|
||||
.removeHeader(MastodonApi.DOMAIN_HEADER)
|
||||
.build()
|
||||
}
|
||||
|
||||
if (account != null && request.url.host == account.domain) {
|
||||
} else if (account != null && request.url.host == account.domain) {
|
||||
request = request.newBuilder()
|
||||
.header("Authorization", "Bearer ${account.accessToken}")
|
||||
.build()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue