about summary refs log tree commit diff
path: root/LibMatrix/Filters/SyncFilter.cs
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-05-07 22:18:23 +0200
committerRory& <root@rory.gay>2025-05-07 22:18:23 +0200
commit82417145ff67fae9eac4dbe8137f5b9ef0d222f9 (patch)
tree869ceaec279a5137a15ba2074a83f58e3e1a35dd /LibMatrix/Filters/SyncFilter.cs
parentMSC4222 emulation for left rooms (diff)
downloadLibMatrix-82417145ff67fae9eac4dbe8137f5b9ef0d222f9.tar.xz
MSC4222 emulation for joined rooms?
Diffstat (limited to 'LibMatrix/Filters/SyncFilter.cs')
-rw-r--r--LibMatrix/Filters/SyncFilter.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/LibMatrix/Filters/SyncFilter.cs b/LibMatrix/Filters/SyncFilter.cs

index 8c66656..7cb6428 100644 --- a/LibMatrix/Filters/SyncFilter.cs +++ b/LibMatrix/Filters/SyncFilter.cs
@@ -34,7 +34,7 @@ public class SyncFilter { [JsonPropertyName("include_leave")] public bool? IncludeLeave { get; set; } - private static readonly RoomFilter Empty = new() { + private static RoomFilter Empty => new() { Rooms = [], IncludeLeave = false, AccountData = StateFilter.Empty, @@ -75,7 +75,8 @@ public class SyncFilter { [JsonPropertyName("unread_thread_notifications")] public bool? UnreadThreadNotifications { get; set; } = unreadThreadNotifications; - public static readonly StateFilter Empty = new(limit: 0, senders: [], types: [], rooms: []); + // ReSharper disable once MemberHidesStaticFromOuterClass + public new static StateFilter Empty => new(limit: 0, senders: [], types: [], rooms: []); } } @@ -95,6 +96,6 @@ public class SyncFilter { [JsonPropertyName("not_senders")] public List<string>? NotSenders { get; set; } = notSenders; - public static readonly EventFilter Empty = new(limit: 0, senders: [], types: []); + public static EventFilter Empty => new(limit: 0, senders: [], types: []); } }