fixed auto complete acct with host sometimes appeared for wrong accounts
This commit is contained in:
parent
ad221e3e2e
commit
87d953942e
|
@ -170,7 +170,10 @@ class ComposeAutoCompleteAdapter(context: Context, val requestManager: RequestMa
|
|||
}
|
||||
|
||||
private fun getScreenNameOrAcct(screenName: String, userKey: UserKey): String {
|
||||
if (account?.key?.host == userKey.host) return screenName
|
||||
if (account?.type != AccountType.MASTODON || account?.key?.host == userKey.host) {
|
||||
return screenName
|
||||
}
|
||||
if (userKey.host == null) return screenName
|
||||
return "$screenName@${userKey.host}"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue