Skip to content

Commit dca87e0

Browse files
authoredFeb 10, 2021
do not emit chat_message event when its local_echo
Fix for a bug reported in #13
1 parent 3dfda34 commit dca87e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎steam/client/builtins/user.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def __handle_message_incoming(self, msg):
3838

3939
def __handle_message_incoming2(self, msg):
4040
# new chat
41-
if msg.body.chat_entry_type == EChatEntryType.ChatMsg:
41+
if msg.body.chat_entry_type == EChatEntryType.ChatMsg and not msg.body.local_echo:
4242
user = self.get_user(msg.body.steamid_friend)
4343
self.emit("chat_message", user, msg.body.message)
4444

0 commit comments

Comments
 (0)
Please sign in to comment.