This commit is contained in:
Benoit Marty 2020-02-21 09:58:56 +01:00
parent 3f9a5a4e54
commit d7de072155

View file

@ -85,7 +85,7 @@ data class PublicRoom(
val isFederated: Boolean = false
) {
/**
* Return the canonical alias, or the first alias from the list of alias, or null
* Return the canonical alias, or the first alias from the list of aliases, or null
*/
fun getPrimaryAlias(): String? {
return canonicalAlias ?: aliases?.firstOrNull()