summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-09-08 18:52:15 +0200
committerRory& <root@rory.gay>2025-09-08 18:52:15 +0200
commitf0b37faf4510733e743848231966c5eedb978b10 (patch)
treeb8b32eeee04457dd28896c978e34370a26cfe6ac
parentOld changes (diff)
downloadMatrixLogFwd-f0b37faf4510733e743848231966c5eedb978b10.tar.xz
Update LibMatri
m---------LibMatrix0
-rw-r--r--MatrixLogFwd/MatrixLogFwd.csproj2
-rw-r--r--MatrixLogFwd/Program.cs5
3 files changed, 4 insertions, 3 deletions
diff --git a/LibMatrix b/LibMatrix
-Subproject bf1664b254bfc224f0087eb82fdba5235fbd162
+Subproject 013f1693885a5de01ae357af2909589e925863d
diff --git a/MatrixLogFwd/MatrixLogFwd.csproj b/MatrixLogFwd/MatrixLogFwd.csproj

index 387c966..10ad424 100644 --- a/MatrixLogFwd/MatrixLogFwd.csproj +++ b/MatrixLogFwd/MatrixLogFwd.csproj
@@ -2,7 +2,7 @@ <PropertyGroup> <OutputType>Exe</OutputType> - <TargetFramework>net8.0</TargetFramework> + <TargetFramework>net9.0</TargetFramework> <LangVersion>preview</LangVersion> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> diff --git a/MatrixLogFwd/Program.cs b/MatrixLogFwd/Program.cs
index 4f2c8e1..c3765b2 100644 --- a/MatrixLogFwd/Program.cs +++ b/MatrixLogFwd/Program.cs
@@ -13,7 +13,8 @@ Console.WriteLine("Hello, World!"); var cfgPath = Util.ExpandPath($"~/.config/MatrixLogFwd/config.json"); var cfg = JsonSerializer.Deserialize<Config>(System.IO.File.ReadAllText(cfgPath)); -var hs = await new AuthenticatedHomeserverGeneric(cfg.HomeserverBaseUrl, new(){Client = cfg.HomeserverBaseUrl}, null, cfg.AccessToken).Initialise(); +var hs = new AuthenticatedHomeserverGeneric(cfg.HomeserverBaseUrl, new(){Client = cfg.HomeserverBaseUrl}, null, cfg.AccessToken); +await hs.Initialise(); Console.WriteLine(hs); string mode = "lines"; @@ -135,7 +136,7 @@ else break; } Console.WriteLine($"Read {read} bytes"); - var ms = new System.IO.MemoryStream(buffer, 0, read); + var ms = new MemoryStream(buffer, 0, read); var filename = $"log-{DateTime.Now:yyyy-MM-dd-HH-mm-ss}.txt"; await room.SendFileAsync(filename, ms); }