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)
|
portal.log.Warnln("Unexpected non-WebMessageInfo item in history response:", rawMessage)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
fmt.Println("Filling history", message.GetKey(), message.GetMessageTimestamp())
|
data := whatsapp.ParseProtoMessage(message)
|
||||||
portal.handleMessage(PortalMessage{user, whatsapp.ParseProtoMessage(message)})
|
portal.handleMessage(PortalMessage{user, data, message.GetMessageTimestamp()})
|
||||||
lastID = message.GetKey().GetId()
|
lastID = message.GetKey().GetId()
|
||||||
}
|
}
|
||||||
return lastID, nil
|
return lastID, nil
|
||||||
|
|
Loading…
Reference in a new issue