1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-08-07 23:02:56 +03:00

Work around spec bug for m.room.avatar state event content type (#4245)

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski
2024-06-17 10:30:13 +01:00
committed by GitHub
parent 9218f6380c
commit 7ecaa53e34

View File

@@ -95,7 +95,9 @@ export interface RoomTopicEventContent {
export interface RoomAvatarEventContent { export interface RoomAvatarEventContent {
url?: string; url?: string;
info?: ImageInfo; // The spec says that an encrypted file can be used for the thumbnail but this isn't true
// https://github.com/matrix-org/matrix-spec/issues/562 so omit those fields
info?: Omit<ImageInfo, "thumbnail_file">;
} }
export interface RoomPinnedEventsEventContent { export interface RoomPinnedEventsEventContent {