Skip to content
Snippets Groups Projects
Commit 6e7e5395 authored by Pamplemousse's avatar Pamplemousse
Browse files

room: fix `to_s`

parent fa25f7ae
No related branches found
No related tags found
No related merge requests found
...@@ -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