Remove old notif code; uncommited changes.
This commit is contained in:
@@ -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),
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user