fix: use Icons.Setting (singular) - folds v2.6.2 has no Icons.Settings
Icons.Settings is undefined in folds v2.6.2; only Icons.Setting exists. This caused TypeError: i is not a function when rendering m.room.join_rules or m.room.guest_access state events in the room timeline, crashing DMs with those events visible in the initial view.
This commit is contained in:
@@ -1694,7 +1694,7 @@ export function RoomTimeline({ room, eventId, roomInputRef, editor }: RoomTimeli
|
||||
<EventContent
|
||||
messageLayout={messageLayout}
|
||||
time={timeJSX}
|
||||
iconSrc={Icons.Settings}
|
||||
iconSrc={Icons.Setting}
|
||||
content={
|
||||
<Box grow="Yes" direction="Column">
|
||||
<Text size="T300" priority="300">
|
||||
@@ -1736,7 +1736,7 @@ export function RoomTimeline({ room, eventId, roomInputRef, editor }: RoomTimeli
|
||||
<EventContent
|
||||
messageLayout={messageLayout}
|
||||
time={timeJSX}
|
||||
iconSrc={Icons.Settings}
|
||||
iconSrc={Icons.Setting}
|
||||
content={
|
||||
<Box grow="Yes" direction="Column">
|
||||
<Text size="T300" priority="300">
|
||||
|
||||
Reference in New Issue
Block a user