From 17cfd3ca31ce3d065ecd882e4ec475793e140528 Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Wed, 10 May 2023 18:24:31 +0300 Subject: [PATCH] Promote last message room list fetching to .userInitiated --- .../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 c93a76b3d..70279f4c6 100644 --- a/ElementX/Sources/Services/Room/RoomSummary/RoomSummaryProvider.swift +++ b/ElementX/Sources/Services/Room/RoomSummary/RoomSummaryProvider.swift @@ -119,7 +119,7 @@ class RoomSummaryProvider: RoomSummaryProviderProtocol { // Dispatch onto another queue otherwise the rust method latestRoomMessage crashes. // This will be fixed when we get async uniffi support. - DispatchQueue.global(qos: .default).sync { + DispatchQueue.global(qos: .userInitiated).sync { if let latestRoomMessage = room.latestRoomMessage() { let lastMessage = EventTimelineItemProxy(item: latestRoomMessage) lastMessageFormattedTimestamp = lastMessage.timestamp.formattedMinimal()