Improve unhandled message log

This commit is contained in:
Tulir Asokan 2021-10-30 14:47:46 +03:00
parent 91e3868e93
commit 2b2f1abd85

View file

@ -386,7 +386,7 @@ func (portal *Portal) handleMessage(source *User, evt *events.Message) {
existingMsg.UpdateMXID("net.maunium.whatsapp.fake::"+existingMsg.MXID, false)
}
} else {
portal.log.Warnln("Unhandled message:", evt.Info, evt.Message)
portal.log.Warnfln("Unhandled message: %+v / %+v", evt.Info, evt.Message)
if existingMsg != nil {
_, _ = portal.MainIntent().RedactEvent(portal.MXID, existingMsg.MXID, mautrix.ReqRedact{
Reason: "The undecryptable message contained an unsupported message type",