|
|
@@ -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,
|