diff --git a/client_120.go b/client_120.go index 60e8e3c..757a951 100644 --- a/client_120.go +++ b/client_120.go @@ -24,9 +24,9 @@ func (c *Client) Send(messages ...*Msg) (returnErr error) { returnErr = errors.Join(errs...) }() - for _, message := range messages { + for id, message := range messages { if sendErr := c.sendSingleMsg(message); sendErr != nil { - message.sendError = sendErr + messages[id].sendError = sendErr errs = append(errs, sendErr) } }