From bb1d28c755450cf9e6e95782f477b1909d9bfb1f Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Wed, 13 Nov 2019 09:40:41 +0200 Subject: [PATCH] Fix typo --- portal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/portal.go b/portal.go index 088932b..0015745 100644 --- a/portal.go +++ b/portal.go @@ -1223,7 +1223,7 @@ func (portal *Portal) HandleMatrixMessage(sender *User, evt *mautrix.Event) { relaybotFormatted := false if sender.NeedsRelaybot(portal) { if !portal.HasRelaybot() { - if user.HasSession() { + if sender.HasSession() { portal.log.Debugln("Database says", sender.MXID, "not in chat and no relaybot, but trying to send anyway") } else { portal.log.Debugln("Ignoring message from", sender.MXID, "in chat with no relaybot")