Skip to content
Snippets Groups Projects
Verified Commit b97fb936 authored by Alexander Olofsson's avatar Alexander Olofsson
Browse files

Remove old leftover protocol code

parent c106c2b3
No related branches found
No related tags found
No related merge requests found
...@@ -47,10 +47,6 @@ module MatrixSdk ...@@ -47,10 +47,6 @@ module MatrixSdk
@homeserver.path.gsub!(/\/?_matrix\/?/, '') if @homeserver.path =~ /_matrix\/?$/ @homeserver.path.gsub!(/\/?_matrix\/?/, '') if @homeserver.path =~ /_matrix\/?$/
raise ArgumentError, 'Please use the base URL for your HS (without /_matrix/)' if @homeserver.path.include? '/_matrix/' raise ArgumentError, 'Please use the base URL for your HS (without /_matrix/)' if @homeserver.path.include? '/_matrix/'
@protocols = params.fetch(:protocols, %i[CS])
@protocols = [@protocols] unless @protocols.is_a? Array
@protocols << :CS if @protocols.include?(:AS) && !@protocols.include?(:CS)
@proxy_uri = params.fetch(:proxy_uri, nil) @proxy_uri = params.fetch(:proxy_uri, nil)
@connection_address = params.fetch(:address, nil) @connection_address = params.fetch(:address, nil)
@connection_port = params.fetch(:port, nil) @connection_port = params.fetch(:port, nil)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment