Don't try to send m.bridge events before portal is created
This commit is contained in:
@@ -14,7 +14,6 @@
|
|||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
from itertools import chain
|
|
||||||
|
|
||||||
from alchemysession import AlchemySessionContainer
|
from alchemysession import AlchemySessionContainer
|
||||||
|
|
||||||
|
|||||||
@@ -287,6 +287,9 @@ class PortalMetadata(BasePortal, ABC):
|
|||||||
return info
|
return info
|
||||||
|
|
||||||
async def update_bridge_info(self) -> None:
|
async def update_bridge_info(self) -> None:
|
||||||
|
if not self.mxid:
|
||||||
|
self.log.debug("Not updating bridge info: no Matrix room created")
|
||||||
|
return
|
||||||
try:
|
try:
|
||||||
self.log.debug("Updating bridge info...")
|
self.log.debug("Updating bridge info...")
|
||||||
await self.main_intent.send_state_event(self.mxid, StateBridge,
|
await self.main_intent.send_state_event(self.mxid, StateBridge,
|
||||||
|
|||||||
Reference in New Issue
Block a user