1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-11-21 22:27:29 +00:00
This commit is contained in:
Austin Huang 2021-07-16 11:48:19 -04:00
parent eba0951176
commit 8717c8587e
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F

View File

@ -208,7 +208,8 @@ class UserSearchFragment : Fragment() {
if (childCount == 0) return null
for (i in childCount - 1 downTo 0) {
val child = binding.group.getChildAt(i) ?: continue
val tag = child.tag as RankedRecipient
val tempTag = child.tag ?: continue
val tag = tempTag as RankedRecipient
if (isUser && tag.user == null || !isUser && tag.thread == null) continue
if (isUser && tag.user?.pk == recipient.user?.pk || !isUser && tag.thread?.threadId == recipient.thread?.threadId) {
return child