fix: add m.server_notice icon case to getRoomIconSrc

Server notice rooms were falling through to the default hash/lock icon
in the room list. Now return Icons.Warning before any other type checks.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-02 14:47:48 -04:00
parent 742132661f
commit 26f1e234a2
+2
View File
@@ -263,6 +263,8 @@ export const getRoomIconSrc = (
roomType?: string,
joinRule?: JoinRule,
): IconSrc => {
if (roomType === 'm.server_notice') return icons.Warning;
if (roomType === RoomType.Space) {
if (joinRule === JoinRule.Public) return icons.SpaceGlobe;
if (