diff options
author | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2022-01-06 00:04:22 +0300 |
---|---|---|
committer | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2022-01-06 00:04:22 +0300 |
commit | 077edae986f2229d263f978b7cf35ed88254c042 (patch) | |
tree | 01877034c1989565e2de30bce04d1c15eb06579e /xmpp/gateway/gateway.go | |
parent | d48cb8b58682d3b9c5798913de35ae62dd20dd38 (diff) |
Add keeponline option
Diffstat (limited to 'xmpp/gateway/gateway.go')
-rw-r--r-- | xmpp/gateway/gateway.go | 4 |
1 files changed, 4 insertions, 0 deletions
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() |