joinRoom method

  1. @override
Future<String> joinRoom(
  1. String roomIdOrAlias, {
  2. List<String>? serverName,
  3. List<String>? via,
  4. String? reason,
  5. ThirdPartySigned? thirdPartySigned,
})
override

preference is always given to via over serverName, irrespective of what field you are trying to use

Implementation

@override
Future<String> joinRoom(
  String roomIdOrAlias, {
  List<String>? serverName,
  List<String>? via,
  String? reason,
  ThirdPartySigned? thirdPartySigned,
}) =>
    super.joinRoom(
      roomIdOrAlias,
      serverName: via ?? serverName,
      via: via ?? serverName,
      reason: reason,
      thirdPartySigned: thirdPartySigned,
    );