|
|
@ -71,7 +71,6 @@ import org.whispersystems.libsignal.util.guava.Optional;
|
|
|
|
|
|
|
|
|
|
|
|
import java.io.Closeable;
|
|
|
|
import java.io.Closeable;
|
|
|
|
import java.io.IOException;
|
|
|
|
import java.io.IOException;
|
|
|
|
import java.security.NoSuchAlgorithmException;
|
|
|
|
|
|
|
|
import java.security.SecureRandom;
|
|
|
|
import java.security.SecureRandom;
|
|
|
|
import java.util.Collections;
|
|
|
|
import java.util.Collections;
|
|
|
|
import java.util.HashMap;
|
|
|
|
import java.util.HashMap;
|
|
|
@ -1279,13 +1278,9 @@ public class MmsDatabase extends MessagingDatabase {
|
|
|
|
private final long threadId;
|
|
|
|
private final long threadId;
|
|
|
|
|
|
|
|
|
|
|
|
public OutgoingMessageReader(OutgoingMediaMessage message, long threadId) {
|
|
|
|
public OutgoingMessageReader(OutgoingMediaMessage message, long threadId) {
|
|
|
|
try {
|
|
|
|
|
|
|
|
this.message = message;
|
|
|
|
this.message = message;
|
|
|
|
this.id = SecureRandom.getInstance("SHA1PRNG").nextLong();
|
|
|
|
this.id = new SecureRandom().nextLong();
|
|
|
|
this.threadId = threadId;
|
|
|
|
this.threadId = threadId;
|
|
|
|
} catch (NoSuchAlgorithmException e) {
|
|
|
|
|
|
|
|
throw new AssertionError(e);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public MessageRecord getCurrent() {
|
|
|
|
public MessageRecord getCurrent() {
|
|
|
|