[bug]: 修复拍了拍我判断错误的问题 (#210)

This commit is contained in:
多吃点苹果 2023-01-22 08:31:31 +08:00 committed by GitHub
parent 1a13e73355
commit 71d8221cad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -806,7 +806,7 @@ func (m *Message) IsTickled() bool {
// IsTickledMe 判断消息是否拍了拍自己
func (m *Message) IsTickledMe() bool {
return m.IsSystem() && strings.HasSuffix(m.Content, "拍了拍我")
return m.IsSystem() && strings.Count(m.Content, "拍了拍我") == 1
}
// IsVoipInvite 判断消息是否为语音或视频通话邀请