From ce44c651d04afd1cdf6f653b4116e82187f30975 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 20 Aug 2019 12:35:29 +0200 Subject: [PATCH] keep deserialized parts compatible with part api, to avoid breakage when passing real parts --- src/editor/parts.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/editor/parts.js b/src/editor/parts.js index d3569a7347..cf11dc74dc 100644 --- a/src/editor/parts.js +++ b/src/editor/parts.js @@ -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); } }