Add emdash instead of 0 if no callers are present and we haven't connected / loaded the group state.

This commit is contained in:
Alex Hart
2021-01-05 09:16:59 -04:00
committed by Alan Evans
parent 3474b26f61
commit e2872d9af8
7 changed files with 45 additions and 28 deletions

View File

@@ -3,6 +3,7 @@ package org.thoughtcrime.securesms.events;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.annimon.stream.OptionalLong;
import com.annimon.stream.Stream;
import org.thoughtcrime.securesms.components.webrtc.BroadcastVideoSink;
@@ -94,7 +95,7 @@ public class WebRtcViewModel {
private final CallParticipant localParticipant;
private final List<CallParticipant> remoteParticipants;
private final Set<RecipientId> identityChangedRecipients;
private final long remoteDevicesCount;
private final OptionalLong remoteDevicesCount;
private final Long participantLimit;
public WebRtcViewModel(@NonNull WebRtcServiceState state) {
@@ -154,7 +155,7 @@ public class WebRtcViewModel {
return identityChangedRecipients;
}
public long getRemoteDevicesCount() {
public OptionalLong getRemoteDevicesCount() {
return remoteDevicesCount;
}