Skip to content

Commit

Permalink
Revert "feat: 消息发送结果判断"
Browse files Browse the repository at this point in the history
This reverts commit 15fd073.
  • Loading branch information
Redmomn committed Jun 17, 2024
1 parent 462876a commit 0b9e20d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 24 deletions.
18 changes: 2 additions & 16 deletions client/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,7 @@ func (c *QQClient) SendGroupMessage(groupUin uint32, elements []message2.IMessag
route := &message.RoutingHead{
Grp: &message.Grp{GroupCode: proto.Some(groupUin)},
}
resp, err = c.SendRawMessage(route, body)
if err != nil {
return nil, err
}
if resp.GroupSequence.IsNone() {
return resp, utils.GrpSendFailed
}
return resp, nil
return c.SendRawMessage(route, body)
}

func (c *QQClient) SendPrivateMessage(uin uint32, elements []message2.IMessageElement) (resp *action.SendMessageResponse, err error) {
Expand All @@ -67,14 +60,7 @@ func (c *QQClient) SendPrivateMessage(uin uint32, elements []message2.IMessageEl
Uid: proto.Some(c.GetUid(uin)),
},
}
resp, err = c.SendRawMessage(route, body)
if err != nil {
return nil, err
}
if resp.PrivateSequence == 0 {
return resp, utils.PrvSendFailed
}
return resp, nil
return c.SendRawMessage(route, body)
}

func (c *QQClient) SendTempMessage(groupID uint32, uin uint32, elements []message2.IMessageElement) (resp *action.SendMessageResponse, err error) {
Expand Down
8 changes: 0 additions & 8 deletions utils/errors.go

This file was deleted.

0 comments on commit 0b9e20d

Please sign in to comment.