mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-11-11 20:42:39 +01:00
Create portals for incoming undecryptable messages
They might not be actual chat messages, but if we don't create a portal, the user has no indication that something might have went wrong.
This commit is contained in:
parent
3cbe36658f
commit
c2520c14db
1 changed files with 1 additions and 1 deletions
|
@ -216,7 +216,7 @@ type Portal struct {
|
|||
|
||||
func (portal *Portal) handleMessageLoopItem(msg PortalMessage) {
|
||||
if len(portal.MXID) == 0 {
|
||||
if msg.fake == nil && (msg.evt == nil || !containsSupportedMessage(msg.evt.Message)) {
|
||||
if msg.fake == nil && msg.undecryptable == nil && (msg.evt == nil || !containsSupportedMessage(msg.evt.Message)) {
|
||||
portal.log.Debugln("Not creating portal room for incoming message: message is not a chat message")
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue