acter_core/events/
room.rs

1
2
3
4
5
6
7
8
9
10
11
use matrix_sdk_base::ruma::events::macros::EventContent;
use serde::{Deserialize, Serialize};

pub static USER_SETTINGS_KEY: &str = "global.acter.user_settings";

#[derive(Debug, Serialize, Default, Deserialize, Clone, EventContent)]
#[ruma_event(type = "global.acter.user_settings", kind = RoomAccountData)]
pub struct UserSettingsEventContent {
    #[serde(default)]
    pub has_seen_suggested: bool,
}