mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-19 08:09:12 +01:00
Add support for versioned expiration timers.
Co-authored-by: Greyson Parrelli <greyson@signal.org>
This commit is contained in:
committed by
Nicholas Tinsley
parent
4152294b57
commit
1f196f74ff
@@ -75,9 +75,10 @@ public class RemoteReplyReceiver extends BroadcastReceiver {
|
||||
SignalExecutors.BOUNDED.execute(() -> {
|
||||
long threadId;
|
||||
|
||||
Recipient recipient = Recipient.resolved(recipientId);
|
||||
long expiresIn = TimeUnit.SECONDS.toMillis(recipient.getExpiresInSeconds());
|
||||
ParentStoryId parentStoryId = groupStoryId != Long.MIN_VALUE ? ParentStoryId.deserialize(groupStoryId) : null;
|
||||
Recipient recipient = Recipient.resolved(recipientId);
|
||||
long expiresIn = TimeUnit.SECONDS.toMillis(recipient.getExpiresInSeconds());
|
||||
int expireTimerVersion = recipient.getExpireTimerVersion();
|
||||
ParentStoryId parentStoryId = groupStoryId != Long.MIN_VALUE ? ParentStoryId.deserialize(groupStoryId) : null;
|
||||
|
||||
switch (replyMethod) {
|
||||
case GroupMessage: {
|
||||
@@ -86,6 +87,7 @@ public class RemoteReplyReceiver extends BroadcastReceiver {
|
||||
new LinkedList<>(),
|
||||
System.currentTimeMillis(),
|
||||
expiresIn,
|
||||
expireTimerVersion,
|
||||
false,
|
||||
0,
|
||||
StoryType.NONE,
|
||||
|
||||
Reference in New Issue
Block a user