Rename filter keys?

This commit is contained in:
tezlm 2024-01-15 02:16:40 -08:00
parent e946a5f5e4
commit ec43c4a47b
Signed by: tezlm
GPG key ID: 649733FCD94AFBBA

View file

@ -7,16 +7,16 @@ use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, Default, PartialEq, Eq, Serialize, Deserialize)]
pub struct ThreadFilter {
/// Whether to only include threads the user is watching.
/// Whether to include muted threads.
/// Muted rooms implicitly mute all threads inside said room.
#[serde(default, skip_serializing_if = "ruma_common::serde::is_default")]
pub only_watching: bool,
pub muted: bool,
/// Include thread roots for threads the user has already sent read receipts for.
/// Muted rooms implicitly ignore all threads inside said room.
/// Whether to remove unwatched threads.
#[serde(default, skip_serializing_if = "ruma_common::serde::is_default")]
pub include_ignored: bool,
pub watching: bool,
/// Include thread roots for threads the user has ignored. Ignored used when `only_watching` is set.
/// Whether to remove threads with no unread messages.
#[serde(default, skip_serializing_if = "ruma_common::serde::is_default")]
pub include_read: bool,
pub unread: bool,
}