Don't serialize resourceId in AtRoomPill
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>pull/21833/head
parent
c1549dfac5
commit
0c869364e9
|
@ -34,7 +34,7 @@ interface ISerializedPart {
|
||||||
interface ISerializedPillPart {
|
interface ISerializedPillPart {
|
||||||
type: Type.AtRoomPill | Type.RoomPill | Type.UserPill;
|
type: Type.AtRoomPill | Type.RoomPill | Type.UserPill;
|
||||||
text: string;
|
text: string;
|
||||||
resourceId: string;
|
resourceId?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SerializedPart = ISerializedPart | ISerializedPillPart;
|
export type SerializedPart = ISerializedPart | ISerializedPillPart;
|
||||||
|
@ -374,6 +374,13 @@ class AtRoomPillPart extends RoomPillPart {
|
||||||
get type(): IPillPart["type"] {
|
get type(): IPillPart["type"] {
|
||||||
return Type.AtRoomPill;
|
return Type.AtRoomPill;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
serialize(): ISerializedPillPart {
|
||||||
|
return {
|
||||||
|
type: this.type,
|
||||||
|
text: this.text,
|
||||||
|
};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class UserPillPart extends PillPart {
|
class UserPillPart extends PillPart {
|
||||||
|
|
Loading…
Reference in New Issue