Commit Graph

520 Commits (4bda29cb3896ac65c3aafa784c8faac73c3c111b)
 

Author SHA1 Message Date
Wim 4bda29cb38 Try quoting previous messsage (telegram). #237 7 years ago
Wim 5f14141ec9 Try to not forward slack unfurls. Closes #266 7 years ago
Wim c088e45d85 Add more debug info (telegram) 7 years ago
Wim d59c51a94b Remove unnecessary check, make megacheck happy 7 years ago
Wim 47b7fae61b Fix loop from webhook by adding matterbridge prop (mattermost). Closes #261 7 years ago
Wim 1a40b0c1e9 Relay attachments from mattermost to slack (slack). Closes #260 7 years ago
Wim 27d886826c Allow empty message if we have a slack attachment 7 years ago
Wim 18981cb636 Add props 7 years ago
Wim ffa8f65aa8 Bump version 7 years ago
Wim 82588b00c5 Use override username if specified (mattermost). #260 7 years ago
Wim 603449e850 Update readme 7 years ago
Wim 248d88c849 Release v1.2.0 7 years ago
Wim d19535fa21 Update vendor (nlopes/slack) 7 years ago
Wim 49204cafcc Update vendor (bwmarrin/discordgo) apiv6 7 years ago
Wim 812db2d267 Bump version 7 years ago
Wim 14490bea9f Add partial support for deleted messages (telegram) 7 years ago
Wim 0352970051 Update vendor (go-telegram-bot-api/telegram-bot-api) 7 years ago
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)
7 years ago
Wim 90a61f15cc Do not break messages on newline (slack). Closes #258 7 years ago
Wim 86cd7f1ba6 Add UpdateUserNick 7 years ago
Wim d6ee55e35f Release v1.1.2 7 years ago
Wim aef64eec32 Update changelog 7 years ago
Wim c4193d5ccd Add 4.2 support (mattermost) 7 years ago
Wim 0c94186818 Add darwin-amd64 to nightly builds 7 years ago
Wim 9039720013 Send images when text is empty regression. (mattermost). Closes #254 7 years ago
Wim a3470f8aec Send first message after connect (slack). Closes #252 7 years ago
Wim 01badde21d Add message debugging (gitter) 7 years ago
Ryan Mulligan a37b232dd9 remove comment about useAPI in sample configuration (#251) 7 years ago
Ryan Mulligan 579ee48385 remove useAPI from sample configuration (#250) 7 years ago
Wim dd985d1dad Fix sending direct messages with APIv4 7 years ago
Wim d2caea70a2 Release v1.1.1 7 years ago
Wim 21143cf5ee Fix public links (mattermost) 7 years ago
Wim dc2aed698d Release v1.1.0 7 years ago
Wim 37c350f19f Convert utf-8 back to charset (irc). #247 7 years ago
Wim 9e03fcf162 Fix private channel joining bug (mattermost). Closes #248 7 years ago
Wim 8d4521c1df Update changelog 7 years ago
Wim 9226252336 Replace mentions from other bridges. (slack). Closes #233 7 years ago
Wim f4fb83e787 Use the detected charset (irc) 7 years ago
Wim e7fcb25107 Add a charset option (irc). Closes #247 7 years ago
Wim 5a85258f74 Update travis to go 1.9 7 years ago
Wim 2f7df2df43 Do not add messages without ID to cache 7 years ago
Wim ad3a753718 Remove debug message 7 years ago
Wim e45c551880 Add support for editing messages. Remove ZWSP as loopcheck (gitter) 7 years ago
Wim e59d338d4e Use github.com/42wim/go-gitter for now 7 years ago
Wim 7a86044f7a Add support for editing messages (telegram) 7 years ago
Wim 8b98f605bc Add support for editing messages (slack) 7 years ago
Wim 7c773ebae0 Add support for editing messages across bridges. Currently mattermost/discord.
Our Message type has an extra ID field which contains the message ID of the specific bridge.
The Send() function has been modified to return a msg ID (after the message to that specific
bridge has been created).

There is a lru cache of 5000 entries (message IDs). All in memory, so editing messages
will only work for messages the bot has seen.

Currently we go out from the idea that every message ID is unique, so we don't keep
the ID separate for each bridge. (we do for each gateway though)

If there's a new message from a bridge, we put that message ID in the LRU cache as key
and the []*BrMsgID as value (this slice contains the message ID's of each bridge that
received the new message)

If there's a new message and this message ID already exists in the cache, it must be
an updated message. The value from the cache gets checked for each bridge and if there
is a message ID for this bridge, the ID will be added to the Message{} sent to that
bridge. If the bridge sees that the ID isn't empty, it'll know it has to update the
message with that specific ID instead of creating a new message.
7 years ago
Wim e84417430d Update PostMessage to also return and error. Add EditMessage function 7 years ago
Wim 5a8d7b5f6d Modify Send() to return also a message id 7 years ago
Wim cfb8107138 Relay notices (matrix). Closes #243 7 years ago