mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
revoke message
This commit is contained in:
parent
e814d9ea63
commit
ac631f7c49
@ -168,6 +168,8 @@ func (rpc *rpcChat) messageVerification(data *pbChat.SendMsgReq) (bool, int32, s
|
||||
return false, 201, err.Error(), nil
|
||||
}
|
||||
log.Debug(data.OperationID, "revoke message is", *revokeMessage)
|
||||
|
||||
if revokeMessage.RevokerID != revokeMessage.SourceMessageSendID {
|
||||
req := pbChat.GetSuperGroupMsgReq{OperationID: data.OperationID, Seq: revokeMessage.Seq, GroupID: data.MsgData.GroupID}
|
||||
resp, err := rpc.GetSuperGroupMsg(context.Background(), &req)
|
||||
if err != nil {
|
||||
@ -185,7 +187,7 @@ func (rpc *rpcChat) messageVerification(data *pbChat.SendMsgReq) (bool, int32, s
|
||||
return false, 201, errors.New("msg err").Error(), nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
if groupInfo.GroupType == constant.SuperGroup {
|
||||
return true, 0, "", nil
|
||||
|
Loading…
x
Reference in New Issue
Block a user