Commit Graph

63 Commits

Author SHA1 Message Date
Polynomdivision
5e1be8e558
Do not fail on no avatar data (xmpp) ()
* Detect errors when working with AvatarData

* Remove not neccessary line

Co-authored-by: Wim <wim@42.be>
2021-10-30 17:50:37 +02:00
Wim
c4fe462d11
Use a new msgID when replacing messages (xmpp). Fixes () 2021-10-24 23:15:46 +02:00
tytan652
1f365c716e
Add support for anonymous connection (xmpp) () 2021-07-31 17:26:36 +02:00
tytan652
da4dcec14d
Fix XMPP parseNick function () 2021-07-20 23:39:14 +02:00
Alexander
763bb95cea
Fix webhooks for channels with special characters (xmpp) () 2021-02-17 21:30:06 +01:00
Alexander
ce5140febd
Fix panic when the webhook fails (xmpp) () 2021-02-15 22:18:30 +01:00
Alexander
4ac6366706
Allow the XMPP bridge to use slack compatible webhooks (xmpp) ()
* Add mod_slack_webhook support to the XMPP bridge

* Replace b.webhookURL with b.GetString

* Do not return a message ID on webhook POST

* Add the XMPP webhook to the sample configuration
2021-01-21 22:50:04 +01:00
George
765e00c949
Add NoTLS option to allow plaintext XMPP connections ()
Co-authored-by: George <zhoreeq@users.noreply.github.com>
2020-11-13 23:59:05 +01:00
Alexander
900375679b
Prevent re-requesting avatar data (xmpp) ()
Prevent asking the server again and again for a
user's avatar if the server does not respond to
our initial request.
2020-05-24 14:07:36 +02:00
Wim
3c4a3e3f75
Implement xep-0245 (xmpp). Closes () 2020-05-23 20:51:04 +02:00
Alexander
7183095a28
Implement User Avatar spoofing of XMPP users ()
* Implement User Avatar spoofing of XMPP users
2020-04-16 22:16:25 +02:00
Wim
29f658fd3c Use DebugWriter after upstream changes (xmpp) 2020-03-29 15:03:24 +02:00
Wim
3562d4220c
Bail if incorrect Jid (xmpp). Fixes () 2019-09-07 21:36:25 +02:00
Wim
cf3cddafab Keep connection state. Fixes
Actually check if we're connected when trying to Send() a message.
Messages now will get dropped when not connected.

TODO: Ideally this should be in a ring buffer to retransmit when the
connection comes back up.
2019-06-30 18:34:41 +02:00
Nick
7a3bb0e55c Verify TLS against JID domain, not the host. (xmpp) ()
Partially fixes .

A full fix requires patching https://github.com/matterbridge/go-xmpp to use DNS SRV records.
2019-06-14 01:10:43 +02:00
Wim
6e8f535e8b Fix logic (xmpp) 2019-06-14 00:44:31 +02:00
Wim
53dfb78215
Allow messages with timestamp (xmpp). Fixes () 2019-06-14 00:24:42 +02:00
Wim
6617bd6609 Revert xmpp to orig behaviour. Closes 2019-06-13 23:35:04 +02:00
Duco van Amstel
3724cc3a15 Clean-up XMPP handling code () 2019-05-30 12:31:54 +02:00
Wim
a775b57134
Do not send topic changes on connect (xmpp). Fixes ()
This checks if we get a topic change < 5 seconds after connection.
If that's the case, ignore it.
Also this PR makes the topic change an actual EventTopicChange.
2019-02-23 23:03:21 +01:00
Duco van Amstel
ce21ba1545 Fix golint linter issues and enable it in CI () 2018-11-15 20:43:43 +01:00
David Hill
0e2522279e Clean up various stuff ()
* various cleanups
2018-11-07 20:36:50 +01:00
Bruno Bierbaumer
6628a47f23 Add channel password support for XMPP () 2018-06-18 22:55:45 +02:00
Liam Stanley
51327a4056 Reconnect on quit. (irc) See ()
* potential fixes for 
* go: fix formatting/gofmt/goreturns
2018-06-09 12:47:40 +02:00
ValdikSS
91db63294c Add message correction support for XMPP ()
It works worse than it could be, since message correction in XMPP
works differently compared to other messengers. XMPP replaces old
message with old ID with new message with new ID. Matterbridge
remembers only old ID, that's why you can edit a message from
XMPP to the gateway only once.

Edited messages from other networks to XMPP are handled correctly
though.
2018-05-29 23:29:51 +02:00
ValdikSS
be04d1a862 Send attached files to XMPP in different message with OOB data and without body ()
Conversations can't show inline pictures if there's anything besides URL in the message body.
Workaround this issue by sending one usual message and one message with OOB data and without message body.
The second message should not be shown in the clients without OOB support, so the user won't see the empty message.
2018-05-09 23:04:10 +02:00
Wim
72ce7f06e9 Handle file comment better 2018-05-06 16:57:59 +02:00
Wim
16be6601c8 Fix incorrect skipmessage (xmpp) 2018-03-05 00:36:54 +01:00
Wim
f2f1d874e1 Use viper (github.com/spf13/viper) for configuration 2018-03-04 23:52:14 +01:00
Wim
594d2155e3 Improve debug messages 2018-02-28 22:23:29 +01:00
Wim
20dbd71306 Make megacheck happy 2018-02-27 23:38:36 +01:00
Wim
6a727b9723 Use our own version of go-xmpp with debug output to logrus 2018-02-27 23:22:12 +01:00
Wim
2bac867382 Refactor using factory 2018-02-27 23:22:12 +01:00
Wim
5fbd8a3be0 Refactor xmpp 2018-02-27 23:22:11 +01:00
Wim
d1227b5fc9 Use prefixed-formatter for better logging 2018-02-21 00:20:25 +01:00
Wim
6ea368c383 Move Sirupsen => sirupsen 2018-02-20 23:41:09 +01:00
Wim
80822b7fff Send chat notification if media is too big to be re-uploaded to MediaServer. See 2018-02-03 01:11:11 +01:00
ValdikSS
da908c438a Add space between colon and URL for uploaded media () 2018-02-01 17:46:10 +01:00
Wim
7764493298 Add comment to file upload from telegram. Show comments on all bridges. Closes 2018-02-01 00:41:09 +01:00
Wim
6a047f8722 Print only debug messages when specified (xmpp). Closes 2018-01-26 21:54:09 +01:00
Wim
e1dc3032c1 Ignore <subject> messages (xmpp). 2018-01-14 23:43:34 +01:00
Wim
265457b451 Refactor and add MediaDownloadSize to General 2017-12-19 23:15:03 +01:00
Wim
7ec95f786d Use mediaserver urls for irc,gitter and xmpp 2017-11-24 22:55:24 +01:00
Wim
ed01820722 Add support for deleting messages across bridges.
Currently fully support mattermost,slack and discord.
Message deleted on the bridge or received from other bridges will be
deleted.

Partially support for Gitter.
Gitter bridge will delete messages received from other bridges.
But if you delete a message on gitter, this deletion will not be sent to
other bridges (this is a gitter API limitation, it doesn't propogate edits
or deletes via the API)
2017-09-11 22:45:15 +02:00
Wim
5a8d7b5f6d Modify Send() to return also a message id 2017-08-27 22:59:37 +02:00
Wim
28710d0bc7 Allow a webhookurl per channel (discord). 2017-08-12 14:51:41 +02:00
Wim
f8e6a69d6e Add action support for slack,mattermost,irc,gitter,matrix,xmpp,discord. 2017-07-30 17:48:23 +02:00
Wim
0f791d7a9a Handle reconnections better (xmpp). Closes 2017-07-20 23:16:43 +02:00
Wim
2ddc4f7ae9 Add UserID to each message. Closes 2017-06-18 15:44:54 +02:00
Frank
ee643de5b6 Add Compatibility for Cisco Jabber (xmpp) () 2017-05-11 20:10:53 +02:00