This commit is contained in:
PapaTutuWawa 2021-09-16 17:01:34 +02:00
parent 74d9e1ddc2
commit 963deb705a

View File

@ -261,6 +261,8 @@ class BridgeComponent(ComponentXMPP):
"url": message["oob"]["url"] "url": message["oob"]["url"]
}] }]
self._logger.debug("Webhook: %s", str(webhook))
requests.post(self._webhooks[muc], requests.post(self._webhooks[muc],
data=webhook, data=webhook,
headers={ headers={
@ -469,7 +471,8 @@ class BridgeComponent(ComponentXMPP):
muc, muc,
resource) resource)
else: 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) self._real_muc_users[muc].append(resource)
async def on_session_start(self, event): async def on_session_start(self, event):