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

better toString

上级 df8cfe01
......@@ -138,7 +138,7 @@ export class Message implements Sayable {
* @private
*/
public toString() {
return `Message(${Misc.plainText(this.obj.content)})`
return `Message<${Misc.plainText(this.obj.content)}>`
}
/**
......@@ -698,7 +698,7 @@ export class MediaMessage extends Message {
* @private
*/
public toString() {
return `MediaMessage(${this.filename()})`
return `MediaMessage<${this.filename()}>`
}
/**
......
......@@ -101,7 +101,7 @@ export class Room extends EventEmitter implements Sayable {
/**
* @private
*/
public toString() { return this.id }
public toString() { return `Room<${this.topic()}>` }
/**
* @private
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册