Update to new sdk
This commit is contained in:
parent
df358328df
commit
a49d0f8958
11 changed files with 161 additions and 32 deletions
|
|
@ -16,8 +16,8 @@ class InvitationSelection extends StatelessWidget {
|
|||
List<User> participants = await room.requestParticipants();
|
||||
List<User> contacts = [];
|
||||
Map<String, bool> userMap = {};
|
||||
for (int i = 0; i < client.roomList.rooms.length; i++) {
|
||||
List<User> roomUsers = client.roomList.rooms[i].getParticipants();
|
||||
for (int i = 0; i < client.rooms.length; i++) {
|
||||
List<User> roomUsers = client.rooms[i].getParticipants();
|
||||
for (int j = 0; j < roomUsers.length; j++) {
|
||||
if (userMap[roomUsers[j].id] != true &&
|
||||
participants.indexWhere((u) => u.id == roomUsers[j].id) == -1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue