diff --git a/src/notifications/events.rs b/src/notifications/events.rs index b1df74050d223c41f4dcf20dae7fc6a2e111b077..92c161e999de4cd166d5cb4d1cc00aac24590bd5 100644 --- a/src/notifications/events.rs +++ b/src/notifications/events.rs @@ -100,12 +100,6 @@ pub fn prehandle_hook(notification: &ClientboundNotification) { } } } - ClientboundNotification::ChannelGroupLeave { id, user } => { - get_hive() - .hive - .unsubscribe(&user.to_string(), &id.to_string()) - .ok(); - } ClientboundNotification::UserRelationship { id, user, status } => { if status != &RelationshipStatus::None { subscribe_if_exists(id.clone(), user.clone()).ok(); @@ -128,6 +122,12 @@ pub fn posthandle_hook(notification: &ClientboundNotification) { .ok(); } } + ClientboundNotification::ChannelGroupLeave { id, user } => { + get_hive() + .hive + .unsubscribe(&user.to_string(), &id.to_string()) + .ok(); + } _ => {} } }