mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-19 08:09:12 +01:00
Add measurements, improve MSL insert.
This commit is contained in:
@@ -17,6 +17,7 @@ import org.whispersystems.libsignal.state.SessionRecord;
|
||||
import org.whispersystems.signalservice.api.SignalServiceSessionStore;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Set;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
@@ -57,6 +58,10 @@ public class TextSecureSessionStore implements SignalServiceSessionStore {
|
||||
throw new NoSessionException(message);
|
||||
}
|
||||
|
||||
if (sessionRecords.stream().anyMatch(Objects::isNull)) {
|
||||
throw new NoSessionException("Failed to find at least one session.");
|
||||
}
|
||||
|
||||
return sessionRecords;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user