X-Git-Url: http://these/git/?a=blobdiff_plain;f=crates%2Fapi%2Fsrc%2Flib.rs;h=26a41d3d22b350af5e2cd715d1ef9f5f8e00d0c3;hb=c883a49a4096b171f324d44c9fcacda55ed361ee;hp=d535c4678fef51f813b96384d59b3c2858be85ce;hpb=1410c5659ca53feeccfd0ddf1e944984cc601898;p=lemmy.git diff --git a/crates/api/src/lib.rs b/crates/api/src/lib.rs index d535c467..26a41d3d 100644 --- a/crates/api/src/lib.rs +++ b/crates/api/src/lib.rs @@ -38,6 +38,15 @@ pub async fn match_websocket_operation( UserOperation::GetCaptcha => do_websocket_operation::(context, id, op, data).await, UserOperation::GetReplies => do_websocket_operation::(context, id, op, data).await, UserOperation::AddAdmin => do_websocket_operation::(context, id, op, data).await, + UserOperation::GetUnreadRegistrationApplicationCount => { + do_websocket_operation::(context, id, op, data).await + } + UserOperation::ListRegistrationApplications => { + do_websocket_operation::(context, id, op, data).await + } + UserOperation::ApproveRegistrationApplication => { + do_websocket_operation::(context, id, op, data).await + } UserOperation::BanPerson => do_websocket_operation::(context, id, op, data).await, UserOperation::BlockPerson => { do_websocket_operation::(context, id, op, data).await @@ -75,6 +84,9 @@ pub async fn match_websocket_operation( UserOperation::GetUnreadCount => { do_websocket_operation::(context, id, op, data).await } + UserOperation::VerifyEmail => { + do_websocket_operation::(context, id, op, data).await + } // Private Message ops UserOperation::MarkPrivateMessageAsRead => { @@ -219,8 +231,8 @@ mod tests { let inserted_person = Person::create(&conn, &new_person).unwrap(); let local_user_form = LocalUserForm { - person_id: inserted_person.id, - password_encrypted: "123456".to_string(), + person_id: Some(inserted_person.id), + password_encrypted: Some("123456".to_string()), ..LocalUserForm::default() };