5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-11-21 22:50:27 +00:00
matterbridge/bridge
Joseph Mansy d00dcf3f58
Handle Whatsapp threading/replies (whatsapp) (#1974)
* Handle Whatsapp threading/replies.
In this change we are updating whatsapp message IDs to include sender JID as this is necessary to reply to a message
https://github.com/tulir/whatsmeow/issues/88#issuecomment-1093195237
https://github.com/tulir/whatsmeow/discussions/148#discussioncomment-3094325

Based on commit 6afa93e537c53b371db37f35a3546ff0fb669416 from #1934
    Author: Iiro Laiho <iiro.laiho@iki.fi>

* Fix replies.
Sender JID can have a `:` inside of it, using `/` as a delimiter now.
Added messageID parser + struct.
messages sent with an attachment do not show replies
But at least common `sendMessage` will make repies from whatsapp to an attachement bridge across.

The new message ID format broke message deleting, so we change the messageID into the real id at the beginning of send.
We really do need the extra info for when we reply to a message though.

* Refactored message replies.
file/Image/audio/replies all work now.
2023-03-09 21:57:19 +01:00
..
api Sent loopback messages to other websockets as well (api) (#1216) 2020-08-27 22:28:03 +02:00
config Add UseUsername option (mattermost). Fixes #1665 (#1714) 2022-02-06 17:33:41 +01:00
discord Ignore events from other guilds, add nosendjoinpart support (discord) (#1846) 2022-06-24 23:50:48 +02:00
gitter Fix golint linter issues and enable it in CI (#593) 2018-11-15 20:43:43 +01:00
harmony Add support for Harmony (#1656) 2021-12-18 22:43:29 +01:00
helper Make the cgo lottie a build tag (-tag cgolottie) (#1955) 2023-01-29 00:34:27 +01:00
irc Allow substitution of bot's nick in RunCommands (irc) (#1890) 2022-11-27 00:01:10 +01:00
keybase Fix go-keybase-chat-bot api changes 2020-02-08 18:33:05 +01:00
matrix Add Matrix username spoofing (#1875) 2022-09-06 00:46:52 +02:00
mattermost Update dependencies (#1951) 2023-01-28 22:57:53 +01:00
msteams Fix panic in msteams. Fixes #1588 (#1622) 2021-10-24 22:17:46 +02:00
mumble Implement sending of EventJoinLeave both to and from Mumble (#1915) 2022-11-27 00:17:11 +01:00
nctalk Add support for separate display name (nctalk) (#1506) 2021-06-19 21:45:19 +02:00
rocketchat Handle Rocket.Chat attachments (#1395) 2021-02-15 22:34:14 +01:00
slack Fix error messages in telegram and slack bridges (#1862) 2022-09-05 19:31:45 +02:00
sshchat Fix duplicated messages (sshchat). Fixes #950 (#996) 2020-02-02 22:08:37 +01:00
steam Update dependencies (#886) 2019-09-07 22:46:58 +02:00
telegram Fix telegram attachment comment formatting and escaping (#1920) 2022-11-26 23:50:46 +01:00
vk Fix UploadMessagesPhoto for vk community chat (vk) (#1812) 2022-04-22 23:37:09 +02:00
whatsapp Add whatsapp deprecation warning (#1792) 2022-04-04 00:31:18 +02:00
whatsappmulti Handle Whatsapp threading/replies (whatsapp) (#1974) 2023-03-09 21:57:19 +01:00
xmpp Do not fail on no avatar data (xmpp) #1529 (#1627) 2021-10-30 17:50:37 +02:00
zulip Add better error handling on Zulip (#1589) 2021-10-23 23:46:27 +02:00
bridge.go Add sane RemoteNickFormat default for API (#1157) 2020-06-25 00:25:10 +02:00