The "contact" option in the attachments tray now brings you through an optimized contact sharing flow, allowing you to select specific fields to share. The contact is then presented as a special message type, allowing you to interact with the card to add the contact to your system contacts, invite them to signal, initiate a signal message, etc.
22 lines
711 B
Java
22 lines
711 B
Java
package org.thoughtcrime.securesms.mms;
|
|
|
|
import org.thoughtcrime.securesms.attachments.Attachment;
|
|
import org.thoughtcrime.securesms.database.ThreadDatabase;
|
|
import org.thoughtcrime.securesms.recipients.Recipient;
|
|
|
|
import java.util.Collections;
|
|
import java.util.LinkedList;
|
|
|
|
public class OutgoingExpirationUpdateMessage extends OutgoingSecureMediaMessage {
|
|
|
|
public OutgoingExpirationUpdateMessage(Recipient recipient, long sentTimeMillis, long expiresIn) {
|
|
super(recipient, "", new LinkedList<Attachment>(), sentTimeMillis,
|
|
ThreadDatabase.DistributionTypes.CONVERSATION, expiresIn, null, Collections.emptyList());
|
|
}
|
|
|
|
@Override
|
|
public boolean isExpirationUpdate() {
|
|
return true;
|
|
}
|
|
|
|
}
|