From 8a3e71378f7208f75bd688c02b0ae5c43ca600f2 Mon Sep 17 00:00:00 2001 From: Mohsen Date: Fri, 16 Feb 2024 15:57:41 +0300 Subject: [PATCH] feat: add setBio endpoint (#4692) --- VERSION | 2 +- services/accounts/settings.go | 1 + services/ext/api.go | 4 ++++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 02645e3c7..49f2a31dd 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.174.7 +0.174.8 diff --git a/services/accounts/settings.go b/services/accounts/settings.go index 3435bf8ba..3b1e2f60a 100644 --- a/services/accounts/settings.go +++ b/services/accounts/settings.go @@ -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) } diff --git a/services/ext/api.go b/services/ext/api.go index 444eeb455..1121ba492 100644 --- a/services/ext/api.go +++ b/services/ext/api.go @@ -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) }