mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-12-14 01:14:29 +01:00
Fix handleMessage call in handleHistory
This commit is contained in:
parent
b363547bdf
commit
015e42279d
1 changed files with 2 additions and 2 deletions
|
@ -584,8 +584,8 @@ func (portal *Portal) handleHistory(user *User, history *binary.Node) (string, e
|
|||
portal.log.Warnln("Unexpected non-WebMessageInfo item in history response:", rawMessage)
|
||||
continue
|
||||
}
|
||||
fmt.Println("Filling history", message.GetKey(), message.GetMessageTimestamp())
|
||||
portal.handleMessage(PortalMessage{user, whatsapp.ParseProtoMessage(message)})
|
||||
data := whatsapp.ParseProtoMessage(message)
|
||||
portal.handleMessage(PortalMessage{user, data, message.GetMessageTimestamp()})
|
||||
lastID = message.GetKey().GetId()
|
||||
}
|
||||
return lastID, nil
|
||||
|
|
Loading…
Reference in a new issue