Log better error when parsing message fails
This commit is contained in:
parent
0f36ee0168
commit
85d57d52bb
@ -674,6 +674,10 @@ func (portal *Portal) handleHistory(user *User, messages []interface{}) {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
data := whatsapp.ParseProtoMessage(message)
|
data := whatsapp.ParseProtoMessage(message)
|
||||||
|
if data == nil {
|
||||||
|
portal.log.Warnln("Message", message.GetKey().GetId(), "failed to parse during backfilling")
|
||||||
|
continue
|
||||||
|
}
|
||||||
if portal.privateChatBackfillInvitePuppet != nil && message.GetKey().GetFromMe() && portal.IsPrivateChat() {
|
if portal.privateChatBackfillInvitePuppet != nil && message.GetKey().GetFromMe() && portal.IsPrivateChat() {
|
||||||
portal.privateChatBackfillInvitePuppet()
|
portal.privateChatBackfillInvitePuppet()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user