Fix xmpp notify for muc rooms (#46715)

This commit is contained in:
SoCalix 2021-03-15 20:07:54 -05:00 committed by GitHub
parent c11b85af2f
commit 0e368df023
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -165,7 +165,7 @@ async def async_send_message(
if message:
self.send_text_message()
self.disconnect(wait=True)
self.disconnect()
async def send_file(self, timeout=None):
"""Send file via XMPP.
@ -174,7 +174,7 @@ async def async_send_message(
HTTP Upload (XEP_0363)
"""
if room:
self.plugin["xep_0045"].join_muc(room, sender, wait=True)
self.plugin["xep_0045"].join_muc(room, sender)
try:
# Uploading with XEP_0363
@ -335,7 +335,7 @@ async def async_send_message(
try:
if room:
_LOGGER.debug("Joining room %s", room)
self.plugin["xep_0045"].join_muc(room, sender, wait=True)
self.plugin["xep_0045"].join_muc(room, sender)
self.send_message(mto=room, mbody=message, mtype="groupchat")
else:
for recipient in recipients: