fix: use Icons.Setting (singular) - folds v2.6.2 has no Icons.Settings
CI / Build & Quality Checks (push) Successful in 10m30s

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:
Lotus Bot
2026-05-22 02:23:17 -04:00
parent 6507ce7711
commit eb2e2670d9
+2 -2
View File
@@ -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">