keep deserialized parts compatible with part api,
to avoid breakage when passing real parts
This commit is contained in:
parent
d4fbe7ed69
commit
ce44c651d0
1 changed files with 2 additions and 2 deletions
|
@ -312,7 +312,7 @@ class UserPillPart extends PillPart {
|
||||||
|
|
||||||
serialize() {
|
serialize() {
|
||||||
const obj = super.serialize();
|
const obj = super.serialize();
|
||||||
obj.userId = this.resourceId;
|
obj.resourceId = this.resourceId;
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -403,7 +403,7 @@ export class PartCreator {
|
||||||
case "room-pill":
|
case "room-pill":
|
||||||
return this.roomPill(part.text);
|
return this.roomPill(part.text);
|
||||||
case "user-pill":
|
case "user-pill":
|
||||||
return this.userPill(part.text, part.userId);
|
return this.userPill(part.text, part.resourceId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue