Merge branch 'room-fix-displayname-heroes' into 'master'

[Room] Fix displayname calc with heros

See merge request famedly/famedlysdk!134
This commit is contained in:
Christian Pauly 2019-12-05 16:46:00 +00:00
commit 3321c9b16d

View file

@ -221,7 +221,7 @@ class Room {
String displayname = "";
for (int i = 0; i < heroes.length; i++) {
if (heroes[i].isEmpty) continue;
displayname += User(heroes[i]).calcDisplayname() + ", ";
displayname += getUserByMXIDSync(heroes[i]).calcDisplayname() + ", ";
}
return displayname.substring(0, displayname.length - 2);
}