add: connect to socket by community

direct messages/groups connect by channel id, everything else should connect by channel with the "is_channel" header set to true
This commit is contained in:
trisua 2025-04-29 16:53:34 -04:00
parent c1c8cdbfcd
commit 0304461389
20 changed files with 241 additions and 160 deletions

View file

@ -151,6 +151,7 @@ impl Default for TurnstileConfig {
}
#[derive(Clone, Serialize, Deserialize, Debug)]
#[derive(Default)]
pub struct ConnectionsConfig {
/// <https://developer.spotify.com/documentation/web-api>
#[serde(default)]
@ -163,15 +164,6 @@ pub struct ConnectionsConfig {
pub last_fm_secret: Option<String>,
}
impl Default for ConnectionsConfig {
fn default() -> Self {
Self {
spotify_client_id: None,
last_fm_key: None,
last_fm_secret: None,
}
}
}
/// Configuration file
#[derive(Clone, Serialize, Deserialize, Debug)]