Add more information for libsignal-client native dependency

This commit is contained in:
AsamK 2021-02-14 10:40:35 +01:00
parent 0dc33e1892
commit 9eeba88bd0
3 changed files with 20 additions and 1 deletions

View file

@ -49,6 +49,15 @@ public class ServiceConfig {
}
}
public static boolean isSignalClientAvailable() {
try {
org.signal.client.internal.Native.DisplayableFingerprint_Format(new byte[30], new byte[30]);
return true;
} catch (UnsatisfiedLinkError ignored) {
return false;
}
}
public static AccountAttributes.Capabilities getCapabilities() {
return capabilities;
}