Bladeren bron

兼容微信艾特的情况

master
chenzhenkun 1 jaar geleden
bovenliggende
commit
ac4adac29e
1 gewijzigde bestanden met toevoegingen van 3 en 1 verwijderingen
  1. +3
    -1
      channel/wework/wework_message.py

+ 3
- 1
channel/wework/wework_message.py Bestand weergeven

@@ -157,7 +157,9 @@ class WeworkMessage(ChatMessage):
at_list = tmp_list
logger.debug(f"at_list: {at_list}")
logger.debug(f"nickname: {nickname}")
self.is_at = nickname in at_list
self.is_at = False
if nickname in at_list or login_info['nickname'] in at_list or login_info['username'] in at_list:
self.is_at = True
self.at_list = at_list

# 检查消息内容是否包含@用户名。处理复制粘贴的消息,这类消息可能不会触发@通知,但内容中可能包含 "@用户名"。


Laden…
Annuleren
Opslaan