fix(safety): implement fetch_snapshot fully

This commit is contained in:
Paul Makles
2023-03-03 20:14:30 +00:00
parent 2710edb76b
commit ce77e926a5
5 changed files with 13 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
[package]
name = "revolt-bonfire"
version = "0.5.12"
version = "0.5.13"
license = "AGPL-3.0-or-later"
edition = "2021"

View File

@@ -1,6 +1,6 @@
[package]
name = "revolt-delta"
version = "0.5.12"
version = "0.5.13"
license = "AGPL-3.0-or-later"
authors = ["Paul Makles <paulmakles@gmail.com>"]
edition = "2018"

View File

@@ -44,8 +44,13 @@ pub async fn fetch_snapshot(
user_ids.insert(&message.author);
channel_ids.insert(&message.channel);
}
_ => {
todo!()
SnapshotContent::User(user) => {
user_ids.insert(&user.id);
}
SnapshotContent::Server(server) => {
for channel in &server.channels {
channel_ids.insert(channel);
}
}
}

View File

@@ -1,6 +1,6 @@
[package]
name = "revolt-quark"
version = "0.5.12"
version = "0.5.13"
license = "AGPL-3.0-or-later"
edition = "2021"