From 963deb705a72f83e31a29194bf936b0349f03e85 Mon Sep 17 00:00:00 2001 From: Alexander PapaTutuWawa Date: Thu, 16 Sep 2021 17:01:34 +0200 Subject: [PATCH] b --- xmpp_discord_bridge/main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xmpp_discord_bridge/main.py b/xmpp_discord_bridge/main.py index ae2417b..1aa3843 100644 --- a/xmpp_discord_bridge/main.py +++ b/xmpp_discord_bridge/main.py @@ -260,6 +260,8 @@ class BridgeComponent(ComponentXMPP): "type": "rich", "url": message["oob"]["url"] }] + + self._logger.debug("Webhook: %s", str(webhook)) requests.post(self._webhooks[muc], data=webhook, @@ -469,7 +471,8 @@ class BridgeComponent(ComponentXMPP): muc, resource) else: - await self._avatars.aquire_avatar(presence["from"]) + if self._relay_xmpp_avatars: + await self._avatars.aquire_avatar(presence["from"]) self._real_muc_users[muc].append(resource) async def on_session_start(self, event):