From 8e35c18e2aac958837b2c8fcb782950f86e5f214 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Fri, 23 Oct 2020 01:50:20 +0200 Subject: add first notification --- mumd/src/state/user.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'mumd/src/state') diff --git a/mumd/src/state/user.rs b/mumd/src/state/user.rs index 679d0ff..ab867e6 100644 --- a/mumd/src/state/user.rs +++ b/mumd/src/state/user.rs @@ -1,6 +1,10 @@ +use crate::state::channel::Channel; + use log::*; use mumble_protocol::control::msgs; use serde::{Deserialize, Serialize}; +use std::collections::HashMap; +use std::collections::hash_map::Entry; #[derive(Clone, Debug, Deserialize, Serialize)] pub struct User { @@ -80,7 +84,6 @@ impl User { } pub fn apply_user_diff(&mut self, diff: &mumlib::state::UserDiff) { - debug!("applying user diff\n{:#?}", diff); if let Some(comment) = diff.comment.clone() { self.comment = Some(comment); } @@ -111,7 +114,6 @@ impl User { if let Some(deaf) = diff.deaf { self.deaf = deaf; } - if let Some(channel_id) = diff.channel_id { self.channel = channel_id; } -- cgit v1.2.1