mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-31 13:06:09 +00:00
feat: add finishing of group push for initial group creation and saving group configs to DB. re-implement key signing messages properly for the signing config which doesn't override the config base
This commit is contained in:
@@ -2,6 +2,13 @@
|
||||
#include "group_info.h"
|
||||
#include "group_members.h"
|
||||
|
||||
extern "C"
|
||||
JNIEXPORT jint JNICALL
|
||||
Java_network_loki_messenger_libsession_1util_GroupKeysConfig_00024Companion_storageNamespace(JNIEnv* env,
|
||||
jobject thiz) {
|
||||
return (jint)session::config::Namespace::GroupKeys;
|
||||
}
|
||||
|
||||
extern "C"
|
||||
JNIEXPORT jobject JNICALL
|
||||
Java_network_loki_messenger_libsession_1util_GroupKeysConfig_00024Companion_newInstance(JNIEnv *env,
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#include "util.h"
|
||||
|
||||
inline session::config::groups::Members* ptrToMembers(JNIEnv* env, jobject obj) {
|
||||
jclass configClass = env->FindClass("network/loki/messenger/libsession_util/GroupMemberConfig");
|
||||
jclass configClass = env->FindClass("network/loki/messenger/libsession_util/GroupMembersConfig");
|
||||
jfieldID pointerField = env->GetFieldID(configClass, "pointer", "J");
|
||||
return (session::config::groups::Members*) env->GetLongField(obj, pointerField);
|
||||
}
|
||||
|
||||
@@ -288,8 +288,10 @@ class GroupKeysConfig(pointer: Long): ConfigBase(pointer), Closeable {
|
||||
info: GroupInfoConfig,
|
||||
members: GroupMembersConfig
|
||||
): GroupKeysConfig
|
||||
external fun storageNamespace(): Int
|
||||
}
|
||||
external fun groupKeys(): Stack<ByteArray>
|
||||
external fun keyDump(): ByteArray
|
||||
external fun loadKey(hash: String,
|
||||
data: ByteArray,
|
||||
msgId: ByteArray,
|
||||
|
||||
Reference in New Issue
Block a user