Commit Graph

1436 Commits (usemautrixlib)
 

Author SHA1 Message Date
Wim 7b3eaf3ccf Bump version 4 years ago
Wim 1a5353d768
Release v1.20.0 (#1298) 4 years ago
Wim eff41759bc
Add extra debug to log time spent sending a message per bridge (#1299) 4 years ago
Wim c23252ab53
Disable webhook editing (discord) (#1296)
See https://github.com/42wim/matterbridge/issues/1255 and
https://github.com/qaisjp/go-discord-irc/issues/57

Webhook edits gets ratelimited which cause other problems with
matterbridge. Disabling for now.
4 years ago
Simon THOBY 1a3c57a031
Send the display name instead of the user name (matrix) (#1282)
* matrix: send the display name (the nickname in matrix parlance) instead of the user name

There is also the option UseUserName (already in use by the discord bridge) to turn back to the old behavior.

* matrix: update displayNames on join events

* matrix: introduce a helper.go file to keep matrix.go size reasonable
4 years ago
Wim 4cc2c914e6
Update vendor (#1297) 4 years ago
Simon THOBY cbb46293ab
Update webhook messages via new endpoint (discord)
When using the webhook, the previous method to edit a message was to
delete the old one via the classical API, and to create a new message
via the webhook. While this works, this means that editing "old" messages
lead to a mess where the chronological order is no longer respected.

This uses an hidden API explained in https://support.discord.com/hc/en-us/community/posts/360034557771
to achieve a proper edition using the webhook API.

The obvious downside of this approach is that since it is an
undocumented API for now, so there is no stability guarantee :/
4 years ago
George 765e00c949
Add NoTLS option to allow plaintext XMPP connections (#1288)
Co-authored-by: George <zhoreeq@users.noreply.github.com>
4 years ago
Simon THOBY 662359908b
Allow message edits on matrix (#1286)
based on https://github.com/Half-Shot/matrix-doc/blob/hs/1695-message-edits-proposal/proposals/1695-message-edits.md
4 years ago
Wim 0d99766686 Update slack invite 4 years ago
Wim ae3bc3358b
Allow tengo to drop messages using msgDrop (#1272) 4 years ago
Wim 1e0b4532bd
Show deprecate warnings about old tengo settings (#1271) 4 years ago
Wim 4f8b19c686
Add PingDelay option (irc) (#1269) 4 years ago
Wim 84ab223b81 Bump version 4 years ago
Wim 2bb21262d4
Release v1.19.0 (#1268) 4 years ago
Dellle 3188a9ffe6
Add username formatting for all events (matrix) (#1233) 4 years ago
Wim 61569a8610
Add even more debug for irc (#1266) 4 years ago
Wim 075a84427f
Update vendor (#1265) 4 years ago
Gary Kim 950f2759bd
Add support for downloading files (nctalk) (#1249)
Signed-off-by: Gary Kim <gary@garykim.dev>
4 years ago
Wim 25c82ddf02
Use vendored whatsapp version (#1258) 4 years ago
Wim 2d98df6122
Update vendor (#1257) 4 years ago
Gary Kim 219a5453f9
Append a suffix if user is a guest user (nctalk) (#1250)
Signed-off-by: Gary Kim <gary@garykim.dev>
4 years ago
Sebastian P 214a6a1386
Add Mumble support (#1245) 4 years ago
Wim e7781dc79c Bump version 4 years ago
Wim 10c4bd1ac8
Create codeql-analysis.yml 4 years ago
Dellle a42e488e58
Add username for images from WhatsApp (#1232) 4 years ago
Ben Wiederhake 06eb89b05b
Matrix: Permit uploading files of other mimetypes (#1237)
This includes at least c-source-files, cpp-source-files,
markdown-files, Rust-files, and plaintext files.
We already allow uploading arbitrary executables. (And javascript-files,
coincidentally.) Not permitting these other text files would be highly unexpected.
4 years ago
Wim 91c58ec027 Bump version 4 years ago
Wim 8b26e42a3a
Release v1.18.3 (#1229) 4 years ago
Wim acca011f15 Use alpine stable for docker 4 years ago
Wim 2f59abdda7
Update vendor (#1228) 4 years ago
Wim 17747a5c88 Remove outdated link. Closes #1224 4 years ago
Wim cec63546ff
Check location of avatarURL (zulip). Fixes #1214 (#1227) 4 years ago
Gary Kim 75f67d2de4
Update nc-talk dependency (#1226) 4 years ago
Tilo Spannagel 712385ffd5
Format rich object strings (nctalk) (#1222)
Signed-off-by: Tilo Spannagel <development@tilosp.de>
4 years ago
Tilo Spannagel ad90cf09fe
Update nc-talk to version 0.1.2 (#1220)
Signed-off-by: Tilo Spannagel <development@tilosp.de>
4 years ago
Tilo Spannagel f9928c9e25
Switch to upstream gomatrix (#1219)
Signed-off-by: Tilo Spannagel <development@tilosp.de>
4 years ago
Gary Kim a0741d99b8
Add TLSConfig to nctalk (#1195)
Signed-off-by: Gary Kim <gary@garykim.dev>
4 years ago
NikkyAI c63f08c811
Sent loopback messages to other websockets as well (api) (#1216) 4 years ago
escoand 58b6c4d277
Handle broadcasts as groups in Whatsapp (#1213)
The current way to get the correct JID of a WhatsApp group is to dump all JIDs to the log and grab the right one. This is working for for groups fine but not for broadcast, as they are not print out.

According to https://www.npmjs.com/package/@noamalffasy/js-whatsapp we have these possibilities:
* Chats: `[country code][phone number]@s.whatsapp.net`
* Groups: `[country code][phone number of creator]-[timestamp of group creation]@g.us`
* Broadcast Channels: `[timestamp of group creation]@broadcast`

But the bridge does currently interprets (and prints) the only second option.
4 years ago
NikkyAI 27c02549c8
Replace gorilla with melody for websocket API (#1205) 4 years ago
Wim 88d371c71c
Release v1.18.2 (#1212) 4 years ago
Sandro b339524613
Add Dockerimage for tgs conversion (#1211)
* Add Dockerfile with tgs to png conversion support

* Add .dockerignore to keep cache busts while testing low
4 years ago
Wim d5feda5c8a
Fix error loop (zulip) (#1210)
Fixes #1047
4 years ago
Wim 2f506425c2
Update whatsapp vendor and fix a panic (#1209)
* Fix another whatsapp panic

* Update whatsapp vendor
4 years ago
Wim e8167ee3d7 Add link to nctalk in README 4 years ago
Wim 2f5e211065 Bump version 4 years ago
Wim 39f4fb3446
Release v1.18.1 (#1207) 4 years ago
Wim 56159b9bce
Sleep when ratelimited on joins (matrix). Fixes #1201 (#1206) 4 years ago
Ben Wiederhake b2af76e7dc
Support Telegram animated stickers (tgs) format (#1173)
This is half a fix for #874

This patch introduces a new config flag:
- MediaConvertTgs

These need to be treated independently from the existing
MediaConvertWebPToPNG flag because Tgs→WebP results in an
*animated* WebP, and the WebP→PNG converter can't handle
animated WebP files yet.

Furthermore, some platforms (like discord) don't even support
animated WebP files, so the user may want to fall back to
static PNGs (not APNGs).

The final reason why this is only half a fix is that this
introduces an external dependency, namely lottie, to be
installed like this:

$ pip3 install lottie cairosvg

This patch works by writing the tgs to a temporary file in /tmp,
calling lottie to convert it (this conversion may take several seconds!),
and then deleting the temporary file.
The temporary file is absolutely necessary, as lottie refuses to
work on non-seekable files.
If anyone comes up with a reasonable use case where /tmp is
unavailable, I can add yet another config option for that, if desired.

Telegram will bail out if the option is configured but lottie isn't found.
4 years ago