MDL-77357 communication_matrix: Test fix for course banner notification

This commit is contained in:
Safat 2023-06-06 17:08:51 +10:00
parent 5fc1dedeae
commit 17e4523382

View File

@ -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;
}