File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -389,6 +389,7 @@ Napi::Value MetaGroupWrapper::infoGet(const Napi::CallbackInfo& info) {
389389
390390 obj[" isDestroyed" ] = toJs (env, this ->meta_group ->info ->is_destroyed ());
391391 obj[" profilePicture" ] = toJs (env, this ->meta_group ->info ->get_profile_pic ());
392+ obj[" description" ] = toJs (env, this ->meta_group ->info ->get_description ().value_or (" " ));
392393
393394 return obj;
394395 });
@@ -427,6 +428,11 @@ Napi::Value MetaGroupWrapper::infoSet(const Napi::CallbackInfo& info) {
427428 this ->meta_group ->info ->set_profile_pic (profilePic);
428429 }
429430
431+ if (auto description = maybeNonemptyString (
432+ obj.Get (" description" ), " MetaGroupWrapper::setInfo description" )) {
433+ this ->meta_group ->info ->set_description_truncated (*description);
434+ }
435+
430436 return this ->infoGet (info);
431437 });
432438}
Original file line number Diff line number Diff line change @@ -122,6 +122,10 @@ declare module 'libsession_util_nodejs' {
122122 deleteBeforeSeconds : number | null ;
123123 expirySeconds : number | null ;
124124 profilePicture : ProfilePicture | null ;
125+ /**
126+ * The group description. Defaults to "" if unset
127+ */
128+ description : string ;
125129 } ;
126130
127131 export type GroupInfoGet = GroupInfoShared & {
You can’t perform that action at this time.
0 commit comments