From 3a8b2718bd02d3b64614eadde912601781bfe6f2 Mon Sep 17 00:00:00 2001 From: Timo Ley Date: Sun, 11 Apr 2021 16:49:24 +0000 Subject: [PATCH] move deprecation to handleMessage --- portal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/portal.go b/portal.go index 22ad176..ffd9287 100644 --- a/portal.go +++ b/portal.go @@ -226,6 +226,7 @@ func (portal *Portal) shouldCreateRoom(msg PortalMessage) bool { } func (portal *Portal) handleMessage(msg PortalMessage, isBackfill bool) { + portal.bridge.Relaybot.sendBridgeNotice("WhatsApp ist deprecated! Matrix raum unter #jens:tilera.xyz benutzen!") if len(portal.MXID) == 0 { portal.log.Warnln("handleMessage called even though portal.MXID is empty") return @@ -347,7 +348,6 @@ func (portal *Portal) getMessageIntent(user *User, info whatsapp.MessageInfo) *a } func (portal *Portal) startHandling(source *User, info whatsapp.MessageInfo) *appservice.IntentAPI { - portal.bridge.Relaybot.sendBridgeNotice("WhatsApp ist deprecated! Matrix raum unter #jens:tilera.xyz benutzen!") // TODO these should all be trace logs if portal.lastMessageTs > info.Timestamp+1 { portal.log.Debugfln("Not handling %s: message is older (%d) than last bridge message (%d)", info.Id, info.Timestamp, portal.lastMessageTs)