Fix crash when joining new rooms
This commit is contained in:
parent
19a477e423
commit
692a167143
2 changed files with 4 additions and 1 deletions
|
|
@ -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(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue