forked from mirror/mautrix-discord
Fix mass inserting messages
This commit is contained in:
parent
d0e3d2966a
commit
9402d0d291
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ func (mq *MessageQuery) MassInsert(key PortalKey, msgs []Message) {
|
|||
params[0] = key.ChannelID
|
||||
params[1] = key.Receiver
|
||||
for i, msg := range msgs {
|
||||
baseIndex := 2 + i*7
|
||||
baseIndex := 2 + i*8
|
||||
params[baseIndex] = msg.DiscordID
|
||||
params[baseIndex+1] = msg.AttachmentID
|
||||
params[baseIndex+2] = msg.SenderID
|
||||
|
|
Loading…
Reference in a new issue