about summary refs log tree commit diff
path: root/MatrixUtils.LibDMSpace
diff options
context:
space:
mode:
Diffstat (limited to 'MatrixUtils.LibDMSpace')
-rw-r--r--MatrixUtils.LibDMSpace/DMSpaceRoom.cs5
-rw-r--r--MatrixUtils.LibDMSpace/MatrixUtils.LibDMSpace.csproj4
2 files changed, 4 insertions, 5 deletions
diff --git a/MatrixUtils.LibDMSpace/DMSpaceRoom.cs b/MatrixUtils.LibDMSpace/DMSpaceRoom.cs

index 89ab91b..1186b6c 100644 --- a/MatrixUtils.LibDMSpace/DMSpaceRoom.cs +++ b/MatrixUtils.LibDMSpace/DMSpaceRoom.cs
@@ -58,7 +58,7 @@ public class DMSpaceRoom(AuthenticatedHomeserverGeneric homeserver, string roomI var (userId, dmRooms) = entry; DMSpaceChildLayer? layer = await GetStateOrNullAsync<DMSpaceChildLayer>(DMSpaceChildLayer.EventId, userId.UrlEncode()) ?? await CreateLayer(userId); return (entry, layer); - }).ToAsyncEnumerable(); + }).ToAsyncResultEnumerable(); await foreach (var ((userId, dmRooms), layer) in layerTasks) { var space = Homeserver.GetRoom(layer.SpaceId).AsSpace(); @@ -117,8 +117,7 @@ public class DMSpaceRoom(AuthenticatedHomeserverGeneric homeserver, string roomI catch { return (x, null); } - - }).ToAsyncEnumerable(); + }).ToAsyncResultEnumerable(); await foreach (var (layer, profile) in getProfileTasks) { if (profile is null) continue; var layerContent = layer.TypedContent as DMSpaceChildLayer; diff --git a/MatrixUtils.LibDMSpace/MatrixUtils.LibDMSpace.csproj b/MatrixUtils.LibDMSpace/MatrixUtils.LibDMSpace.csproj
index e39440e..225b264 100644 --- a/MatrixUtils.LibDMSpace/MatrixUtils.LibDMSpace.csproj +++ b/MatrixUtils.LibDMSpace/MatrixUtils.LibDMSpace.csproj
@@ -1,7 +1,7 @@ <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> - <TargetFramework>net9.0</TargetFramework> + <TargetFramework>net10.0</TargetFramework> <Nullable>enable</Nullable> <ImplicitUsings>enable</ImplicitUsings> <LinkIncremental>true</LinkIncremental> @@ -10,6 +10,6 @@ </PropertyGroup> <ItemGroup> - <ProjectReference Include="..\LibMatrix\LibMatrix\LibMatrix.csproj" /> + <ProjectReference Include="..\LibMatrix\LibMatrix\LibMatrix.csproj"/> </ItemGroup> </Project>