feat(settings/profile): extend `getContactDetailsAsJson` with bio and social links

iterates: #6797
This commit is contained in:
Patryk Osmaczko 2022-08-10 10:23:07 +02:00 committed by osmaczko
parent 6804e2aa91
commit 6783f3a321
1 changed files with 4 additions and 1 deletions

View File

@ -53,6 +53,7 @@ import ../../../app_service/service/ens/service as ens_service
import ../../../app_service/service/network/service as network_service
import ../../../app_service/service/general/service as general_service
from ../../../app_service/common/types import StatusType
import ../../../app_service/common/social_links
import ../../core/notifications/details
import ../../core/eventemitter
@ -721,7 +722,9 @@ method getContactDetailsAsJson*[T](self: Module[T], publicKey: string): string =
# TODO rename verificationStatus to outgoingVerificationStatus
"verificationStatus": contact.verificationStatus.int,
"incomingVerificationStatus": request.status.int,
"hasAddedUs": contact.hasAddedUs
"hasAddedUs": contact.hasAddedUs,
"socialLinks": $contact.socialLinks.toJsonNode(),
"bio": contact.bio
}
return $jsonObj