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

api: Always include CS API if AS is included

parent 91d8aff2
No related branches found
No related tags found
No related merge requests found
...@@ -41,6 +41,7 @@ module MatrixSdk ...@@ -41,6 +41,7 @@ module MatrixSdk
raise 'Please use the base URL for your HS (without /_matrix/)' if @homeserver.path.include? '/_matrix/' raise 'Please use the base URL for your HS (without /_matrix/)' if @homeserver.path.include? '/_matrix/'
@protocols = params.fetch(:protocols, %i[CS]) @protocols = params.fetch(:protocols, %i[CS])
@protocols << :CS if @protocols.include?(:AS) && !@protocols.include?(:CS)
@protocols.sort.reverse.each do |prot| @protocols.sort.reverse.each do |prot|
extend MatrixSdk::Protocols.const_get(prot) extend MatrixSdk::Protocols.const_get(prot)
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment