提交 0aaa07b4 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

contact.toString() return remark or name or id

上级 c2db732a
......@@ -64,7 +64,13 @@ export class Contact implements Sayable {
}
}
public toString() { return this.id }
public toString(): string {
if (!this.obj) {
return this.id
}
return this.obj.remark || this.obj.name || this.id
}
public toStringEx() { return `Contact(${this.obj && this.obj.name}[${this.id}])` }
private parse(rawObj: ContactRawObj): ContactObj | null {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册