From 74313d54c2d25d8eeaad630db5e8f2843ee902e6 Mon Sep 17 00:00:00 2001 From: WangchuXiao Date: Mon, 31 Jul 2023 11:53:53 +0800 Subject: [PATCH] fix bug: /msg/batch_send_msg isSendAll param not effect send msg to all user (#725) * docs: add readme docs Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com> * feat: add script yaml Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com> * feat: add script yaml Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com> * feat: add test Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com> * feat: add test Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com> * fix bug: reject group req bug * feat: add go relase Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com> * fix bug: join group failed * fix bug: join group failed * fix: get userid function call rpc and message gateway add status change callback (#700) Co-authored-by: withchao <993506633@qq.com> * fix bug: send all not send msg 2 all user --------- Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com> Co-authored-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com> Co-authored-by: Gordon <46924906+FGadvancer@users.noreply.github.com> Co-authored-by: withchao <993506633@qq.com> --- internal/api/msg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/api/msg.go b/internal/api/msg.go index 8480ac7d3..e4a8fda17 100644 --- a/internal/api/msg.go +++ b/internal/api/msg.go @@ -262,8 +262,8 @@ func (m *MessageApi) BatchSendMsg(c *gin.Context) { apiresp.GinError(c, err) return } + recvIDs = append(recvIDs, recvIDsPart...) if len(recvIDsPart) < showNumber { - recvIDs = append(recvIDs, recvIDsPart...) break } pageNumber++