kopia lustrzana https://github.com/ryukoposting/Signal-Android
Display 'Unknown group' for groups with no name.
rodzic
e13f3254ad
commit
400c592acf
|
@ -215,13 +215,15 @@ public final class GroupDatabase extends Database {
|
|||
}
|
||||
}
|
||||
|
||||
public List<String> getPushGroupNamesContainingMember(RecipientId recipientId) {
|
||||
@WorkerThread
|
||||
public List<String> getPushGroupNamesContainingMember(@NonNull RecipientId recipientId) {
|
||||
return Stream.of(getPushGroupsContainingMember(recipientId))
|
||||
.map(GroupRecord::getTitle)
|
||||
.map(groupRecord -> Recipient.resolved(groupRecord.getRecipientId()).getDisplayName(context))
|
||||
.toList();
|
||||
}
|
||||
|
||||
public List<GroupRecord> getPushGroupsContainingMember(RecipientId recipientId) {
|
||||
@WorkerThread
|
||||
public @NonNull List<GroupRecord> getPushGroupsContainingMember(@NonNull RecipientId recipientId) {
|
||||
SQLiteDatabase database = databaseHelper.getReadableDatabase();
|
||||
String table = TABLE_NAME + " INNER JOIN " + ThreadDatabase.TABLE_NAME + " ON " + TABLE_NAME + "." + RECIPIENT_ID + " = " + ThreadDatabase.TABLE_NAME + "." + ThreadDatabase.RECIPIENT_ID;
|
||||
String query = MEMBERS + " LIKE ? AND " + MMS + " = ?";
|
||||
|
|
Ładowanie…
Reference in New Issue