From c2520c14db2b50201a4330246e81e6eef00db7f7 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Thu, 16 Dec 2021 10:32:52 +0200 Subject: [PATCH] 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. --- portal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/portal.go b/portal.go index 212cf66..8bdf59f 100644 --- a/portal.go +++ b/portal.go @@ -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 }