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

@ -15,6 +15,7 @@ Procedure when bumping the version number:
## Unreleased
### Fixed
- Joining new rooms no longer crashes cove
- Scrolling when exiting message editor
## v0.2.0 - 2022-08-10

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(())
}