private final ExecutorService executor;
private final SignalSessionLock sessionLock;
+ private boolean allowStories = true;
+
private SignalServiceAccountManager accountManager;
private GroupsV2Api groupsV2Api;
private GroupsV2Operations groupsV2Operations;
public void resetAfterAddressChange() {
this.messageSender = null;
this.cipher = null;
+ getSignalWebSocket().forceNewWebSockets();
+ }
+
+ /**
+ * This method needs to be called before the first websocket is created
+ */
+ public void setAllowStories(final boolean allowStories) {
+ this.allowStories = allowStories;
}
public ServiceEnvironmentConfig getServiceEnvironmentConfig() {
Optional.of(credentialsProvider),
userAgent,
healthMonitor,
- true);
+ allowStories);
}
@Override
Optional.empty(),
userAgent,
healthMonitor,
- true);
+ allowStories);
}
};
signalWebSocket = new SignalWebSocket(webSocketFactory);