lib/chatrix/api/room_actions.rb
def join(room, third_party_signed = nil)
        if third_party_signed
          make_request(
            :post,
            "/join/#{room}",
            content: { third_party_signed: third_party_signed }
          )['room_id']
        else
          make_request(:post, "/join/#{room}")['room_id']
        end
      end
# Joins a room on the homeserver.
#
# @param room [String] The room to join.
# @param third_party_signed [Hash,nil] If provided, the homeserver must
#   verify that it matches a pending `m.room.third_party_invite` event in
#   the room, and perform key validity checking if required by the event.
# @return [String] The ID of the room that was joined is returned.
Joins a room on the homeserver.
Joins a room on the homeserver .
def join(room, third_party_signed = nil)
        if third_party_signed
          make_request(
            :post,
            "/join/#{room}",
            content: { third_party_signed: third_party_signed }
          )['room_id']
        else
          make_request(:post, "/join/#{room}")['room_id']
        end
      end
def join ( room , third_party_signed = nil ) if third_party_signed make_request ( :post , "/join/#{room}" , content : { third_party_signed : third_party_signed } ) [ 'room_id' ] else make_request ( :post , "/join/#{room}" ) [ 'room_id' ] end end
Joins a room on the homeserver.
Joins a room on the homeserver .
The ID of the room that was joined is returned.
The ID of the room that was joined is returned .
String
room
The room to join.
The room to join .
third_party_signed
If provided, the homeserver must verify that it matches a pending `m.room.third_party_invite` event in the room, and perform key validity checking if required by the event.
If provided the homeserver must verify that it matches a pending ` m . room . third_party_invite ` event in the room and perform key validity checking if required by the event .