Fix handleMessage call in handleHistory
This commit is contained in:
parent
b363547bdf
commit
015e42279d
@ -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 New Issue
Block a user