Accept more room versions on invitations
This commit is contained in:
@@ -254,7 +254,7 @@ async def invite_user_v2(room, txnId):
|
||||
|
||||
if "event" in invite_data:
|
||||
if "room_version" in invite_data:
|
||||
if invite_data["room_version"] not in ["1", "2"]:
|
||||
if invite_data["room_version"] not in [str(i) for i in range(1, 10)]:
|
||||
return jsonify({
|
||||
"errcode": "M_INCOMPATIBLE_ROOM_VERSION",
|
||||
"error": "Unsupported room version",
|
||||
|
||||
Reference in New Issue
Block a user