mirror of https://github.com/vector-im/riot-web
keep deserialized parts compatible with part api,
to avoid breakage when passing real partspull/21833/head
parent
d4fbe7ed69
commit
ce44c651d0
|
@ -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…
Reference in New Issue