Commit Graph

1399 Commits

Author SHA1 Message Date
Wim ad95e35687 Rename jfif to jpg (whatsapp). Fixes #1292 2020-11-29 15:37:20 +01:00
Wim 640a9995f4 Refactor handleTextMessage (whatsapp) 2020-11-29 15:37:20 +01:00
Wim 95625f6871 Refactor image downloads (whatsapp) 2020-11-29 15:37:20 +01:00
Wim 2c20f72a9c Handle audio downloads (whatsapp) 2020-11-29 15:37:20 +01:00
Wim 5ad788e768 Handle video downloads (whatsapp) 2020-11-29 15:37:20 +01:00
Wim ed98c586c6 Add support for deleting messages (whatsapp) 2020-11-29 15:37:20 +01:00
Wim 3e865708d6 Refactor/cleanup code (whatsapp) 2020-11-29 15:37:20 +01:00
JeremyRand c3bcbd63c0
Add UserID to RemoteNickFormat and Tengo (#1308)
* Add UserID to RemoteNickFormat and Tengo

* Use strings.ReplaceAll in gateway.modifyUsername

Fixes a warning from gocritic linter.

* Use Unicode escape sequence instead of raw ZWSP in gateway.modifyUsername

Fixes a warning from stylecheck linter.
2020-11-25 23:54:27 +01:00
Simon THOBY 29e29439ee
Show mxids in case of clashing usernames (matrix) (#1309)
Fixes #1302.
2020-11-25 23:51:23 +01:00
Wim 0c19716f44
Join on invite (irc). Fixes #1231 (#1306) 2020-11-22 22:44:15 +01:00
Wim b24e1bafa1
Add support for irc to irc notice (irc). Fixes #754 (#1305) 2020-11-22 22:21:02 +01:00
Wim 64b899ac89
Retry until we have contacts (whatsapp). Fixes #1122 (#1304) 2020-11-22 21:42:54 +01:00
Wim aa274e5ab7
Update discordgo fork (#1303) 2020-11-22 19:21:34 +01:00
Wim 7b3eaf3ccf Bump version 2020-11-22 18:55:21 +01:00
Wim 1a5353d768
Release v1.20.0 (#1298) 2020-11-22 17:27:33 +01:00
Wim eff41759bc
Add extra debug to log time spent sending a message per bridge (#1299) 2020-11-22 17:20:20 +01:00
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.
2020-11-22 17:18:48 +01:00
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
2020-11-22 15:57:41 +01:00
Wim 4cc2c914e6
Update vendor (#1297) 2020-11-22 15:55:57 +01:00
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 :/
2020-11-14 04:08:09 +00:00
George 765e00c949
Add NoTLS option to allow plaintext XMPP connections (#1288)
Co-authored-by: George <zhoreeq@users.noreply.github.com>
2020-11-13 23:59:05 +01:00
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
2020-11-13 23:42:14 +01:00
Wim 0d99766686 Update slack invite 2020-10-24 21:04:24 +02:00
Wim ae3bc3358b
Allow tengo to drop messages using msgDrop (#1272) 2020-10-21 21:57:14 +02:00
Wim 1e0b4532bd
Show deprecate warnings about old tengo settings (#1271) 2020-10-21 20:35:22 +02:00
Wim 4f8b19c686
Add PingDelay option (irc) (#1269) 2020-10-21 01:14:13 +02:00
Wim 84ab223b81 Bump version 2020-10-21 00:59:11 +02:00
Wim 2bb21262d4
Release v1.19.0 (#1268) 2020-10-20 23:34:41 +02:00
Dellle 3188a9ffe6
Add username formatting for all events (matrix) (#1233) 2020-10-20 21:22:31 +02:00
Wim 61569a8610
Add even more debug for irc (#1266) 2020-10-20 00:33:15 +02:00
Wim 075a84427f
Update vendor (#1265) 2020-10-19 23:40:00 +02:00
Gary Kim 950f2759bd
Add support for downloading files (nctalk) (#1249)
Signed-off-by: Gary Kim <gary@garykim.dev>
2020-10-19 23:16:34 +02:00
Wim 25c82ddf02
Use vendored whatsapp version (#1258) 2020-10-12 00:05:17 +02:00
Wim 2d98df6122
Update vendor (#1257) 2020-10-11 23:07:00 +02:00
Gary Kim 219a5453f9
Append a suffix if user is a guest user (nctalk) (#1250)
Signed-off-by: Gary Kim <gary@garykim.dev>
2020-10-01 22:59:35 +02:00
Sebastian P 214a6a1386
Add Mumble support (#1245) 2020-10-01 22:50:56 +02:00
Wim e7781dc79c Bump version 2020-10-01 22:46:18 +02:00
Wim 10c4bd1ac8
Create codeql-analysis.yml 2020-10-01 22:02:05 +02:00
Dellle a42e488e58
Add username for images from WhatsApp (#1232) 2020-09-26 21:32:57 +02:00
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.
2020-09-26 21:28:24 +02:00
Wim 91c58ec027 Bump version 2020-09-05 00:10:30 +02:00
Wim 8b26e42a3a
Release v1.18.3 (#1229) 2020-09-05 00:02:37 +02:00
Wim acca011f15 Use alpine stable for docker 2020-09-04 23:47:03 +02:00
Wim 2f59abdda7
Update vendor (#1228) 2020-09-04 23:29:13 +02:00
Wim 17747a5c88 Remove outdated link. Closes #1224 2020-09-04 22:52:55 +02:00
Wim cec63546ff
Check location of avatarURL (zulip). Fixes #1214 (#1227) 2020-09-04 22:50:57 +02:00
Gary Kim 75f67d2de4
Update nc-talk dependency (#1226) 2020-09-04 22:14:36 +02:00
Tilo Spannagel 712385ffd5
Format rich object strings (nctalk) (#1222)
Signed-off-by: Tilo Spannagel <development@tilosp.de>
2020-08-31 01:49:43 +02:00
Tilo Spannagel ad90cf09fe
Update nc-talk to version 0.1.2 (#1220)
Signed-off-by: Tilo Spannagel <development@tilosp.de>
2020-08-30 15:19:51 +02:00
Tilo Spannagel f9928c9e25
Switch to upstream gomatrix (#1219)
Signed-off-by: Tilo Spannagel <development@tilosp.de>
2020-08-30 14:01:52 +02:00