feat(settings/profile): extend `getContactDetailsAsJson` with bio and social links
iterates: #6797
This commit is contained in:
parent
6804e2aa91
commit
6783f3a321
|
@ -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/network/service as network_service
|
||||||
import ../../../app_service/service/general/service as general_service
|
import ../../../app_service/service/general/service as general_service
|
||||||
from ../../../app_service/common/types import StatusType
|
from ../../../app_service/common/types import StatusType
|
||||||
|
import ../../../app_service/common/social_links
|
||||||
|
|
||||||
import ../../core/notifications/details
|
import ../../core/notifications/details
|
||||||
import ../../core/eventemitter
|
import ../../core/eventemitter
|
||||||
|
@ -721,7 +722,9 @@ method getContactDetailsAsJson*[T](self: Module[T], publicKey: string): string =
|
||||||
# TODO rename verificationStatus to outgoingVerificationStatus
|
# TODO rename verificationStatus to outgoingVerificationStatus
|
||||||
"verificationStatus": contact.verificationStatus.int,
|
"verificationStatus": contact.verificationStatus.int,
|
||||||
"incomingVerificationStatus": request.status.int,
|
"incomingVerificationStatus": request.status.int,
|
||||||
"hasAddedUs": contact.hasAddedUs
|
"hasAddedUs": contact.hasAddedUs,
|
||||||
|
"socialLinks": $contact.socialLinks.toJsonNode(),
|
||||||
|
"bio": contact.bio
|
||||||
}
|
}
|
||||||
return $jsonObj
|
return $jsonObj
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue