fix: wework single chat no prefix circle reply

This commit is contained in:
zhayujie
2023-09-02 21:49:43 +08:00
parent 125fe2a026
commit 4209e108d0
2 changed files with 5 additions and 22 deletions

View File

@@ -213,6 +213,9 @@ class WeworkChannel(ChatChannel):
@time_checker
@_check
def handle_single(self, cmsg: ChatMessage):
if cmsg.from_user_id == cmsg.to_user_id:
# ignore self reply
return
if cmsg.ctype == ContextType.VOICE:
if not conf().get("speech_recognition"):
return