2016-08-16 03:23:56 +00:00
|
|
|
package org.thoughtcrime.securesms.mms;
|
|
|
|
|
|
|
|
import org.thoughtcrime.securesms.attachments.Attachment;
|
|
|
|
import org.thoughtcrime.securesms.database.ThreadDatabase;
|
2017-08-01 15:56:00 +00:00
|
|
|
import org.thoughtcrime.securesms.recipients.Recipient;
|
2016-08-16 03:23:56 +00:00
|
|
|
|
2018-04-27 00:03:54 +00:00
|
|
|
import java.util.Collections;
|
2016-08-16 03:23:56 +00:00
|
|
|
import java.util.LinkedList;
|
|
|
|
|
|
|
|
public class OutgoingExpirationUpdateMessage extends OutgoingSecureMediaMessage {
|
|
|
|
|
2017-08-01 15:56:00 +00:00
|
|
|
public OutgoingExpirationUpdateMessage(Recipient recipient, long sentTimeMillis, long expiresIn) {
|
|
|
|
super(recipient, "", new LinkedList<Attachment>(), sentTimeMillis,
|
2019-01-15 08:41:05 +00:00
|
|
|
ThreadDatabase.DistributionTypes.CONVERSATION, expiresIn, null, Collections.emptyList(),
|
|
|
|
Collections.emptyList());
|
2016-08-16 03:23:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean isExpirationUpdate() {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|