Move group leave into posthandle hook.
This commit is contained in:
@@ -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 } => {
|
ClientboundNotification::UserRelationship { id, user, status } => {
|
||||||
if status != &RelationshipStatus::None {
|
if status != &RelationshipStatus::None {
|
||||||
subscribe_if_exists(id.clone(), user.clone()).ok();
|
subscribe_if_exists(id.clone(), user.clone()).ok();
|
||||||
@@ -128,6 +122,12 @@ pub fn posthandle_hook(notification: &ClientboundNotification) {
|
|||||||
.ok();
|
.ok();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
ClientboundNotification::ChannelGroupLeave { id, user } => {
|
||||||
|
get_hive()
|
||||||
|
.hive
|
||||||
|
.unsubscribe(&user.to_string(), &id.to_string())
|
||||||
|
.ok();
|
||||||
|
}
|
||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user