forked from jmug/stoatchat
Fix bug.
This commit is contained in:
@@ -47,13 +47,20 @@ impl Handler for Server {
|
|||||||
.to_string(),
|
.to_string(),
|
||||||
)?;
|
)?;
|
||||||
|
|
||||||
self.sender.send(
|
if let Ok(payload) = user.create_payload() {
|
||||||
json!({
|
self.sender.send(
|
||||||
"type": "ready",
|
json!({
|
||||||
"data": user.create_payload()
|
"type": "ready",
|
||||||
})
|
"data": payload
|
||||||
.to_string(),
|
})
|
||||||
)
|
.to_string(),
|
||||||
|
)
|
||||||
|
} else {
|
||||||
|
// ! TODO: FIXME: ALL THE NOTIFICATIONS CODE NEEDS TO BE
|
||||||
|
// ! RESTRUCTURED, IT IS UTTER GARBAGE. :)))))
|
||||||
|
|
||||||
|
Ok(())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
StateResult::DatabaseError => self.sender.send(
|
StateResult::DatabaseError => self.sender.send(
|
||||||
json!({
|
json!({
|
||||||
|
|||||||
Reference in New Issue
Block a user