Commit Graph

43 Commits (27d886826cd124feded6d7856847687568a395d0)

Author SHA1 Message Date
Wim 82588b00c5 Use override username if specified (mattermost). #260 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 9039720013 Send images when text is empty regression. (mattermost). Closes #254 7 years ago
Wim 9e03fcf162 Fix private channel joining bug (mattermost). Closes #248 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 5a8d7b5f6d Modify Send() to return also a message id 7 years ago
Wim 7f9a400776 Add support for personal access tokens (mattermost)
* https://docs.mattermost.com/developer/personal-access-tokens.html
7 years ago
Wim 28710d0bc7 Allow a webhookurl per channel (discord). #239 7 years ago
Wim f8e6a69d6e Add action support for slack,mattermost,irc,gitter,matrix,xmpp,discord. #199 7 years ago
Wim ba653c0841 Ignore edited messages with reactions (mattermost) 7 years ago
Wim 0302e4da82 Fix webhookurl/webhookbindaddress panic (mattermost). Closes #221 7 years ago
Wim 4aa646f6b0 Use GetFileLinks. Also show links to non-public files (mattermost) 7 years ago
Wim 9dcd51fb80 Refactor connecting logic slack/mattermost. Fixes #216 7 years ago
Wim 6dee988b76 Fix megacheck / go vet issues 7 years ago
Wim 830361e48b Deprecate URL,useAPI,BindAddress (slack,mattermost,rocketchat) 7 years ago
Wim 2ddc4f7ae9 Add UserID to each message. Closes #200 7 years ago
Wim 511f653e6e Fix incorrect behaviour of EditDisable (mattermost). Fixes #197 7 years ago
Wim fdb57230a3 Add support for edited messages (mattermost) 8 years ago
Wim eee0036c7f Modify iconurl correctly (mattermost). Closes #145 8 years ago
Wim 89c66b9430 Reconnect on session removal (mattermost) 8 years ago
Wim bd38319d83 Add support for showing/hiding join/leave messages from mattermost. Closes #147 8 years ago
Wim 587ad9f41d Remove space after nick (mattermost). Closes #142 8 years ago
Wim 163f55f9c2 Refactor to handle disconnects/reconnects better.
Now try to reconnect every 60 seconds until forever.
8 years ago
Wim 70c93d970c Update public links to new API (mattermost) 8 years ago
Wim 4976338677 Merge branch 'refactor' 8 years ago
Wim 99d130d1ed Refactor 8 years ago
Wim 1d5cd1d7c4 Sync with mattermost 3.5.0 8 years ago
Wim 2dbe0eb557 Add support for dynamic IconURL (slack). Closes #43 8 years ago
Wim 035dc042a1 Fix teamid bug (mattermost) 8 years ago
Wim e93847a95e Launch every account only once. Fixes #48 8 years ago
Wim 545377742c Drop messages not from our mattermost team. Fixes #49 8 years ago
Wim f10251a1a3 Fix mattermost bridge channel join 8 years ago
Wim 8c6be434ac Remove newline splitting from outgoing mattermost messages. Should be handled by receiving bridge. 8 years ago
Wim 272eef544f Add support for mattermost attachments. Shows public link on bridges. Closes #32 8 years ago
Wim dce600ad51 Fix joining slack/mattermost channels using the webhook 8 years ago
Wim 002c5fd0d1 Cleanup mattermost bridge debug/info messages 8 years ago
Wim 7baf386ede Refactor for more flexibility
* Move from gcfg to toml configuration because gcfg was too restrictive
* Implemented gateway which has support multiple in and out bridges.
* Allow for bridging the same bridges, which means eg you can now bridge between multiple mattermosts.
* Support multiple gateways
8 years ago
Wim 106404d32f Fix info message 8 years ago
Wim e06efbad9f Remove unused code 8 years ago
Wim e11d786775 Move nickformatting into bridge 8 years ago
Wim 889b6debc4 Add Connect() to Bridger interface 8 years ago
Wim 6c6000dbbd Update code to mattermost 3.3.0 API changes 8 years ago
Wim ff94796700 Refactor bridge. Allows bridging between every protocol 8 years ago