chore: Follow up fix for request users in invite rooms
This commit is contained in:
parent
f701294c68
commit
7caab4d086
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue