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

code clean

上级 0c941388
......@@ -111,7 +111,6 @@ export class Contact extends Accessory implements Sayable {
// when we call `load()`, `this` should already be extend-ed a child class.
// so we force `this as any` at here to make the call.
const newContact = new (this as any)(id) as Contact
// newContact.payload = this.puppet.cacheContactPayload.get(id)
this.pool.set(id, newContact)
......
......@@ -64,7 +64,6 @@ export class Friendship extends Accessory implements Acceptable {
id : string,
): T['prototype'] {
const newFriendship = new (this as any)(id)
// newFriendRequest.payload = this.puppet.cacheFriendRequestPayload.get(id)
return newFriendship
}
......
......@@ -112,8 +112,6 @@ export class Message extends Accessory implements Sayable {
*/
const msg = new this(id)
// msg.payload = this.puppet.cacheMessagePayload.get(id)
return msg
}
......
......@@ -249,7 +249,6 @@ export class Room extends Accessory implements Sayable {
}
const newRoom = new (this as any)(id) as Room
// newRoom.payload = this.puppet.cacheRoomPayload.get(id)
this.pool.set(id, newRoom)
return newRoom
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册