aboutsummaryrefslogtreecommitdiff
path: root/src/session/mod.rs
diff options
context:
space:
mode:
authorMax Audron <audron@cocaine.farm>2025-02-23 17:53:41 +0100
committerMax Audron <audron@cocaine.farm>2025-02-23 17:53:41 +0100
commit1cc147f68205db42ddf9bf367779860434304b7f (patch)
treecd95cb7277bd859e7d5490bbedfd281e57e4e077 /src/session/mod.rs
parentadd syncables for IrcUser (diff)
add identity syncable to SessionManager
Diffstat (limited to 'src/session/mod.rs')
-rw-r--r--src/session/mod.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/session/mod.rs b/src/session/mod.rs
index be78a05..761b110 100644
--- a/src/session/mod.rs
+++ b/src/session/mod.rs
@@ -57,7 +57,14 @@ pub trait SessionManager {
Class::CoreInfo => self.core_info().sync(msg),
Class::CoreData => (),
Class::HighlightRuleManager => self.highlight_rule_manager().sync(msg),
- Class::Identity => (),
+ Class::Identity => {
+ let identity_id: i32 = msg.object_name.parse().unwrap();
+ if let Some(identity) = self.identity(identity_id as usize) {
+ identity.sync(msg);
+ } else {
+ warn!("could not find identity with id: {:?}", identity_id);
+ }
+ }
Class::IgnoreListManager => self.ignore_list_manager().sync(msg),
Class::CertManager => self.cert_manager().sync(msg),
Class::Network => {