Add EchoHub as submodule and update project references paths

This commit is contained in:
Stone_Red
2026-07-15 19:49:38 +02:00
parent c0570970de
commit ebac2b4eb7
4 changed files with 18 additions and 3 deletions
+3
View File
@@ -0,0 +1,3 @@
[submodule "EchoHub"]
path = EchoHub
url = https://github.com/HueByte/EchoHub.git
+2 -2
View File
@@ -34,7 +34,7 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\..\EchoHub\src\EchoHub.Client\EchoHub.Client.csproj" /> <ProjectReference Include="..\EchoHub\src\EchoHub.Client\EchoHub.Client.csproj" />
<ProjectReference Include="..\..\EchoHub\src\EchoHub.Core\EchoHub.Core.csproj" /> <ProjectReference Include="..\EchoHub\src\EchoHub.Core\EchoHub.Core.csproj" />
</ItemGroup> </ItemGroup>
</Project> </Project>
+12 -1
View File
@@ -388,7 +388,18 @@ public sealed class ConnectionService : IDisposable
{ {
if (!_connections.TryGetValue(serverUrl, out var entry)) if (!_connections.TryGetValue(serverUrl, out var entry))
return null; return null;
return await entry.ApiClient.DownloadBytesAsync(relativeUrl); try
{
var tempPath = await entry.ApiClient.DownloadFileToTempAsync(relativeUrl, "image");
if (tempPath is null) return null;
var bytes = await File.ReadAllBytesAsync(tempPath);
try { File.Delete(tempPath); } catch { }
return bytes;
}
catch
{
return null;
}
} }
public string? GetCurrentUsername(string serverUrl) public string? GetCurrentUsername(string serverUrl)
Submodule
+1
Submodule EchoHub added at 3538ec8005