feat: add setBio endpoint (#4692)

This commit is contained in:
Mohsen 2024-02-16 15:57:41 +03:00 committed by GitHub
parent add46fbda0
commit 8a3e71378f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 1 deletions

View File

@ -1 +1 @@
0.174.7 0.174.8

View File

@ -166,6 +166,7 @@ func (api *SettingsAPI) DeleteExemptions(id string) error {
return api.db.DeleteExemptions(id) return api.db.DeleteExemptions(id)
} }
// Deprecated: Use api.go/SetBio instead
func (api *SettingsAPI) SetBio(bio string) error { func (api *SettingsAPI) SetBio(bio string) error {
return (*api.messenger).SetBio(bio) return (*api.messenger).SetBio(bio)
} }

View File

@ -962,6 +962,10 @@ func (api *PublicAPI) SetDisplayName(ctx context.Context, displayName string) er
return api.service.messenger.SetDisplayName(displayName) 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 { func (api *PublicAPI) MarkAsTrusted(ctx context.Context, contactID string) error {
return api.service.messenger.MarkAsTrusted(ctx, contactID) return api.service.messenger.MarkAsTrusted(ctx, contactID)
} }