diff --git a/bin/nodejs/binding.gyp b/bin/nodejs/binding.gyp index 8b323870d8540c186454dbe37898828851c7fa3a..7e2f7d87b48d32c324758d90d044ca3ff079085b 100644 --- a/bin/nodejs/binding.gyp +++ b/bin/nodejs/binding.gyp @@ -4,7 +4,7 @@ "target_name": "jamid", "sources": [ "jami_wrapper.cpp" ], 'include_dirs': ['../../src/'], - 'libraries': ['-L<(module_root_dir)/../../src/.libs', '-lring'], + 'libraries': ['-L<(module_root_dir)/../../src/.libs', '-ljami'], 'cflags!': [ '-fno-exceptions' ], 'cflags_cc!': [ '-fno-exceptions', '-fno-rtti', '-std=gnu++1y' ], 'cflags_cc': [ '-std=gnu++17' ] diff --git a/bin/nodejs/nodejs_interface.i b/bin/nodejs/nodejs_interface.i index 8da4ace3f3779ba85043948d12d77e6aab26f2ee..fb4a2c9a030e535e396e9773edbaa230db878a18 100644 --- a/bin/nodejs/nodejs_interface.i +++ b/bin/nodejs/nodejs_interface.i @@ -156,7 +156,7 @@ void init(const SWIGV8_VALUE& funcMap){ exportable_callback<ConversationSignal::ConversationRemoved>(bind(&conversationRemoved, _1, _2)), exportable_callback<ConversationSignal::ConversationMemberEvent>(bind(&conversationMemberEvent, _1, _2, _3, _4)), exportable_callback<ConversationSignal::OnConversationError>(bind(&onConversationError, _1, _2, _3, _4)), - exportable_callback<ConversationSignal::ConversationPreferencesUpdated>(bind(&ConversationCallback::conversationPreferencesUpdated, convM, _1, _2, _3)) + exportable_callback<ConversationSignal::ConversationPreferencesUpdated>(bind(&conversationPreferencesUpdated, _1, _2, _3)) }; if (!DRing::init(static_cast<DRing::InitFlag>(DRing::DRING_FLAG_DEBUG)))