Merge branch 'krille/fix-request-users' into 'main'

chore: Follow up fix for request users in invite rooms

See merge request famedly/company/frontend/famedlysdk!1163
This commit is contained in:
td 2022-11-14 09:32:11 +00:00
commit 6784f4e83a
2 changed files with 3 additions and 6 deletions

View File

@ -2256,7 +2256,7 @@ class Client extends MatrixApi {
Future<Set<String>> _getUserIdsInEncryptedRooms() async {
final userIds = <String>{};
for (final room in rooms) {
if (room.encrypted) {
if (room.encrypted && room.membership == Membership.join) {
try {
final userList = await room.requestParticipants();
for (final user in userList) {

View File

@ -1460,11 +1460,8 @@ class Room {
}
// Do not request users from the server if we have already done it
// in this session, have a complete list locally or are not a joined
// member of this room.
if (_requestedParticipants ||
participantListComplete ||
membership != Membership.join) {
// in this session or have a complete list locally.
if (_requestedParticipants || participantListComplete) {
return getParticipants();
}