mirror of
https://codeberg.org/steam-vent/chat.git
synced 2026-11-30 12:40:52 +01:00
fix incomming chat messages
This commit is contained in:
parent
b31706e11a
commit
01e8d3d650
1 changed files with 1 additions and 1 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue