user %!s(int64=6) %!d(string=hai) anos
pai
achega
f6eab1b17a

+ 1 - 0
lib/contact-item.d.ts

@@ -7,6 +7,7 @@ export declare class ContactItem {
     groups: string[];
     names: string[];
     notes: string;
+    canSendFromAddrs: string[];
     constructor(props: ContactParams);
     matchesAddressOrName(search: string): boolean;
     matchesGroup(group: string): boolean;

+ 2 - 0
lib/contact-item.js

@@ -5,6 +5,7 @@ class ContactItem {
         this.data = props;
         this.hash = props.hash;
         this.id = props.id;
+        this.canSendFromAddrs = props.canSendFromAddrs || false;
         this.addrs = props.addrs || [];
         this.groups = props.groups || [];
         this.names = props.names || [];
@@ -56,6 +57,7 @@ class ContactItem {
     getData() {
         return {
             addrs: this.addrs,
+            canSendFromAddrs: this.canSendFromAddrs,
             groups: this.groups,
             hash: this.hash,
             id: this.id,

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 1
lib/contact-item.js.map


+ 1 - 0
lib/contact-params.d.ts

@@ -5,4 +5,5 @@ export interface ContactParams {
     addrs: string[];
     groups: string[];
     notes: string;
+    canSendFromAddrs: string[];
 }

+ 3 - 0
src/contact-item.ts

@@ -9,11 +9,13 @@ export class ContactItem {
   public groups: string[];
   public names: string[];
   public notes: string;
+  public canSendFromAddrs: string[];
   
   constructor(props: ContactParams) {
     this.data = props;
     this.hash = props.hash;
     this.id = props.id;
+    this.canSendFromAddrs = props.canSendFromAddrs || false;
     this.addrs = props.addrs || [];
     this.groups = props.groups || [];
     this.names = props.names || [];
@@ -72,6 +74,7 @@ export class ContactItem {
   public getData(): ContactParams {
     return {
       addrs: this.addrs,
+      canSendFromAddrs: this.canSendFromAddrs,
       groups: this.groups,
       hash: this.hash,
       id: this.id,

+ 1 - 0
src/contact-params.ts

@@ -5,4 +5,5 @@ export interface ContactParams {
     addrs: string[];
     groups: string[];
     notes: string;
+    canSendFromAddrs: string[];
 }