Send out unset in event.

This commit is contained in:
Paul
2021-05-03 11:17:28 +01:00
parent b47067b311
commit fa960ebc94
5 changed files with 90 additions and 32 deletions

View File

@@ -106,6 +106,7 @@ impl Channel {
ClientboundNotification::ChannelUpdate {
id: id.clone(),
data,
clear: None
}
.publish(id)
.await
@@ -195,6 +196,12 @@ impl Channel {
.publish(id.to_string())
.await
.ok();
if let Channel::Group { icon, .. } = self {
if let Some(attachment) = icon {
attachment.delete().await?;
}
}
Ok(())
}