Skip to content
Snippets Groups Projects
Unverified Commit a71c8ad9 authored by Alexander Olofsson's avatar Alexander Olofsson Committed by GitHub
Browse files

Merge pull request #35 from Pamplemousse/master

room: fix `to_s`
parents fa25f7ae 6e7e5395
No related branches found
No related tags found
No related merge requests found
Pipeline #98807 failed
...@@ -113,9 +113,8 @@ module MatrixSdk ...@@ -113,9 +113,8 @@ module MatrixSdk
end end
def to_s def to_s
prefix = canonical_alias if canonical_alias_has_value? prefix = canonical_alias || id
prefix ||= id return "#{prefix} | #{name}" unless name.nil?
return "#{prefix} | #{name}" if name_has_value?
prefix prefix
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment