Merge branch 'MDL-63913-master' of https://github.com/snake/moodle
This commit is contained in:
@@ -2968,10 +2968,11 @@ class api {
|
||||
self::MESSAGE_CONVERSATION_TYPE_GROUP => 0
|
||||
]];
|
||||
foreach ($unreadcounts as $convid => $info) {
|
||||
$counts['types'][$info->type]++;
|
||||
if (isset($favouriteconvids[$convid])) {
|
||||
$counts['favourites']++;
|
||||
continue;
|
||||
}
|
||||
$counts['types'][$info->type]++;
|
||||
}
|
||||
|
||||
return $counts;
|
||||
|
||||
Reference in New Issue
Block a user