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