5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-09-19 21:32:31 +00:00
matterbridge/bridge
Wim 7886f05e88 Download (and upload) avatar images from mattermost and telegram when mediaserver is configured. Closes #362
An extra avatarMap (cache) is created for mattermost and telegram.
If MediaServerUpload is configured, the avatar images of users are downloaded the first time a
user sends a message.
If this download succeeds a message with EVENT_AVATAR_DOWNLOAD is sent to the originating protocol.
This message also contains a SHA field (in msg.Extra["file"]), if this is not empty, the sha will
be added to the avatarMap. (so we now have a userid-sha cache)

Next time this user sends a message, the MediaServerUpload/sha/userid.png URL will be used as the
avatar field.
2018-02-20 01:15:25 +01:00
..
api Refactor and add MediaDownloadSize to General 2017-12-19 23:15:03 +01:00
config Download (and upload) avatar images from mattermost and telegram when mediaserver is configured. Closes #362 2018-02-20 01:15:25 +01:00
discord Remove unused code 2018-02-15 00:07:25 +01:00
gitter Send chat notification if media is too big to be re-uploaded to MediaServer. See #359 2018-02-03 01:11:11 +01:00
helper Download (and upload) avatar images from mattermost and telegram when mediaserver is configured. Closes #362 2018-02-20 01:15:25 +01:00
irc Truncate messages sent to IRC based on byte count (#368) 2018-02-08 23:28:33 +01:00
matrix Send chat notification if media is too big to be re-uploaded to MediaServer. See #359 2018-02-03 01:11:11 +01:00
mattermost Download (and upload) avatar images from mattermost and telegram when mediaserver is configured. Closes #362 2018-02-20 01:15:25 +01:00
rocketchat Send chat notification if media is too big to be re-uploaded to MediaServer. See #359 2018-02-03 01:11:11 +01:00
slack Add channel_purpose to ShowTopicChange. Ignore (un)pinned_item (slack). #353 2018-02-03 01:15:57 +01:00
sshchat Send chat notification if media is too big to be re-uploaded to MediaServer. See #359 2018-02-03 01:11:11 +01:00
steam Refactor and add MediaDownloadSize to General 2017-12-19 23:15:03 +01:00
telegram Download (and upload) avatar images from mattermost and telegram when mediaserver is configured. Closes #362 2018-02-20 01:15:25 +01:00
xmpp Send chat notification if media is too big to be re-uploaded to MediaServer. See #359 2018-02-03 01:11:11 +01:00
bridge.go Fix regression. Closes #323 2017-12-26 19:13:27 +01:00