forked from jmug/stoatchat
Cargo fmt.
This commit is contained in:
@@ -112,10 +112,7 @@ pub fn prehandle_hook(notification: &ClientboundNotification) {
|
||||
pub fn posthandle_hook(notification: &ClientboundNotification) {
|
||||
match ¬ification {
|
||||
ClientboundNotification::ChannelDelete { id } => {
|
||||
get_hive()
|
||||
.hive
|
||||
.drop_topic(&id)
|
||||
.ok();
|
||||
get_hive().hive.drop_topic(&id).ok();
|
||||
}
|
||||
ClientboundNotification::UserRelationship { id, user, status } => {
|
||||
if status == &RelationshipStatus::None {
|
||||
@@ -123,7 +120,7 @@ pub fn posthandle_hook(notification: &ClientboundNotification) {
|
||||
.hive
|
||||
.unsubscribe(&id.to_string(), &user.to_string())
|
||||
.ok();
|
||||
}
|
||||
}
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user