From 17e4523382d7656c470569017a1df4235a8720a5 Mon Sep 17 00:00:00 2001 From: Safat Date: Tue, 6 Jun 2023 17:08:51 +1000 Subject: [PATCH] MDL-77357 communication_matrix: Test fix for course banner notification --- communication/provider/matrix/classes/communication_feature.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/communication/provider/matrix/classes/communication_feature.php b/communication/provider/matrix/classes/communication_feature.php index 739c06a385e..f5254a0a49e 100644 --- a/communication/provider/matrix/classes/communication_feature.php +++ b/communication/provider/matrix/classes/communication_feature.php @@ -323,7 +323,7 @@ class communication_feature implements public function get_chat_room_url(): ?string { // Check for room record in Moodle and that it exists in Matrix. - if (!$this->matrixrooms->room_record_exists()) { + if (!$this->matrixrooms->room_record_exists() || !$this->matrixrooms->get_matrix_room_id()) { return null; }