From 077edae986f2229d263f978b7cf35ed88254c042 Mon Sep 17 00:00:00 2001 From: Bohdan Horbeshko Date: Wed, 5 Jan 2022 16:04:22 -0500 Subject: Add keeponline option --- xmpp/gateway/gateway.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xmpp/gateway/gateway.go') diff --git a/xmpp/gateway/gateway.go b/xmpp/gateway/gateway.go index eb46e48..a4f3aca 100644 --- a/xmpp/gateway/gateway.go +++ b/xmpp/gateway/gateway.go @@ -18,6 +18,10 @@ var Queue = make(map[string]*stanza.Presence) // Jid stores the component's JID object var Jid *stanza.Jid +// DirtySessions denotes that some Telegram session configurations +// were changed and need to be re-flushed to the YamlDB +var DirtySessions = false + // SendMessage creates and sends a message stanza func SendMessage(to string, from string, body string, component *xmpp.Component) { componentJid := Jid.Full() -- cgit v1.2.3