avoid error when clicking on federated user mention chip

without this, there would be the common error message shown because of a http 404 error.

With this fix, nothing happens when clicking on a federated user mention chip, just like in web and iOS.

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2024-04-11 15:09:56 +02:00
parent 7979af0d38
commit 69e8c91431
No known key found for this signature in database
GPG Key ID: C793F8B59F43CE7B

View File

@ -271,7 +271,7 @@ object DisplayUtils {
Spannable.SPAN_EXCLUSIVE_EXCLUSIVE
)
}
if ("user" == type && conversationUser.userId != id) {
if ("user" == type && conversationUser.userId != id && !isFederated) {
spannableString.setSpan(clickableSpan, start, end, Spannable.SPAN_INCLUSIVE_EXCLUSIVE)
}
}