Fix crash when joining new rooms

This commit is contained in:
Joscha 2022-08-11 22:58:45 +02:00
parent 19a477e423
commit 692a167143
2 changed files with 4 additions and 1 deletions

View file

@ -1219,7 +1219,9 @@ impl EuphRequest {
WHERE room = ?
",
)?
.query_row(params![room], |row| row.get(0))?;
.query_row(params![room], |row| row.get(0))
.optional()?
.unwrap_or(0);
let _ = result.send(amount);
Ok(())
}