I can create a new user as root with below object and gprc method
```
const msg: ClientMsg = {
acc: {
id: '106042',
userId: 'new',
authLevel: 20,
desc: {
defaultAcs: {
auth: 'JRWPS',
anon: 'N',
},
public: new TextEncoder().encode(
JSON.stringify({
userId,
fn: fullName, // "John Doe",
photo: profileImage
? {
type: getMimeType(profile_image).replace('image/', ''),
ref: profile_image,
}
: undefined,
}),
),
trusted: new TextEncoder().encode(
JSON.stringify({
verified: true,
}),
),
},
tags: username ? [`user_id:${userId}`] : [],
scheme: 'basic',
secret: secret,
login: false,
token: new Uint8Array(0),
state: 'ok',
tmpScheme: '',
tmpSecret: new Uint8Array(0),
cred: [],
},
extra: {
authLevel: 30,
},
};
```
but how can I update the current user's "Public" features
I tried these objects But neither of these worked.
```
const msg: ClientMsg = {
acc: {
id: '106042',
userId: tinodeUserId,
authLevel: 20,
desc: {
defaultAcs: undefined,
public: new TextEncoder().encode(
JSON.stringify({
userId,
fn: fullName,
photo: profileImage
? {
type: getMimeType(profile_image).replace('image/', ''),
ref: profile_image,
}
: undefined,
}),
),
},
},
extra: {
onBehalfOf: tinodeUserId,
authLevel: 30,
},
}
```
```
const msg: ClientMsg = {
set: {
id: '462482',
topic: 'me',
query: {
desc: {
public: new TextEncoder().encode(
JSON.stringify({
userId,
fn: fullName,
photo: profileImage
? {
type: getMimeType(profile_image).replace('image/', ''),
ref: profile_image,
}
: undefined,
}),
),
},
},
},
extra: {
onBehalfOf: tinodeUserId,
authLevel: 30,
},
};
```