From 01e8d3d65060868cd4eced922175cad393e14afc Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Sat, 1 Aug 2026 19:39:10 +0200 Subject: [PATCH] fix incomming chat messages --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 2b54ef3..2049715 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -73,7 +73,7 @@ fn parse_chat_event( .map_err(|_| InvalidChatEvent::InvalidSteamId(notification.steamid_friend()))?; let message_type = MessageType::try_from(notification.chat_entry_type()).unwrap_or_default(); Ok(match message_type { - MessageType::Chat if notification.local_echo() => Some(ChatEvent::Message(MessageEvent { + MessageType::Chat if !notification.local_echo() => Some(ChatEvent::Message(MessageEvent { source, server_timestamp: notification.rtime32_server_timestamp() as u64, message: notification.message.unwrap_or_default(),