keytrans: Remove ChatSearchContext type

This commit is contained in:
moiseev-signal
2024-12-05 15:51:00 -08:00
committed by GitHub
parent 706f7ea91a
commit fc5b786fb7
5 changed files with 65 additions and 109 deletions

View File

@@ -208,8 +208,6 @@ public final class Native {
public static native CompletableFuture<Long> CdsiLookup_new(long asyncRuntime, long connectionManager, String username, String password, long request);
public static native byte[] CdsiLookup_token(long lookup);
public static native void ChatSearchContext_Destroy(long handle);
public static native void ChatService_SetListenerAuth(long runtime, long chat, BridgeChatListener listener);
public static native void ChatService_SetListenerUnauth(long runtime, long chat, BridgeChatListener listener);
public static native CompletableFuture<Object> ChatService_auth_send(long asyncRuntime, long chat, long httpRequest, int timeoutMillis);
@@ -373,8 +371,7 @@ public final class Native {
public static native byte[] KeyTransparency_AciSearchKey(byte[] aci);
public static native CompletableFuture<byte[]> KeyTransparency_Distinguished(long asyncRuntime, int environment, long chat, byte[] lastDistinguishedTreeHead);
public static native byte[] KeyTransparency_E164SearchKey(String e164);
public static native long KeyTransparency_NewSearchContext(byte[] accountData, byte[] lastDistinguishedTreeHead) throws Exception;
public static native CompletableFuture<Long> KeyTransparency_Search(long asyncRuntime, int environment, long chat, byte[] aci, long aciIdentityKey, String e164, byte[] unidentifiedAccessKey, byte[] usernameHash, long context);
public static native CompletableFuture<Long> KeyTransparency_Search(long asyncRuntime, int environment, long chat, byte[] aci, long aciIdentityKey, String e164, byte[] unidentifiedAccessKey, byte[] usernameHash, byte[] accountData, byte[] lastDistinguishedTreeHead);
public static native byte[] KeyTransparency_UsernameHashSearchKey(byte[] hash);
public static native void KyberKeyPair_Destroy(long handle);