diff --git a/lib/screens/room/join.dart b/lib/screens/room/join.dart index 8ccf5c1..73d994b 100644 --- a/lib/screens/room/join.dart +++ b/lib/screens/room/join.dart @@ -36,7 +36,7 @@ class _JoinRoomPageState extends State { // try to fetch a list of rooms the user is a member of // use an empty blacklist when request is not successful final List blacklist = []; - doNetworkRequest(sm, + await doNetworkRequest(sm, req: () => postWithCreadentials( path: 'listRooms', credentials: user, @@ -62,7 +62,7 @@ class _JoinRoomPageState extends State { // only add room to list, // if not on blacklist for (Room r in blacklist) { - if (r.compareTo(room) == 0) { + if (r == room) { // server on white list // move to next iteration on outer for loop continue processor;