Skip to content

Commit

Permalink
do not emit chat_message event when its local_echo
Browse files Browse the repository at this point in the history
Fix for a bug reported in #13
  • Loading branch information
rossengeorgiev authored Feb 10, 2021
1 parent f33cb32 commit f405ffa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion steam/client/builtins/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def __handle_message_incoming(self, msg):

def __handle_message_incoming2(self, msg):
# new chat
if msg.body.chat_entry_type == EChatEntryType.ChatMsg:
if msg.body.chat_entry_type == EChatEntryType.ChatMsg and not msg.body.local_echo:
user = self.get_user(msg.body.steamid_friend)
self.emit("chat_message", user, msg.body.message)

Expand Down

0 comments on commit f405ffa

Please sign in to comment.