about summary refs log tree commit diff
path: root/LibMatrix/Filters
diff options
context:
space:
mode:
Diffstat (limited to 'LibMatrix/Filters')
-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: []); } }