Skip to content

Commit

Permalink
clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
ichthyx committed Jul 29, 2023
1 parent b5be271 commit 4872369
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions prometheus_xmpp/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,15 +242,8 @@ async def dispatch_message(self, mto, mbody, mhtml):
return_exceptions=True,
)
muc_affiliation = owners + admins + members + outcasts
logging.debug(f"MUC_AFFILIATION: {muc_affiliation}")
recipients = []
for nick in muc_affiliation:
recipients.append(JID(nick))
recipients = [JID(nick) for nick in muc_affiliations]
logging.debug(f"sending encrypted message to recipients: {recipients}")
# for nick in muc_affiliation:
# recipients.append(
# JID(self.plugin["xep_0045"].get_jid_property(mto, nick, "jid"))
# )
await self.send_encrypted(mto=recipients, mtype="groupchat", body=mbody)

async def send_encrypted(self, mto: JID, mtype: str, body):
Expand Down

0 comments on commit 4872369

Please sign in to comment.