Fix bug where disappearing timer was applied to sent group stories.

This commit is contained in:
Greyson Parrelli
2022-12-05 17:36:57 -05:00
parent 54251a27a8
commit 260e572071
2 changed files with 4 additions and 4 deletions

View File

@@ -257,7 +257,7 @@ class MediaSelectionRepository(context: Context) {
emptyList(),
if (recipient.isDistributionList) distributionListPreUploadSentTimestamps.getOrPut(preUploadResults.first()) { System.currentTimeMillis() } else System.currentTimeMillis(),
-1,
TimeUnit.SECONDS.toMillis(recipient.expiresInSeconds.toLong()),
if (isStory) 0 else TimeUnit.SECONDS.toMillis(recipient.expiresInSeconds.toLong()),
isViewOnce,
ThreadTable.DistributionTypes.DEFAULT,
storyType,
@@ -300,7 +300,7 @@ class MediaSelectionRepository(context: Context) {
listOf(MediaUploadRepository.asAttachment(context, it)),
if (recipient.isDistributionList) distributionListStoryClipsSentTimestamps.getOrPut(it.asKey()) { System.currentTimeMillis() } else System.currentTimeMillis(),
-1,
TimeUnit.SECONDS.toMillis(recipient.expiresInSeconds.toLong()),
0,
isViewOnce,
ThreadTable.DistributionTypes.DEFAULT,
storyType,

View File

@@ -145,8 +145,8 @@ public class MessageSender {
Log.i(TAG, "Sending story messages to " + messages.size() + " targets.");
ThreadTable threadTable = SignalDatabase.threads();
MessageTable database = SignalDatabase.mms();
List<Long> messageIds = new ArrayList<>(messages.size());
List<Long> threads = new ArrayList<>(messages.size());
List<Long> messageIds = new ArrayList<>(messages.size());
List<Long> threads = new ArrayList<>(messages.size());
UploadDependencyGraph dependencyGraph;
try {