mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-22 17:40:35 +00:00
Merge branch 'groups' of github.com:WhisperSystems/TextSecure into groups
This commit is contained in:
@@ -41,11 +41,16 @@ public class Directory {
|
||||
SUPPORTS_SMS + " INTEGER, " +
|
||||
TIMESTAMP + " INTEGER);";
|
||||
|
||||
private static Directory instance;
|
||||
private static final Object instanceLock = new Object();
|
||||
private static volatile Directory instance;
|
||||
|
||||
public synchronized static Directory getInstance(Context context) {
|
||||
public static Directory getInstance(Context context) {
|
||||
if (instance == null) {
|
||||
instance = new Directory(context);
|
||||
synchronized (instanceLock) {
|
||||
if (instance == null) {
|
||||
instance = new Directory(context);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return instance;
|
||||
|
@@ -50,7 +50,7 @@ public class PushServiceSocket {
|
||||
private static final String MESSAGE_PATH = "/v1/messages/%s";
|
||||
private static final String ATTACHMENT_PATH = "/v1/attachments/%s";
|
||||
|
||||
private static final boolean ENFORCE_SSL = false;
|
||||
private static final boolean ENFORCE_SSL = true;
|
||||
|
||||
private final Context context;
|
||||
private final String serviceUrl;
|
||||
|
Reference in New Issue
Block a user