mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-23 02:10:44 +01:00
Fix group call flickering missed.
This commit is contained in:
committed by
Greyson Parrelli
parent
3c10966a36
commit
d424a60345
@@ -103,6 +103,7 @@ import java.util.UUID;
|
||||
import java.util.concurrent.Executor;
|
||||
import java.util.concurrent.ExecutorService;
|
||||
import java.util.concurrent.Executors;
|
||||
import java.util.function.Consumer;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import io.reactivex.rxjava3.core.Flowable;
|
||||
@@ -446,6 +447,10 @@ public final class SignalCallManager implements CallManager.Observer, GroupCall.
|
||||
}
|
||||
|
||||
public void peekGroupCall(@NonNull RecipientId id) {
|
||||
peekGroupCall(id, null);
|
||||
}
|
||||
|
||||
public void peekGroupCall(@NonNull RecipientId id, @Nullable Consumer<PeekInfo> onWillUpdateCallFromPeek) {
|
||||
if (callManager == null) {
|
||||
Log.i(TAG, "Unable to peekGroupCall, call manager is null");
|
||||
return;
|
||||
@@ -464,6 +469,10 @@ public final class SignalCallManager implements CallManager.Observer, GroupCall.
|
||||
Long threadId = SignalDatabase.threads().getThreadIdFor(group.getId());
|
||||
|
||||
if (threadId != null) {
|
||||
if (onWillUpdateCallFromPeek != null) {
|
||||
onWillUpdateCallFromPeek.accept(peekInfo);
|
||||
}
|
||||
|
||||
SignalDatabase.calls()
|
||||
.updateGroupCallFromPeek(threadId,
|
||||
peekInfo.getEraId(),
|
||||
|
||||
Reference in New Issue
Block a user