Implement User Avatar spoofing of XMPP users

NOTE: Since the CI was signaling mistakes, I fixed
them and squashed the individual "fixing commits"
into this one.
This commit is contained in:
Alexander PapaTutuWawa
2020-03-29 18:34:37 +02:00
parent 976fbcd07f
commit ba4b2ecfff
4 changed files with 82 additions and 3 deletions

View File

@@ -169,7 +169,7 @@ func (gw *Gateway) ignoreEvent(event string, dest *bridge.Bridge) bool {
switch event {
case config.EventAvatarDownload:
// Avatar downloads are only relevant for telegram and mattermost for now
if dest.Protocol != "mattermost" && dest.Protocol != "telegram" {
if dest.Protocol != "mattermost" && dest.Protocol != "telegram" && dest.Protocol != "xmpp" {
return true
}
case config.EventJoinLeave: