Allow setting a channel for new users to auto-join (#9291)
Release Notes: - Automatically add new users to the #zed channel
This commit is contained in:
parent
88e33a1dbe
commit
77de5689a3
12 changed files with 39 additions and 7 deletions
|
@ -22,13 +22,17 @@ async fn test_contributors(db: &Arc<Database>) {
|
|||
|
||||
assert_eq!(db.get_contributors().await.unwrap(), Vec::<String>::new());
|
||||
|
||||
db.add_contributor("user1", Some(1), None).await.unwrap();
|
||||
db.add_contributor("user1", Some(1), None, None)
|
||||
.await
|
||||
.unwrap();
|
||||
assert_eq!(
|
||||
db.get_contributors().await.unwrap(),
|
||||
vec!["user1".to_string()]
|
||||
);
|
||||
|
||||
db.add_contributor("user2", Some(2), None).await.unwrap();
|
||||
db.add_contributor("user2", Some(2), None, None)
|
||||
.await
|
||||
.unwrap();
|
||||
assert_eq!(
|
||||
db.get_contributors().await.unwrap(),
|
||||
vec!["user1".to_string(), "user2".to_string()]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue