keep deserialized parts compatible with part api,

to avoid breakage when passing real parts
pull/21833/head
Bruno Windels 2019-08-20 12:35:29 +02:00
parent d4fbe7ed69
commit ce44c651d0
1 changed files with 2 additions and 2 deletions

View File

@ -312,7 +312,7 @@ class UserPillPart extends PillPart {
serialize() {
const obj = super.serialize();
obj.userId = this.resourceId;
obj.resourceId = this.resourceId;
return obj;
}
}
@ -403,7 +403,7 @@ export class PartCreator {
case "room-pill":
return this.roomPill(part.text);
case "user-pill":
return this.userPill(part.text, part.userId);
return this.userPill(part.text, part.resourceId);
}
}