mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-26 03:40:56 +01:00
GroupId for GV2.
This commit is contained in:
@@ -197,7 +197,7 @@ public final class LiveRecipient {
|
||||
List<Recipient> members = Stream.of(groupRecord.get().getMembers()).filterNot(RecipientId::isUnknown).map(this::fetchRecipientFromDisk).toList();
|
||||
Optional<Long> avatarId = Optional.absent();
|
||||
|
||||
if (settings.getGroupId() != null && !settings.getGroupId().isMmsGroup() && title == null) {
|
||||
if (settings.getGroupId() != null && settings.getGroupId().isPush() && title == null) {
|
||||
title = unnamedGroupName;
|
||||
}
|
||||
|
||||
|
||||
@@ -381,7 +381,7 @@ public class Recipient {
|
||||
}
|
||||
|
||||
public @Nullable String getName(@NonNull Context context) {
|
||||
if (this.name == null && groupId != null && groupId.isMmsGroup()) {
|
||||
if (this.name == null && groupId != null && groupId.isMms()) {
|
||||
List<String> names = new LinkedList<>();
|
||||
|
||||
for (Recipient recipient : participants) {
|
||||
@@ -567,12 +567,12 @@ public class Recipient {
|
||||
|
||||
public boolean isMmsGroup() {
|
||||
GroupId groupId = resolve().groupId;
|
||||
return groupId != null && groupId.isMmsGroup();
|
||||
return groupId != null && groupId.isMms();
|
||||
}
|
||||
|
||||
public boolean isPushGroup() {
|
||||
GroupId groupId = resolve().groupId;
|
||||
return groupId != null && !groupId.isMmsGroup();
|
||||
return groupId != null && groupId.isPush();
|
||||
}
|
||||
|
||||
public @NonNull List<Recipient> getParticipants() {
|
||||
|
||||
Reference in New Issue
Block a user