mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-12-12 16:43:27 +01:00
Add missing nil check
This commit is contained in:
parent
e780eb2eb6
commit
3e29c51c06
1 changed files with 1 additions and 1 deletions
|
@ -4622,7 +4622,7 @@ func (portal *Portal) HandleMatrixMessage(sender *User, evt *event.Event, timing
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
dbMsg.MarkSent(resp.Timestamp)
|
dbMsg.MarkSent(resp.Timestamp)
|
||||||
if len(extraMeta.GalleryExtraParts) > 0 {
|
if extraMeta != nil && len(extraMeta.GalleryExtraParts) > 0 {
|
||||||
for i, part := range extraMeta.GalleryExtraParts {
|
for i, part := range extraMeta.GalleryExtraParts {
|
||||||
partInfo := portal.generateMessageInfo(sender)
|
partInfo := portal.generateMessageInfo(sender)
|
||||||
partDBMsg := portal.markHandled(nil, nil, partInfo, evt.ID, evt.Sender, false, true, database.MsgBeeperGallery, i+1, database.MsgNoError)
|
partDBMsg := portal.markHandled(nil, nil, partInfo, evt.ID, evt.Sender, false, true, database.MsgBeeperGallery, i+1, database.MsgNoError)
|
||||||
|
|
Loading…
Reference in a new issue