feat: add setBio endpoint (#4692)
This commit is contained in:
parent
add46fbda0
commit
8a3e71378f
|
@ -166,6 +166,7 @@ func (api *SettingsAPI) DeleteExemptions(id string) error {
|
|||
return api.db.DeleteExemptions(id)
|
||||
}
|
||||
|
||||
// Deprecated: Use api.go/SetBio instead
|
||||
func (api *SettingsAPI) SetBio(bio string) error {
|
||||
return (*api.messenger).SetBio(bio)
|
||||
}
|
||||
|
|
|
@ -962,6 +962,10 @@ func (api *PublicAPI) SetDisplayName(ctx context.Context, displayName string) er
|
|||
return api.service.messenger.SetDisplayName(displayName)
|
||||
}
|
||||
|
||||
func (api *PublicAPI) SetBio(ctx context.Context, bio string) error {
|
||||
return api.service.messenger.SetBio(bio)
|
||||
}
|
||||
|
||||
func (api *PublicAPI) MarkAsTrusted(ctx context.Context, contactID string) error {
|
||||
return api.service.messenger.MarkAsTrusted(ctx, contactID)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue