disconnect-fix

This commit is contained in:
2023-10-16 17:44:19 +03:00
parent dccfe81541
commit c9650772bc
3 changed files with 54 additions and 43 deletions

View File

@@ -109,11 +109,6 @@ pub async fn is_fitting(
payload: HashMap<String, String>,
) -> Result<bool, &'static str> {
match &kind[0..9] {
"new_follo" => {
// payload is Author, kind is new_follower:<author_id>
let author_id = kind.split(":").last().unwrap();
Ok(author_id.to_string() == listener_id.to_string())
}
"new_react" => {
// payload is Reaction, kind is new_reaction<reaction_kind>
let shout_id = payload.get("shout").unwrap();