mirror of
https://github.com/oxen-io/session-android.git
synced 2025-06-08 20:28:33 +00:00
Display 'Unknown group' for groups with no name.
This commit is contained in:
parent
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))
|
return Stream.of(getPushGroupsContainingMember(recipientId))
|
||||||
.map(GroupRecord::getTitle)
|
.map(groupRecord -> Recipient.resolved(groupRecord.getRecipientId()).getDisplayName(context))
|
||||||
.toList();
|
.toList();
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<GroupRecord> getPushGroupsContainingMember(RecipientId recipientId) {
|
@WorkerThread
|
||||||
|
public @NonNull List<GroupRecord> getPushGroupsContainingMember(@NonNull RecipientId recipientId) {
|
||||||
SQLiteDatabase database = databaseHelper.getReadableDatabase();
|
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 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 + " = ?";
|
String query = MEMBERS + " LIKE ? AND " + MMS + " = ?";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user