Clean out dead code from contact search.
This commit is contained in:
parent
e6de06be6f
commit
691520bc75
3 changed files with 2 additions and 6 deletions
|
@ -362,7 +362,6 @@ open class ContactSearchAdapter(
|
|||
DisplaySmsTag.IF_NOT_REGISTERED -> isNotRegistered(model)
|
||||
DisplaySmsTag.NEVER -> false
|
||||
}
|
||||
smsTag.visible = isSmsContact(model)
|
||||
}
|
||||
|
||||
protected open fun bindLongPress(model: T) = Unit
|
||||
|
|
|
@ -109,10 +109,6 @@ open class ContactSearchPagedDataSourceRepository(
|
|||
return GroupsInCommon(groupsInCommon.size, names)
|
||||
}
|
||||
|
||||
open fun hasGroupsInCommon(recipient: Recipient): Boolean {
|
||||
return SignalDatabase.groups.getPushGroupsContainingMember(recipient.id).isNotEmpty()
|
||||
}
|
||||
|
||||
open fun getRecipientFromGroupRecord(groupRecord: GroupRecord): Recipient {
|
||||
return Recipient.resolved(groupRecord.recipientId)
|
||||
}
|
||||
|
|
|
@ -87,7 +87,7 @@
|
|||
app:layout_constraintHorizontal_chainStyle="packed"
|
||||
app:layout_constraintStart_toEndOf="@id/contact_photo_image"
|
||||
app:layout_constraintTop_toBottomOf="@id/name"
|
||||
tools:text="@sample/contacts.json/data/number" />
|
||||
tools:text="@tools:sample/lorem/random" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/label"
|
||||
|
@ -101,6 +101,7 @@
|
|||
app:layout_constraintEnd_toEndOf="@id/name"
|
||||
app:layout_constraintStart_toEndOf="@id/number"
|
||||
app:layout_constraintTop_toTopOf="@id/number"
|
||||
tools:visibility="gone"
|
||||
tools:ignore="RtlSymmetry"
|
||||
tools:text="· Mobile" />
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue