mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 09:20:19 +01:00
Fix issue where forwarded messages would show unlock icon.
This commit is contained in:
committed by
Greyson Parrelli
parent
fec4a7692d
commit
7bede7e98a
@@ -78,23 +78,6 @@ public class OutgoingMediaMessage {
|
||||
contacts, linkPreviews, mentions, new LinkedList<>(), new LinkedList<>());
|
||||
}
|
||||
|
||||
public OutgoingMediaMessage(OutgoingMediaMessage that, long expiresIn) {
|
||||
this(that.getRecipient(),
|
||||
that.body,
|
||||
that.attachments,
|
||||
that.sentTimeMillis,
|
||||
that.subscriptionId,
|
||||
expiresIn,
|
||||
that.viewOnce,
|
||||
that.distributionType,
|
||||
that.outgoingQuote,
|
||||
that.contacts,
|
||||
that.linkPreviews,
|
||||
that.mentions,
|
||||
that.networkFailures,
|
||||
that.identityKeyMismatches);
|
||||
}
|
||||
|
||||
public OutgoingMediaMessage(OutgoingMediaMessage that) {
|
||||
this.recipient = that.getRecipient();
|
||||
this.body = that.body;
|
||||
@@ -113,6 +96,25 @@ public class OutgoingMediaMessage {
|
||||
this.mentions.addAll(that.mentions);
|
||||
}
|
||||
|
||||
public @NonNull OutgoingMediaMessage withExpiry(long expiresIn) {
|
||||
return new OutgoingMediaMessage(
|
||||
getRecipient(),
|
||||
body,
|
||||
attachments,
|
||||
sentTimeMillis,
|
||||
subscriptionId,
|
||||
expiresIn,
|
||||
viewOnce,
|
||||
distributionType,
|
||||
outgoingQuote,
|
||||
contacts,
|
||||
linkPreviews,
|
||||
mentions,
|
||||
networkFailures,
|
||||
identityKeyMismatches
|
||||
);
|
||||
}
|
||||
|
||||
public Recipient getRecipient() {
|
||||
return recipient;
|
||||
}
|
||||
|
||||
@@ -36,4 +36,19 @@ public class OutgoingSecureMediaMessage extends OutgoingMediaMessage {
|
||||
public boolean isSecure() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NonNull OutgoingMediaMessage withExpiry(long expiresIn) {
|
||||
return new OutgoingSecureMediaMessage(getRecipient(),
|
||||
getBody(),
|
||||
getAttachments(),
|
||||
getSentTimeMillis(),
|
||||
getDistributionType(),
|
||||
getExpiresIn(),
|
||||
isViewOnce(),
|
||||
getOutgoingQuote(),
|
||||
getSharedContacts(),
|
||||
getLinkPreviews(),
|
||||
getMentions());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user