1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2026-01-03 23:22:30 +03:00

fix tests

This commit is contained in:
Matthew Hodgson
2016-02-19 17:59:26 +00:00
parent 5886b3358d
commit 2150bdc444

View File

@@ -1144,7 +1144,7 @@ function calculateRoomName(room, userId, ignoreRoomNameEvent) {
if (memberList[0].userId === userId) {
var thirdPartyInvites =
room.currentState.getStateEvents("m.room.third_party_invite");
if (thirdPartyInvites) {
if (thirdPartyInvites && thirdPartyInvites.length > 0) {
var name = "Inviting " +
thirdPartyInvites[0].getContent().display_name;
if (thirdPartyInvites.length > 1) {