mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 00:59:49 +01:00
Fix several over-the-wire story issues.
Co-authored-by: Rashad Sookram <rashad@signal.org>
This commit is contained in:
@@ -4,7 +4,7 @@ import org.thoughtcrime.securesms.attachments.Attachment
|
||||
import org.thoughtcrime.securesms.attachments.PointerAttachment
|
||||
import org.thoughtcrime.securesms.contactshare.Contact
|
||||
import org.thoughtcrime.securesms.database.model.Mention
|
||||
import org.thoughtcrime.securesms.database.model.MessageId
|
||||
import org.thoughtcrime.securesms.database.model.ParentStoryId
|
||||
import org.thoughtcrime.securesms.database.model.databaseprotos.BodyRangeList
|
||||
import org.thoughtcrime.securesms.groups.GroupId
|
||||
import org.thoughtcrime.securesms.linkpreview.LinkPreview
|
||||
@@ -20,7 +20,7 @@ class IncomingMediaMessage(
|
||||
val body: String? = null,
|
||||
val isPushMessage: Boolean = false,
|
||||
val isStory: Boolean = false,
|
||||
val parentStoryId: MessageId? = null,
|
||||
val parentStoryId: ParentStoryId? = null,
|
||||
val sentTimeMillis: Long,
|
||||
val serverTimeMillis: Long,
|
||||
val receivedTimeMillis: Long,
|
||||
@@ -84,7 +84,7 @@ class IncomingMediaMessage(
|
||||
serverTimeMillis: Long,
|
||||
receivedTimeMillis: Long,
|
||||
isStory: Boolean,
|
||||
parentStoryId: MessageId?,
|
||||
parentStoryId: ParentStoryId?,
|
||||
subscriptionId: Int,
|
||||
expiresIn: Long,
|
||||
expirationUpdate: Boolean,
|
||||
|
||||
@@ -10,7 +10,7 @@ import org.thoughtcrime.securesms.contactshare.Contact;
|
||||
import org.thoughtcrime.securesms.database.documents.IdentityKeyMismatch;
|
||||
import org.thoughtcrime.securesms.database.documents.NetworkFailure;
|
||||
import org.thoughtcrime.securesms.database.model.Mention;
|
||||
import org.thoughtcrime.securesms.database.model.MessageId;
|
||||
import org.thoughtcrime.securesms.database.model.ParentStoryId;
|
||||
import org.thoughtcrime.securesms.linkpreview.LinkPreview;
|
||||
import org.thoughtcrime.securesms.recipients.Recipient;
|
||||
|
||||
@@ -31,7 +31,7 @@ public class OutgoingMediaMessage {
|
||||
private final boolean viewOnce;
|
||||
private final QuoteModel outgoingQuote;
|
||||
private final boolean isStory;
|
||||
private final MessageId parentStoryId;
|
||||
private final ParentStoryId parentStoryId;
|
||||
|
||||
private final Set<NetworkFailure> networkFailures = new HashSet<>();
|
||||
private final Set<IdentityKeyMismatch> identityKeyMismatches = new HashSet<>();
|
||||
@@ -48,7 +48,7 @@ public class OutgoingMediaMessage {
|
||||
boolean viewOnce,
|
||||
int distributionType,
|
||||
boolean isStory,
|
||||
@Nullable MessageId parentStoryId,
|
||||
@Nullable ParentStoryId parentStoryId,
|
||||
@Nullable QuoteModel outgoingQuote,
|
||||
@NonNull List<Contact> contacts,
|
||||
@NonNull List<LinkPreview> linkPreviews,
|
||||
@@ -84,7 +84,7 @@ public class OutgoingMediaMessage {
|
||||
boolean viewOnce,
|
||||
int distributionType,
|
||||
boolean isStory,
|
||||
@Nullable MessageId parentStoryId,
|
||||
@Nullable ParentStoryId parentStoryId,
|
||||
@Nullable QuoteModel outgoingQuote,
|
||||
@NonNull List<Contact> contacts,
|
||||
@NonNull List<LinkPreview> linkPreviews,
|
||||
@@ -197,7 +197,7 @@ public class OutgoingMediaMessage {
|
||||
return isStory;
|
||||
}
|
||||
|
||||
public @Nullable MessageId getParentStoryId() {
|
||||
public @Nullable ParentStoryId getParentStoryId() {
|
||||
return parentStoryId;
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import androidx.annotation.Nullable;
|
||||
import org.thoughtcrime.securesms.attachments.Attachment;
|
||||
import org.thoughtcrime.securesms.contactshare.Contact;
|
||||
import org.thoughtcrime.securesms.database.model.Mention;
|
||||
import org.thoughtcrime.securesms.database.model.MessageId;
|
||||
import org.thoughtcrime.securesms.database.model.ParentStoryId;
|
||||
import org.thoughtcrime.securesms.linkpreview.LinkPreview;
|
||||
import org.thoughtcrime.securesms.recipients.Recipient;
|
||||
|
||||
@@ -23,7 +23,7 @@ public class OutgoingSecureMediaMessage extends OutgoingMediaMessage {
|
||||
long expiresIn,
|
||||
boolean viewOnce,
|
||||
boolean isStory,
|
||||
@Nullable MessageId parentStoryId,
|
||||
@Nullable ParentStoryId parentStoryId,
|
||||
@Nullable QuoteModel quote,
|
||||
@NonNull List<Contact> contacts,
|
||||
@NonNull List<LinkPreview> previews,
|
||||
|
||||
Reference in New Issue
Block a user