chore: Follow up fix for request users in invite rooms

This commit is contained in:
Christian Pauly 2022-11-09 15:04:00 +01:00
parent f701294c68
commit 7caab4d086
2 changed files with 3 additions and 6 deletions

View File

@ -2256,7 +2256,7 @@ class Client extends MatrixApi {
Future<Set<String>> _getUserIdsInEncryptedRooms() async { Future<Set<String>> _getUserIdsInEncryptedRooms() async {
final userIds = <String>{}; final userIds = <String>{};
for (final room in rooms) { for (final room in rooms) {
if (room.encrypted) { if (room.encrypted && room.membership == Membership.join) {
try { try {
final userList = await room.requestParticipants(); final userList = await room.requestParticipants();
for (final user in userList) { 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 // 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 // in this session or have a complete list locally.
// member of this room. if (_requestedParticipants || participantListComplete) {
if (_requestedParticipants ||
participantListComplete ||
membership != Membership.join) {
return getParticipants(); return getParticipants();
} }