mirror of
https://gitlab.com/famedly/conduit.git
synced 2024-12-29 05:53:48 +03:00
Merge branch 'fix/bad-uid-crash' into 'next'
Fix crash when a bad user ID is in the database See merge request famedly/conduit!334
This commit is contained in:
commit
1219535e56
1 changed files with 5 additions and 4 deletions
|
@ -405,10 +405,11 @@ async fn sync_helper(
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
lazy_loaded.insert(
|
|
||||||
UserId::parse(state_key.as_ref())
|
// This check is in case a bad user ID made it into the database
|
||||||
.expect("they are in timeline_users, so they should be correct"),
|
if let Ok(uid) = UserId::parse(state_key.as_ref()) {
|
||||||
);
|
lazy_loaded.insert(uid);
|
||||||
|
}
|
||||||
state_events.push(pdu);
|
state_events.push(pdu);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue