diff --git a/src/chat.rs b/src/chat.rs index 1d1c86b..853516c 100644 --- a/src/chat.rs +++ b/src/chat.rs @@ -101,11 +101,14 @@ pub fn handle_new_conversations( } // no existing chats yet, let's create a new one - commands.spawn(Chat { - id: id.to_string(), - label: label.to_string(), - timer: time.elapsed_seconds_f64(), - }); + commands.spawn(( + Chat { + id: id.to_string(), + label: label.to_string(), + timer: time.elapsed_seconds_f64(), + }, + world::DespawnOnPlayerDeath, + )); break; } }