Remove old notif code; uncommited changes.

This commit is contained in:
Paul Makles
2020-11-28 19:25:15 +00:00
parent c3362a6e4f
commit 5711986768
19 changed files with 70 additions and 737 deletions

View File

@@ -7,7 +7,7 @@ pub mod users;
#[allow(non_camel_case_types)]
#[derive(Serialize, Deserialize, Debug, Clone)]
#[serde(tag = "type", content = "data")]
#[serde(tag = "type")]
pub enum Notification {
message_create(message::Create),
message_edit(message::Edit),

View File

@@ -104,6 +104,7 @@ impl Handler for Client {
}
if let Err(err) = hive::subscribe(self.user_id.as_ref().unwrap().clone(), ids) {
error!("Failed to subscribe someone to the Hive! {}", err);
self.sender.send(
json!({
"type": "warn",