feat(core/events): add user settings / unreads to Ready payload

refactor(core/events): make all Ready payload items optional
This commit is contained in:
Paul Makles
2024-07-14 17:03:40 +01:00
parent caa0795d07
commit 412f4a99d7
4 changed files with 109 additions and 26 deletions

View File

@@ -106,7 +106,10 @@ pub async fn client(db: &'static Database, stream: TcpStream, addr: SocketAddr)
}
// Download required data to local cache and send Ready payload.
let ready_payload = match state.generate_ready_payload(db).await {
let ready_payload = match state
.generate_ready_payload(db, config.get_ready_payload_fields())
.await
{
Ok(ready_payload) => ready_payload,
Err(err) => {
sentry::capture_error(&err);