mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Fix xmpp notify for muc rooms (#46715)
This commit is contained in:
parent
c11b85af2f
commit
0e368df023
@ -165,7 +165,7 @@ async def async_send_message(
|
|||||||
if message:
|
if message:
|
||||||
self.send_text_message()
|
self.send_text_message()
|
||||||
|
|
||||||
self.disconnect(wait=True)
|
self.disconnect()
|
||||||
|
|
||||||
async def send_file(self, timeout=None):
|
async def send_file(self, timeout=None):
|
||||||
"""Send file via XMPP.
|
"""Send file via XMPP.
|
||||||
@ -174,7 +174,7 @@ async def async_send_message(
|
|||||||
HTTP Upload (XEP_0363)
|
HTTP Upload (XEP_0363)
|
||||||
"""
|
"""
|
||||||
if room:
|
if room:
|
||||||
self.plugin["xep_0045"].join_muc(room, sender, wait=True)
|
self.plugin["xep_0045"].join_muc(room, sender)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# Uploading with XEP_0363
|
# Uploading with XEP_0363
|
||||||
@ -335,7 +335,7 @@ async def async_send_message(
|
|||||||
try:
|
try:
|
||||||
if room:
|
if room:
|
||||||
_LOGGER.debug("Joining room %s", 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")
|
self.send_message(mto=room, mbody=message, mtype="groupchat")
|
||||||
else:
|
else:
|
||||||
for recipient in recipients:
|
for recipient in recipients:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user