Fix crash when joining new rooms
This commit is contained in:
parent
19a477e423
commit
692a167143
2 changed files with 4 additions and 1 deletions
|
|
@ -15,6 +15,7 @@ Procedure when bumping the version number:
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
- Joining new rooms no longer crashes cove
|
||||||
- Scrolling when exiting message editor
|
- Scrolling when exiting message editor
|
||||||
|
|
||||||
## v0.2.0 - 2022-08-10
|
## v0.2.0 - 2022-08-10
|
||||||
|
|
|
||||||
|
|
@ -1219,7 +1219,9 @@ impl EuphRequest {
|
||||||
WHERE room = ?
|
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);
|
let _ = result.send(amount);
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue