Ignore some types of message parse errors
This commit is contained in:
parent
c541afbb46
commit
cbd1a79e80
1 changed files with 6 additions and 0 deletions
|
@ -805,6 +805,12 @@ func (portal *Portal) handleHistory(user *User, messages []interface{}) {
|
||||||
}
|
}
|
||||||
data := whatsapp.ParseProtoMessage(message)
|
data := whatsapp.ParseProtoMessage(message)
|
||||||
if data == nil {
|
if data == nil {
|
||||||
|
st := message.GetMessageStubType()
|
||||||
|
// Ignore some types that are known to fail
|
||||||
|
if st == waProto.WebMessageInfo_CALL_MISSED_VOICE || st == waProto.WebMessageInfo_CALL_MISSED_VIDEO ||
|
||||||
|
st == waProto.WebMessageInfo_CALL_MISSED_GROUP_VOICE || st == waProto.WebMessageInfo_CALL_MISSED_GROUP_VIDEO {
|
||||||
|
continue
|
||||||
|
}
|
||||||
portal.log.Warnln("Message", message.GetKey().GetId(), "failed to parse during backfilling")
|
portal.log.Warnln("Message", message.GetKey().GetId(), "failed to parse during backfilling")
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue