Skip to content

Commit e42bb79

Browse files
authored
Merge pull request #9 from Bilb/main
fix: bump to 0.4.13 & expose supplement bool for group member
2 parents ffa6203 + f7ebf65 commit e42bb79

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"main": "index.js",
33
"name": "libsession_util_nodejs",
44
"description": "Wrappers for the Session Util Library",
5-
"version": "0.4.12",
5+
"version": "0.4.13",
66
"license": "GPL-3.0",
77
"author": {
88
"name": "Oxen Project",

src/groups/meta_group_wrapper.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Napi::Object member_to_js(const Napi::Env& env, const member& info, const member
1515
obj["pubkeyHex"] = toJs(env, info.session_id);
1616
obj["name"] = toJs(env, info.name);
1717
obj["profilePicture"] = toJs(env, info.profile_picture);
18+
obj["supplement"] = toJs(env, info.supplement);
1819

1920
switch (status) {
2021
// invite statuses

types/groups/groupmembers.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ declare module 'libsession_util_nodejs' {
5555

5656
export type GroupMemberGet = GroupMemberShared & {
5757
memberStatus: MemberStateGroupV2;
58+
/**
59+
* True if the member was invited with a supplemental key (i.e. sharing message history).
60+
* On invite resend, we should check this field to know if we should again, generate a supplemental key for that user.
61+
*/
62+
supplement: boolean;
5863

5964
/**
6065
* True if the member is scheduled to get the keys (`.admin` field of libsession).

0 commit comments

Comments
 (0)