about summary refs log tree commit diff
path: root/Tests/LibMatrix.HomeserverEmulator
diff options
context:
space:
mode:
authorEmma [it/its]@Rory& <root@rory.gay>2024-03-05 11:32:11 +0100
committerEmma [it/its]@Rory& <root@rory.gay>2024-03-05 11:32:11 +0100
commitac534c0d909f274a0afec8d2fab28b32d0773668 (patch)
tree37a2f363054cfbae0b70ff535862abb8b8d88ece /Tests/LibMatrix.HomeserverEmulator
parentHomeserverEmulator work (diff)
downloadLibMatrix-ac534c0d909f274a0afec8d2fab28b32d0773668.tar.xz
Fix repo URIs
Diffstat (limited to 'Tests/LibMatrix.HomeserverEmulator')
-rw-r--r--Tests/LibMatrix.HomeserverEmulator/Services/MediaStore.cs24
1 files changed, 12 insertions, 12 deletions
diff --git a/Tests/LibMatrix.HomeserverEmulator/Services/MediaStore.cs b/Tests/LibMatrix.HomeserverEmulator/Services/MediaStore.cs
index e34a731..e40af89 100644
--- a/Tests/LibMatrix.HomeserverEmulator/Services/MediaStore.cs
+++ b/Tests/LibMatrix.HomeserverEmulator/Services/MediaStore.cs
@@ -30,18 +30,18 @@ public class MediaStore {
             Console.WriteLine("Data storage is disabled, not loading rooms from disk");
     }
 
-    public async Task<object> UploadMedia(string userId, string mimeType, Stream stream, string? filename = null) {
-        var mediaId = $"mxc://{Guid.NewGuid().ToString()}";
-        var path = Path.Combine(_config.DataStoragePath, "media", mediaId);
-        if (!Directory.Exists(path)) Directory.CreateDirectory(path);
-        var file = Path.Combine(path, filename ?? "file");
-        await using var fs = File.Create(file);
-        await stream.CopyToAsync(fs);
-        index.Add(new() {
-            
-        });
-        return media;
-    }
+    // public async Task<object> UploadMedia(string userId, string mimeType, Stream stream, string? filename = null) {
+    //     var mediaId = $"mxc://{Guid.NewGuid().ToString()}";
+    //     var path = Path.Combine(_config.DataStoragePath, "media", mediaId);
+    //     if (!Directory.Exists(path)) Directory.CreateDirectory(path);
+    //     var file = Path.Combine(path, filename ?? "file");
+    //     await using var fs = File.Create(file);
+    //     await stream.CopyToAsync(fs);
+    //     index.Add(new() {
+    //         
+    //     });
+    //     return media;
+    // }
 
     public class MediaInfo { }
 }
\ No newline at end of file