getSeatApplicationList method

Future<void> getSeatApplicationList()

Implementation

Future<void> getSeatApplicationList() async {
  var result = await _roomEngine.getSeatApplicationList();
  if (result.code == TUIError.success) {
    List<TUIRequest> applicationList = result.data ?? <TUIRequest>[];
    for (var request in applicationList) {
      var userModel = RoomStore.to.getUserById(request.userId) ?? UserModel();
      RoomStore.to.addInviteSeatUser(userModel, request);
    }
  }
}