1
0
forked from lug/matterbridge
matterbridge/gateway
Wim 7886f05e88 Download (and upload) avatar images from mattermost and telegram when mediaserver is configured. Closes
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
..
samechannel Update tests with gofmt 2017-07-25 20:20:55 +02:00
gateway_test.go Update tests with gofmt 2017-07-25 20:20:55 +02:00
gateway.go Download (and upload) avatar images from mattermost and telegram when mediaserver is configured. Closes 2018-02-20 01:15:25 +01:00
router.go Add initial support for an external mediaserver. 2017-11-24 22:36:19 +01:00