mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 09:20:19 +01:00
Make sure note to self is included in backupsV2.
This commit is contained in:
committed by
Nicholas Tinsley
parent
0465fdea62
commit
227a279131
@@ -394,7 +394,7 @@ public class MessageSender {
|
||||
Recipient recipient = messages.get(i).getThreadRecipient();
|
||||
|
||||
if (isLocalSelfSend(context, recipient, SendType.SIGNAL)) {
|
||||
sendLocalMediaSelf(context, messageId);
|
||||
sendLocalMediaSelf(messageId);
|
||||
} else if (recipient.isPushGroup()) {
|
||||
jobManager.add(new PushGroupSendJob(messageId, recipient.getId(), Collections.emptySet(), true, false), messageDependsOnIds, recipient.getId().toQueueKey());
|
||||
} else if (recipient.isDistributionList()) {
|
||||
@@ -526,8 +526,8 @@ public class MessageSender {
|
||||
@NonNull Collection<String> uploadJobIds,
|
||||
boolean isScheduledSend)
|
||||
{
|
||||
if (isLocalSelfSend(context, recipient, sendType) && !isScheduledSend) {
|
||||
sendLocalMediaSelf(context, messageId);
|
||||
if (isLocalSelfSend(context, recipient, sendType) && !isScheduledSend && !SignalStore.backup().backsUpMedia()) {
|
||||
sendLocalMediaSelf(messageId);
|
||||
} else if (recipient.isPushGroup()) {
|
||||
sendGroupPush(context, recipient, messageId, Collections.emptySet(), uploadJobIds);
|
||||
} else if (recipient.isDistributionList()) {
|
||||
@@ -608,13 +608,13 @@ public class MessageSender {
|
||||
!TextSecurePreferences.isMultiDevice(context);
|
||||
}
|
||||
|
||||
private static void sendLocalMediaSelf(Context context, long messageId) {
|
||||
private static void sendLocalMediaSelf(long messageId) {
|
||||
try {
|
||||
ExpiringMessageManager expirationManager = ApplicationDependencies.getExpiringMessageManager();
|
||||
MessageTable mmsDatabase = SignalDatabase.messages();
|
||||
OutgoingMessage message = mmsDatabase.getOutgoingMessage(messageId);
|
||||
SyncMessageId syncId = new SyncMessageId(Recipient.self().getId(), message.getSentTimeMillis());
|
||||
List<Attachment> attachments = new LinkedList<>();
|
||||
List<Attachment> attachments = new LinkedList<>();
|
||||
|
||||
|
||||
attachments.addAll(message.getAttachments());
|
||||
|
||||
Reference in New Issue
Block a user