Browse Source

Merge pull request #8980 from nextcloud/bugfix/noid/always-sort-breakout-rooms

fix(API): Sort listed conversations on API level so CI results are stable
pull/8996/head
Joas Schilling 3 years ago
committed by GitHub
parent
commit
aa1e6d90f8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      lib/Manager.php

3
lib/Manager.php

@ -493,7 +493,8 @@ class Manager {
))
->where($query->expr()->isNull('a.id'))
->andWhere($query->expr()->in('r.type', $query->createNamedParameter($allowedRoomTypes, IQueryBuilder::PARAM_INT_ARRAY)))
->andWhere($query->expr()->in('r.listable', $query->createNamedParameter($allowedListedTypes, IQueryBuilder::PARAM_INT_ARRAY)));
->andWhere($query->expr()->in('r.listable', $query->createNamedParameter($allowedListedTypes, IQueryBuilder::PARAM_INT_ARRAY)))
->orderBy('r.id', 'ASC');
if ($term !== '') {
$query->andWhere(

Loading…
Cancel
Save