Group keys and message response improvement

This commit is contained in:
SessionHero01
2024-10-04 10:20:16 +10:00
parent 08ee07f5c5
commit 8dd2f364ce
12 changed files with 257 additions and 211 deletions

View File

@@ -295,4 +295,12 @@ Java_network_loki_messenger_libsession_1util_GroupKeysConfig_currentGeneration(J
std::lock_guard lock{util::util_mutex_};
auto ptr = ptrToKeys(env, thiz);
return ptr->current_generation();
}
extern "C"
JNIEXPORT jboolean JNICALL
Java_network_loki_messenger_libsession_1util_GroupKeysConfig_admin(JNIEnv *env, jobject thiz) {
std::lock_guard lock{util::util_mutex_};
auto ptr = ptrToKeys(env, thiz);
return ptr->admin();
}

View File

@@ -500,6 +500,7 @@ class GroupKeysConfig private constructor(pointer: Long): ConfigSig(pointer), Mu
external override fun subAccountSign(message: ByteArray, signingValue: ByteArray): SwarmAuth
external override fun currentGeneration(): Int
external fun admin(): Boolean
data class SwarmAuth(
val subAccount: String,