aboutsummaryrefslogtreecommitdiff
path: root/xmpp/handlers.go
diff options
context:
space:
mode:
authorBohdan Horbeshko <bodqhrohro@gmail.com>2023-06-08 20:33:22 +0300
committerBohdan Horbeshko <bodqhrohro@gmail.com>2023-06-08 20:33:22 +0300
commit00f1417cb2ed8199633a12989e9befb53298d407 (patch)
tree37b7eeb9d66595c14bf5b4941cc13ff3f9bdb5d5 /xmpp/handlers.go
parent79fc0ddbe5010f54707441cb3f15c43192124ed2 (diff)
Version 1.6.0v1.6.0
Diffstat (limited to 'xmpp/handlers.go')
-rw-r--r--xmpp/handlers.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/xmpp/handlers.go b/xmpp/handlers.go
index 5034551..d5666b1 100644
--- a/xmpp/handlers.go
+++ b/xmpp/handlers.go
@@ -183,13 +183,13 @@ func HandleMessage(s xmpp.Sender, p stanza.Packet) {
}
} else {
/*
- // if a message failed to edit on Telegram side, match new XMPP ID with old Telegram ID anyway
- if replaceId != 0 {
- err = gateway.IdsDB.ReplaceXmppId(session.Session.Login, bare, replace.Id, msg.Id)
- if err != nil {
- log.Errorf("Failed to replace id %v with %v", replace.Id, msg.Id)
- }
- } */
+ // if a message failed to edit on Telegram side, match new XMPP ID with old Telegram ID anyway
+ if replaceId != 0 {
+ err = gateway.IdsDB.ReplaceXmppId(session.Session.Login, bare, replace.Id, msg.Id)
+ if err != nil {
+ log.Errorf("Failed to replace id %v with %v", replace.Id, msg.Id)
+ }
+ } */
}
return
} else {
@@ -225,7 +225,7 @@ func HandleMessage(s xmpp.Sender, p stanza.Packet) {
suffix := "@" + msg.From
for bare := range sessions {
if strings.HasSuffix(bare, suffix) {
- gateway.SendServiceMessage(bare, "Your server \"" + msg.From + "\" does not allow to send carbons", component)
+ gateway.SendServiceMessage(bare, "Your server \""+msg.From+"\" does not allow to send carbons", component)
}
}
}