From 99906b6df728abcdf4fe371dcc8f8cefbecc9446 Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Mon, 21 Aug 2023 18:04:36 +0200 Subject: [PATCH] feat: Use `roomInfo` to fetch the avatar URL. --- .../Sources/Services/Room/RoomSummary/RoomSummaryProvider.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ElementX/Sources/Services/Room/RoomSummary/RoomSummaryProvider.swift b/ElementX/Sources/Services/Room/RoomSummary/RoomSummaryProvider.swift index 56e369e50..773f34769 100644 --- a/ElementX/Sources/Services/Room/RoomSummary/RoomSummaryProvider.swift +++ b/ElementX/Sources/Services/Room/RoomSummary/RoomSummaryProvider.swift @@ -222,7 +222,7 @@ class RoomSummaryProvider: RoomSummaryProviderProtocol { let details = RoomSummaryDetails(id: roomInfo.id, name: roomInfo.name ?? roomInfo.id, isDirect: roomInfo.isDirect, - avatarURL: roomListItem.avatarUrl().flatMap(URL.init(string:)), + avatarURL: roomInfo.avatarUrl.flatMap(URL.init(string:)), lastMessage: attributedLastMessage, lastMessageFormattedTimestamp: lastMessageFormattedTimestamp, unreadNotificationCount: UInt(roomInfo.notificationCount),