Commit Graph

51 Commits (c86137449e733fc643337f33eaa33daf9e16d73c)

Author SHA1 Message Date
Jason Robinson 714a2ad730
Add MxId/Token login option for Matrix (#1438)
* Add possibility for using MxId/Token with Matrix

Makes it possible to configure a Matrix bot to use Matrix ID + Access token instead of username/password. This makes it possible to use the bot in environments where password login is disabled (for example SSO environments).

Matrix user ID's are commonly referred to as "MXID's". I thought about (ab)using "Login" here but it felt like a bad idea given it's used as "username" for the password login. None of the other configuration items felt fitting.

Closes #1429

* MxId -> MxID

* Add err != nil to matrix.NewClient
3 years ago
Wim 92da8c7044
Mark messages as read (matrix). Fixes #1317 (#1328) 4 years ago
Wim 2d3c26a4b2
Implement ratelimiting (matrix). Fixes #1238 (#1326) 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
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
Dellle 3188a9ffe6
Add username formatting for all events (matrix) (#1233) 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
Tilo Spannagel f9928c9e25
Switch to upstream gomatrix (#1219)
Signed-off-by: Tilo Spannagel <development@tilosp.de>
4 years ago
Wim 56159b9bce
Sleep when ratelimited on joins (matrix). Fixes #1201 (#1206) 4 years ago
Dellle 63a1847cdc
Remove HTML formatting for push messages (#1188) (#1189)
When there is a valid HTML formatting then remove this in the cleartext
field of the matrix client. This leads to nicer push messages on
smartphone apps.

Fix #1188
4 years ago
Wim d44598a900
Add an option to disable sending HTML to matrix. Fixes #1022 (#1135) 4 years ago
Tiago Epifânio 7062234331
Avoid creating invalid url when the user doesn't have an avatar (matrix) (#1130) 4 years ago
Wim 54ed6320c2 Add support for avatars from matrix. #984 (#1007) 5 years ago
Wim 727fa9f929
Add support for uploading application/x and audio/x (matrix). Fixes #925 (#929) 5 years ago
Wim aeaea0574f
Detect html nicks in RemoteNickFormat (matrix). Fixes #696 (#719) 6 years ago
Wim 99d71c2177
Send notices on join/parts (matrix). Fixes #712 (#716) 6 years ago
Wim 3e60cfafd3
Send username when uploading video/images (matrix). Fixes #715 (#717) 6 years ago
David Hill f88c5f6c08 Fix displaying usernames for plain text clients. (matrix) (#685) 6 years ago
Wim 04567c765e
Add support for markdown to HTML conversion (matrix). Closes #663 (#670)
This uses our own gomatrix lib with the SendHTML function which
adds HTML to formatted_body in matrix.
golang-commonmark is used to convert markdown into valid HTML.
6 years ago
Wim 4265d43096
Refactor handleUploadFile (matrix) (#629) 6 years ago
Duco van Amstel ce21ba1545 Fix golint linter issues and enable it in CI (#593) 6 years ago
Wim 399789811e Make gocritic linter happy 6 years ago
Wim 1794922263 Make unparam linter happy 6 years ago
David Hill 0e2522279e Clean up various stuff (#508)
* various cleanups
6 years ago
Liam Stanley 51327a4056 Reconnect on quit. (irc) See #431 (#445)
* potential fixes for #431
* go: fix formatting/gofmt/goreturns
6 years ago
Wim f2f1d874e1 Use viper (github.com/spf13/viper) for configuration 7 years ago
Wim 594d2155e3 Improve debug messages 7 years ago
Wim 2bac867382 Refactor using factory 7 years ago
Wim 63b88e77f2 Refactor matrix 7 years ago
Wim d1227b5fc9 Use prefixed-formatter for better logging 7 years ago
Wim 6ea368c383 Move Sirupsen => sirupsen 7 years ago
Wim 80822b7fff Send chat notification if media is too big to be re-uploaded to MediaServer. See #359 7 years ago
Wim 9c9c4bf1f9 Fix build 7 years ago
Wim 7764493298 Add comment to file upload from telegram. Show comments on all bridges. Closes #358 7 years ago
Wim 7119e378a7 Add an extension to images without one (matrix). #331 7 years ago
Wim 8830a5a1df Fix possible panics (matrix). Closes #333 7 years ago
Wim 31902d3e57 Add support for deleting messages from/to matrix (matrix). Closes #320 7 years ago
Wim d0c4fe78ee Allow specifying maximum download size of media using MediaDownloadSize (slack,telegram,matrix) 7 years ago
Wim 265457b451 Refactor and add MediaDownloadSize to General 7 years ago
Wim 4a4a29c9f6 Fix panic (matrix). Closes #316 7 years ago
Wim cbd73ee313 Add support for uploaded images/video/files (matrix) 7 years ago
Wim 34227a7a39 Add support for uploading images/video (matrix). Closes #302 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 5a8d7b5f6d Modify Send() to return also a message id 7 years ago
Wim cfb8107138 Relay notices (matrix). Closes #243 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 2ddc4f7ae9 Add UserID to each message. Closes #200 7 years ago
Wim 4036d4459b Add NoHomeServerSuffix. Option to disable homeserver on username (matrix). Closes #160. 7 years ago
Wim 84c0b745af Use roomalias instead of internal ID (matrix) 8 years ago