forked from MirrorHub/mautrix-whatsapp
Improve unhandled message log
This commit is contained in:
parent
91e3868e93
commit
2b2f1abd85
1 changed files with 1 additions and 1 deletions
|
@ -386,7 +386,7 @@ func (portal *Portal) handleMessage(source *User, evt *events.Message) {
|
||||||
existingMsg.UpdateMXID("net.maunium.whatsapp.fake::"+existingMsg.MXID, false)
|
existingMsg.UpdateMXID("net.maunium.whatsapp.fake::"+existingMsg.MXID, false)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
portal.log.Warnln("Unhandled message:", evt.Info, evt.Message)
|
portal.log.Warnfln("Unhandled message: %+v / %+v", evt.Info, evt.Message)
|
||||||
if existingMsg != nil {
|
if existingMsg != nil {
|
||||||
_, _ = portal.MainIntent().RedactEvent(portal.MXID, existingMsg.MXID, mautrix.ReqRedact{
|
_, _ = portal.MainIntent().RedactEvent(portal.MXID, existingMsg.MXID, mautrix.ReqRedact{
|
||||||
Reason: "The undecryptable message contained an unsupported message type",
|
Reason: "The undecryptable message contained an unsupported message type",
|
||||||
|
|
Loading…
Reference in a new issue