File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ struct toJs_impl<contact_info> {
5252 obj[" expirationMode" ] = toJs (env, expiration_mode_string (contact.exp_mode ));
5353 obj[" expirationTimerSeconds" ] = toJs (env, contact.exp_timer .count ());
5454 obj[" profilePicture" ] = toJs (env, contact.profile_picture );
55- obj[" profileProFeatures " ] = proFeaturesToJsBitset (env, contact.get_pro_features () );
55+ obj[" proProfileBitset " ] = proProfileBitsetToJS (env, contact.profile_bitset );
5656
5757 return obj;
5858 }
@@ -162,10 +162,10 @@ void ContactsConfigWrapper::set(const Napi::CallbackInfo& info) {
162162 contact.profile_picture .clear ();
163163 }
164164
165- if (auto profileProFeatures = maybeNonemptyIntB (
166- obj.Get (" profileProFeatures " ),
167- " ContactsConfigWrapper.set profileProFeatures " )) {
168- contact.set_pro_features (*profileProFeatures) ;
165+ if (auto proProfileBitset = maybeNonemptyIntB (
166+ obj.Get (" proProfileBitset " ),
167+ " ContactsConfigWrapper.set proProfileBitset " )) {
168+ contact.profile_bitset . data = *proProfileBitset ;
169169 }
170170
171171 config.set (contact);
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ declare module 'libsession_util_nodejs' {
5656 * see `SESSION_PROTOCOL_PRO_FEATURES`.
5757 * To unset the pro features, set this to 0, if undefined or null no changes
5858 */
59- profileProFeatures ?: bigint ;
59+ proProfileBitset ?: bigint ;
6060 } ;
6161
6262 export type ContactInfoGet = ContactInfoShared & {
@@ -68,7 +68,7 @@ declare module 'libsession_util_nodejs' {
6868 * see `SESSION_PROTOCOL_PRO_FEATURES`.
6969 * defaults to 0.
7070 */
71- profileProFeatures : bigint ;
71+ proProfileBitset : bigint ;
7272 } ;
7373
7474 export class ContactsConfigWrapperNode extends BaseConfigWrapperNode {
You can’t perform that action at this time.
0 commit comments