mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-23 18:30:20 +01:00
Do not include self in recents list for gift badging.
This commit is contained in:
committed by
Cody Henthorne
parent
b3086e595f
commit
25788ef751
@@ -188,7 +188,7 @@ public class ContactsCursorLoader extends AbstractContactsCursorLoader {
|
||||
ThreadDatabase threadDatabase = SignalDatabase.threads();
|
||||
|
||||
MatrixCursor recentConversations = ContactsCursorRows.createMatrixCursor(RECENT_CONVERSATION_MAX);
|
||||
try (Cursor rawConversations = threadDatabase.getRecentConversationList(RECENT_CONVERSATION_MAX, flagSet(mode, DisplayMode.FLAG_INACTIVE_GROUPS), false, groupsOnly, hideGroupsV1(mode), !smsEnabled(mode))) {
|
||||
try (Cursor rawConversations = threadDatabase.getRecentConversationList(RECENT_CONVERSATION_MAX, flagSet(mode, DisplayMode.FLAG_INACTIVE_GROUPS), false, groupsOnly, hideGroupsV1(mode), !smsEnabled(mode), false)) {
|
||||
ThreadDatabase.Reader reader = threadDatabase.readerFor(rawConversations);
|
||||
ThreadRecord threadRecord;
|
||||
while ((threadRecord = reader.getNext()) != null) {
|
||||
|
||||
@@ -34,6 +34,7 @@ class ContactSearchConfiguration private constructor(
|
||||
val includeInactiveGroups: Boolean = false,
|
||||
val includeGroupsV1: Boolean = false,
|
||||
val includeSms: Boolean = false,
|
||||
val includeSelf: Boolean = false,
|
||||
override val includeHeader: Boolean,
|
||||
override val expandConfig: ExpandConfig? = null
|
||||
) : Section(SectionKey.RECENTS) {
|
||||
|
||||
@@ -45,7 +45,8 @@ open class ContactSearchPagedDataSourceRepository(
|
||||
section.mode == ContactSearchConfiguration.Section.Recents.Mode.INDIVIDUALS,
|
||||
section.mode == ContactSearchConfiguration.Section.Recents.Mode.GROUPS,
|
||||
!section.includeGroupsV1,
|
||||
!section.includeSms
|
||||
!section.includeSms,
|
||||
!section.includeSelf
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user