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:
Jake Dallimore
2018-11-26 08:52:55 +08:00
parent cb38961988
commit 425f5adcca
3 changed files with 59 additions and 0 deletions
+5
View File
@@ -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;