This commit is contained in:
Andrew Nicols
2025-10-16 13:24:18 +08:00
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -698,8 +698,8 @@ class api {
return;
}
// No userids? don't bother doing anything.
if (empty($userids)) {
// No user IDs or this provider does not manage users? No action required.
if (empty($userids) || !$this->communication->supports_user_features()) {
return;
}
@@ -34,8 +34,8 @@ class update_room_membership_task extends adhoc_task {
// Call the communication api to action the operation.
$communication = processor::load_by_id($data->id);
if ($communication === null) {
mtrace("Skipping room creation because the instance does not exist");
if ($communication === null || !$communication->supports_user_features()) {
mtrace("Skipping room membership because the instance does not exist or does not support user features");
return;
}