SenderInGroup Receiver 返回用户详情
This commit is contained in:
parent
a1b6316e23
commit
f1327345ed
@ -111,7 +111,7 @@ func (m *Message) IsSendBySelf() bool {
|
|||||||
|
|
||||||
// 判断消息是否由好友发送
|
// 判断消息是否由好友发送
|
||||||
func (m *Message) IsSendByFriend() bool {
|
func (m *Message) IsSendByFriend() bool {
|
||||||
return !m.IsSendByGroup() && strings.HasPrefix(m.FromUserName, "@")
|
return !m.IsSendByGroup() && strings.HasPrefix(m.FromUserName, "@") && !m.IsSendBySelf()
|
||||||
}
|
}
|
||||||
|
|
||||||
// 判断消息是否由群组发送
|
// 判断消息是否由群组发送
|
||||||
|
Loading…
x
Reference in New Issue
Block a user