Convert InternalValues to kotlin.

This commit is contained in:
Greyson Parrelli
2024-11-18 12:18:29 -05:00
parent 5f67bd9725
commit ae37001949
25 changed files with 270 additions and 289 deletions

View File

@@ -291,7 +291,7 @@ final class GroupManagerV2 {
Set<GroupCandidate> groupCandidates = groupCandidateHelper.recipientIdsToCandidates(new HashSet<>(newMembers));
if (SignalStore.internal().gv2ForceInvites()) {
if (SignalStore.internal().getGv2ForceInvites()) {
groupCandidates = GroupCandidate.withoutExpiringProfileKeyCredentials(groupCandidates);
}
@@ -792,7 +792,7 @@ final class GroupManagerV2 {
GroupCandidate self = groupCandidateHelper.recipientIdToCandidate(Recipient.self().getId());
Set<GroupCandidate> candidates = new HashSet<>(groupCandidateHelper.recipientIdsToCandidates(members));
if (SignalStore.internal().gv2ForceInvites()) {
if (SignalStore.internal().getGv2ForceInvites()) {
Log.w(TAG, "Forcing GV2 invites due to internal setting");
candidates = GroupCandidate.withoutExpiringProfileKeyCredentials(candidates);
}

View File

@@ -226,7 +226,7 @@ class GroupsV2StateProcessor private constructor(
currentLocalState: DecryptedGroup?,
groupRecord: Optional<GroupRecord>
): Boolean {
if (SignalStore.internal.gv2IgnoreP2PChanges()) {
if (SignalStore.internal.gv2IgnoreP2PChanges) {
Log.w(TAG, "$logPrefix Ignoring P2P group change by setting")
return false
}