From 2855d88e5561b20f903e15cf1dbc264b45b4f66e Mon Sep 17 00:00:00 2001 From: 0x330a <92654767+0x330a@users.noreply.github.com> Date: Tue, 10 Jan 2023 16:50:27 +1100 Subject: [PATCH] refactor: fix compile for refactored API --- libsession-util/src/main/cpp/contacts.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsession-util/src/main/cpp/contacts.cpp b/libsession-util/src/main/cpp/contacts.cpp index 6bdcb48df2..6c8146928a 100644 --- a/libsession-util/src/main/cpp/contacts.cpp +++ b/libsession-util/src/main/cpp/contacts.cpp @@ -20,7 +20,7 @@ Java_network_loki_messenger_libsession_1util_Contacts_getOrCreate(JNIEnv *env, j jstring session_id) { auto contacts = ptrToContacts(env, thiz); auto session_id_chars = env->GetStringUTFChars(session_id, nullptr); - auto contact = contacts->get_or_create(session_id_chars); + auto contact = contacts->get_or_construct(session_id_chars); env->ReleaseStringUTFChars(session_id, session_id_chars); return serialize_contact(env, contact); }