forked from jmug/stoatchat
fix: update branch from main
This commit is contained in:
@@ -188,6 +188,7 @@ pub struct LiveKitNode {
|
|||||||
pub secret: String
|
pub secret: String
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Deserialize, Debug, Clone)]
|
||||||
pub struct ApiUsers {
|
pub struct ApiUsers {
|
||||||
pub early_adopter_cutoff: Option<u64>
|
pub early_adopter_cutoff: Option<u64>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1141,8 +1141,7 @@ pub async fn run_migrations(db: &MongoDb, revision: i32) -> i32 {
|
|||||||
"is_publishing": true,
|
"is_publishing": true,
|
||||||
"is_receiving": true
|
"is_receiving": true
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
None,
|
|
||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
.expect("Failed to update members");
|
.expect("Failed to update members");
|
||||||
@@ -1159,8 +1158,7 @@ pub async fn run_migrations(db: &MongoDb, revision: i32) -> i32 {
|
|||||||
"channel_type": "TextChannel",
|
"channel_type": "TextChannel",
|
||||||
"voice": {}
|
"voice": {}
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
None
|
|
||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
.expect("Failed to update voice channels");
|
.expect("Failed to update voice channels");
|
||||||
|
|||||||
@@ -98,12 +98,6 @@ pub enum ChannelPermission {
|
|||||||
/// Mention roles
|
/// Mention roles
|
||||||
MentionRoles = 1 << 38,
|
MentionRoles = 1 << 38,
|
||||||
|
|
||||||
// * Channel permissions two electric boogaloo
|
|
||||||
/// Mention everyone and online members
|
|
||||||
MentionEveryone = 1 << 37,
|
|
||||||
/// Mention roles
|
|
||||||
MentionRoles = 1 << 38,
|
|
||||||
|
|
||||||
// * Misc. permissions
|
// * Misc. permissions
|
||||||
// % Bits 38 to 52: free area
|
// % Bits 38 to 52: free area
|
||||||
// % Bits 53 to 64: do not use
|
// % Bits 53 to 64: do not use
|
||||||
|
|||||||
@@ -154,6 +154,7 @@ impl TestHarness {
|
|||||||
name: "Test Channel".to_string(),
|
name: "Test Channel".to_string(),
|
||||||
description: None,
|
description: None,
|
||||||
nsfw: Some(false),
|
nsfw: Some(false),
|
||||||
|
voice: None
|
||||||
},
|
},
|
||||||
true,
|
true,
|
||||||
)
|
)
|
||||||
@@ -220,7 +221,7 @@ impl TestHarness {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let mut stream = self.sub.on_message();
|
let mut stream = self.sub.on_message();
|
||||||
while let Some(Ok(item)) = stream.next().await {
|
while let Some(item) = stream.next().await {
|
||||||
let msg_topic = item.get_channel_name();
|
let msg_topic = item.get_channel_name();
|
||||||
let payload: EventV1 = redis_kiss::decode_payload(&item).unwrap();
|
let payload: EventV1 = redis_kiss::decode_payload(&item).unwrap();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user