diff --git a/lib/src/Room.dart b/lib/src/Room.dart index ca4bd49..d7eeba6 100644 --- a/lib/src/Room.dart +++ b/lib/src/Room.dart @@ -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); }