summary refs log tree commit diff
path: root/MxApiExtensions/Classes/SyncState.cs
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-12-01 12:34:30 +0100
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-12-01 12:34:30 +0100
commit0b662d36de30c4bdd3d9be97d08ace8d4d7be588 (patch)
tree475e4ea94cb5179236614bf5052d3164d1f2ff3b /MxApiExtensions/Classes/SyncState.cs
parentAdd more code (diff)
downloadMxApiExtensions-0b662d36de30c4bdd3d9be97d08ace8d4d7be588.tar.xz
Reformat
Diffstat (limited to 'MxApiExtensions/Classes/SyncState.cs')
-rw-r--r--MxApiExtensions/Classes/SyncState.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/MxApiExtensions/Classes/SyncState.cs b/MxApiExtensions/Classes/SyncState.cs
index 733f26d..50aa0bd 100644
--- a/MxApiExtensions/Classes/SyncState.cs
+++ b/MxApiExtensions/Classes/SyncState.cs
@@ -28,7 +28,7 @@ public class SyncState {
     [JsonIgnore]
     public AuthenticatedHomeserverGeneric Homeserver { get; set; }
 
-#region Debug stuff
+    #region Debug stuff
 
     public object NextSyncResponseTaskInfo => new {
         NextSyncResponse?.Id,
@@ -39,10 +39,10 @@ public class SyncState {
         Status = NextSyncResponse?.Status.GetDisplayName()
     };
 
-#endregion
+    #endregion
 
     public SyncResponse SendEphemeralTimelineEventInRoom(string roomId, StateEventResponse @event, SyncResponse? existingResponse = null) {
-        if(existingResponse is null)
+        if (existingResponse is null)
             SyncQueue.Enqueue(existingResponse = new());
         existingResponse.Rooms ??= new();
         existingResponse.Rooms.Join ??= new();
@@ -54,7 +54,7 @@ public class SyncState {
     }
 
     public SyncResponse SendStatusMessage(string text, SyncResponse? existingResponse = null) {
-        if(existingResponse is null)
+        if (existingResponse is null)
             SyncQueue.Enqueue(existingResponse = new());
         existingResponse.Presence ??= new();
         // existingResponse.Presence.Events ??= new();
@@ -73,4 +73,4 @@ public class SyncState {
         });
         return existingResponse;
     }
-}
\ No newline at end of file
+}