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

better filename for attachment

上级 0d54c82d
......@@ -280,10 +280,9 @@ export class Message implements Sayable {
public getSenderString() {
const fromName = Contact.load(this.obj.from).name()
const roomTopic = this.obj.room
? Room.load(this.obj.room).topic()
? (':' + Room.load(this.obj.room).topic())
: ''
// return '<' + (name ? name.toStringEx() : '') + roomTopic + '>'
return `<${fromName}:${roomTopic}>`
return `<${fromName}${roomTopic}>`
}
public getContentString() {
let content = UtilLib.plainText(this.obj.content)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册