diff --git a/src/notifications/events.rs b/src/notifications/events.rs index b1df7405..92c161e9 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(); + } _ => {} } }