Skip to content

Commit

Permalink
Clean out dead code from contact search.
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-signal committed Jan 30, 2023
1 parent e6de06b commit 691520b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/layout/contact_search_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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" />

Expand Down

0 comments on commit 691520b

Please sign in to comment.