mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Set user-agent null if PROJECT_NAME is null
the name is only set if the code is run from a jar file
This commit is contained in:
parent
7b8998727e
commit
f479cffc9f
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ class Manager implements Signal {
|
|||
|
||||
public final static String PROJECT_NAME = Manager.class.getPackage().getImplementationTitle();
|
||||
public final static String PROJECT_VERSION = Manager.class.getPackage().getImplementationVersion();
|
||||
private final static String USER_AGENT = PROJECT_NAME + " " + PROJECT_VERSION;
|
||||
private final static String USER_AGENT = PROJECT_NAME == null ? null : PROJECT_NAME + " " + PROJECT_VERSION;
|
||||
|
||||
private final static int PREKEY_MINIMUM_COUNT = 20;
|
||||
private static final int PREKEY_BATCH_SIZE = 100;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue