mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-25 17:27:45 +00:00
Remove unnecessary getter and setter
This commit is contained in:
parent
79927be0c0
commit
57825d58b5
@ -22,7 +22,6 @@ import org.whispersystems.signalservice.loki.utilities.hexEncodedPublicKey
|
|||||||
import java.io.File
|
import java.io.File
|
||||||
import java.io.FileOutputStream
|
import java.io.FileOutputStream
|
||||||
|
|
||||||
|
|
||||||
class KeyPairActivity : BaseActionBarActivity() {
|
class KeyPairActivity : BaseActionBarActivity() {
|
||||||
private lateinit var languageFileDirectory: File
|
private lateinit var languageFileDirectory: File
|
||||||
private var keyPair: IdentityKeyPair? = null
|
private var keyPair: IdentityKeyPair? = null
|
||||||
|
@ -9,7 +9,7 @@ public class OutgoingTextMessage {
|
|||||||
private final String message;
|
private final String message;
|
||||||
private final int subscriptionId;
|
private final int subscriptionId;
|
||||||
private final long expiresIn;
|
private final long expiresIn;
|
||||||
private boolean isFriendRequest = false;
|
boolean isFriendRequest = false;
|
||||||
|
|
||||||
public OutgoingTextMessage(Recipient recipient, String message, int subscriptionId) {
|
public OutgoingTextMessage(Recipient recipient, String message, int subscriptionId) {
|
||||||
this(recipient, message, 0, subscriptionId);
|
this(recipient, message, 0, subscriptionId);
|
||||||
@ -69,9 +69,6 @@ public class OutgoingTextMessage {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isFriendRequest() { return isFriendRequest; }
|
|
||||||
public void setIsFriendRequest(boolean value) { this.isFriendRequest = value; }
|
|
||||||
|
|
||||||
public static OutgoingTextMessage from(SmsMessageRecord record) {
|
public static OutgoingTextMessage from(SmsMessageRecord record) {
|
||||||
if (record.isSecure()) {
|
if (record.isSecure()) {
|
||||||
return new OutgoingEncryptedMessage(record.getRecipient(), record.getBody(), record.getExpiresIn());
|
return new OutgoingEncryptedMessage(record.getRecipient(), record.getBody(), record.getExpiresIn());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user