about summary refs log tree commit diff
path: root/LibMatrix/Helpers
diff options
context:
space:
mode:
Diffstat (limited to 'LibMatrix/Helpers')
-rw-r--r--LibMatrix/Helpers/HomeserverWeightEstimation.cs58
-rw-r--r--LibMatrix/Helpers/MessageBuilder.cs2
-rw-r--r--LibMatrix/Helpers/SyncStateResolver.cs6
3 files changed, 4 insertions, 62 deletions
diff --git a/LibMatrix/Helpers/HomeserverWeightEstimation.cs b/LibMatrix/Helpers/HomeserverWeightEstimation.cs
deleted file mode 100644
index 5735af3..0000000
--- a/LibMatrix/Helpers/HomeserverWeightEstimation.cs
+++ /dev/null
@@ -1,58 +0,0 @@
-namespace LibMatrix.Helpers;
-
-public class HomeserverWeightEstimation {
-    public static Dictionary<string, int> EstimatedSize = new() {
-        { "matrix.org", 843870 },
-        { "anontier.nl", 44809 },
-        { "nixos.org", 8195 },
-        { "the-apothecary.club", 6983 },
-        { "waifuhunter.club", 3953 },
-        { "neko.dev", 2666 },
-        { "nerdsin.space", 2647 },
-        { "feline.support", 2633 },
-        { "gitter.im", 2584 },
-        { "midov.pl", 2219 },
-        { "no.lgbtqia.zone", 2083 },
-        { "nheko.im", 1883 },
-        { "fachschaften.org", 1849 },
-        { "pixelthefox.net", 1478 },
-        { "arcticfoxes.net", 981 },
-        { "pixie.town", 817 },
-        { "privacyguides.org", 809 },
-        { "rory.gay", 653 },
-        { "artemislena.eu", 599 },
-        { "alchemi.dev", 445 },
-        { "jameskitt616.one", 390 },
-        { "hackint.org", 382 },
-        { "pikaviestin.fi", 368 },
-        { "matrix.nomagic.uk", 337 },
-        { "thearcanebrony.net", 178 },
-        { "fairydust.space", 176 },
-        { "grin.hu", 176 },
-        { "envs.net", 165 },
-        { "tastytea.de", 143 },
-        { "koneko.chat", 121 },
-        { "vscape.tk", 115 },
-        { "funklause.de", 112 },
-        { "seirdy.one", 107 },
-        { "pcg.life", 72 },
-        { "draupnir.midnightthoughts.space", 22 },
-        { "tchncs.de", 19 },
-        { "catgirl.cloud", 16 },
-        { "possum.city", 16 },
-        { "tu-dresden.de", 9 },
-        { "fosscord.com", 9 },
-        { "nightshade.fun", 8 },
-        { "matrix.eclipse.org", 8 },
-        { "masfloss.net", 8 },
-        { "e2e.zone", 8 },
-        { "hyteck.de", 8 }
-    };
-
-    public static Dictionary<string, int> LargeRooms = new() {
-        { "!ehXvUhWNASUkSLvAGP:matrix.org", 21957 },
-        { "!fRRqjOaQcUbKOfCjvc:anontier.nl", 19117 },
-        { "!OGEhHVWSdvArJzumhm:matrix.org", 101457 },
-        { "!YTvKGNlinIzlkMTVRl:matrix.org", 30164 }
-    };
-}
\ No newline at end of file
diff --git a/LibMatrix/Helpers/MessageBuilder.cs b/LibMatrix/Helpers/MessageBuilder.cs
index d897078..cfda6b3 100644
--- a/LibMatrix/Helpers/MessageBuilder.cs
+++ b/LibMatrix/Helpers/MessageBuilder.cs
@@ -93,7 +93,7 @@ public class MessageBuilder(string msgType = "m.text", string format = "org.matr
 
     public MessageBuilder WithTable(Action<TableBuilder> tableBuilder) {
         var tb = new TableBuilder(this);
-        this.WithHtmlTag("table", msb => tableBuilder(tb));
+        WithHtmlTag("table", msb => tableBuilder(tb));
         return this;
     }
 
diff --git a/LibMatrix/Helpers/SyncStateResolver.cs b/LibMatrix/Helpers/SyncStateResolver.cs
index 0daccec..e2dbdee 100644
--- a/LibMatrix/Helpers/SyncStateResolver.cs
+++ b/LibMatrix/Helpers/SyncStateResolver.cs
@@ -142,7 +142,7 @@ public class SyncStateResolver(AuthenticatedHomeserverGeneric homeserver, ILogge
         return oldState;
     }
 
-    private SyncResponse.RoomsDataStructure.LeftRoomDataStructure MergeLeftRoomDataStructure(SyncResponse.RoomsDataStructure.LeftRoomDataStructure oldData,
+    private static SyncResponse.RoomsDataStructure.LeftRoomDataStructure MergeLeftRoomDataStructure(SyncResponse.RoomsDataStructure.LeftRoomDataStructure oldData,
         SyncResponse.RoomsDataStructure.LeftRoomDataStructure newData) {
         oldData.AccountData ??= new EventList();
         oldData.AccountData.Events ??= [];
@@ -165,7 +165,7 @@ public class SyncStateResolver(AuthenticatedHomeserverGeneric homeserver, ILogge
         return oldData;
     }
 
-    private SyncResponse.RoomsDataStructure.InvitedRoomDataStructure MergeInvitedRoomDataStructure(SyncResponse.RoomsDataStructure.InvitedRoomDataStructure oldData,
+    private static SyncResponse.RoomsDataStructure.InvitedRoomDataStructure MergeInvitedRoomDataStructure(SyncResponse.RoomsDataStructure.InvitedRoomDataStructure oldData,
         SyncResponse.RoomsDataStructure.InvitedRoomDataStructure newData) {
         oldData.InviteState ??= new EventList();
         oldData.InviteState.Events ??= [];
@@ -175,7 +175,7 @@ public class SyncStateResolver(AuthenticatedHomeserverGeneric homeserver, ILogge
         return oldData;
     }
 
-    private SyncResponse.RoomsDataStructure.JoinedRoomDataStructure MergeJoinedRoomDataStructure(SyncResponse.RoomsDataStructure.JoinedRoomDataStructure oldData,
+    private static SyncResponse.RoomsDataStructure.JoinedRoomDataStructure MergeJoinedRoomDataStructure(SyncResponse.RoomsDataStructure.JoinedRoomDataStructure oldData,
         SyncResponse.RoomsDataStructure.JoinedRoomDataStructure newData) {
         oldData.AccountData ??= new EventList();
         oldData.AccountData.Events ??= [];