adding peer/contactcard attributes
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
ycc
2026-03-03 10:46:25 +01:00
parent 8836d5c591
commit fab5818ec7
7 changed files with 546 additions and 194 deletions

View File

@@ -26,6 +26,7 @@ type Peer struct {
MyIdentity *meowlib.KeyPair `json:"my_identity,omitempty"`
MyEncryptionKp *meowlib.KeyPair `json:"my_encryption_kp,omitempty"`
MyLookupKp *meowlib.KeyPair `json:"my_lookup_kp,omitempty"`
MySymKey string `json:"my_sym_key,omitempty"`
MyPullServers []string `json:"my_pull_servers,omitempty"`
// Peer keys and infos
//Contact meowlib.ContactCard `json:"contact,omitempty"` // todo : remove
@@ -40,6 +41,8 @@ type Peer struct {
LastMessage *InternalUserMessage `json:"last_message,omitempty"`
// Internal management attributes
Visible bool `json:"visible,omitempty"`
SendDeliveryAck bool `json:"send_delivery_ack,omitempty"`
SendProcessingAck bool `json:"send_processing_ack,omitempty"`
VisiblePassword string `json:"visible_password,omitempty"`
PasswordType string `json:"password_type,omitempty"`
Blocked bool `json:"blocked,omitempty"`