Breaking change to FriendStatus, user cache sync.

This commit is contained in:
Paul Makles
2020-08-10 22:23:58 +02:00
parent 8cb697dfcd
commit 0b90145b31
6 changed files with 67 additions and 27 deletions

View File

@@ -206,8 +206,8 @@ use crate::notifications::events::Notification;
pub fn process_event(event: &Notification) {
match event {
Notification::guild_channel_create(ev) => {} // ? for later use
Notification::guild_channel_delete(ev) => {} // ? for later use
Notification::guild_channel_create(_ev) => {} // ? for later use
Notification::guild_channel_delete(_ev) => {} // ? for later use
Notification::guild_delete(ev) => {
let mut cache = CACHE.lock().unwrap();
cache.pop(&ev.id);