MDL-64167 core_message: get_conversations() excludes self conversations
The UI can't handle these, so for now, let's not return them.
This commit is contained in:
@@ -759,6 +759,11 @@ class api {
|
||||
continue;
|
||||
}
|
||||
|
||||
// Exclude 'self' conversations for now.
|
||||
if (isset($selfconversations[$conversation->id])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$conv = new \stdClass();
|
||||
$conv->id = $conversation->id;
|
||||
$conv->name = $conversation->conversationname;
|
||||
|
||||
Reference in New Issue
Block a user