mirror of
https://github.com/mautrix/discord.git
synced 2025-03-14 14:15:37 +00:00
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[0] = key.ChannelID
|
||||||
params[1] = key.Receiver
|
params[1] = key.Receiver
|
||||||
for i, msg := range msgs {
|
for i, msg := range msgs {
|
||||||
baseIndex := 2 + i*7
|
baseIndex := 2 + i*8
|
||||||
params[baseIndex] = msg.DiscordID
|
params[baseIndex] = msg.DiscordID
|
||||||
params[baseIndex+1] = msg.AttachmentID
|
params[baseIndex+1] = msg.AttachmentID
|
||||||
params[baseIndex+2] = msg.SenderID
|
params[baseIndex+2] = msg.SenderID
|
||||||
|
|
Loading…
Add table
Reference in a new issue