Fix invites so they display in room list

pull/1/head
Erik Johnston 2015-07-22 13:57:48 +01:00
parent 0016c2ad83
commit 431c93fc29
1 changed files with 2 additions and 4 deletions

View File

@ -98,10 +98,8 @@ module.exports = {
getRoomList: function() {
return RoomListSorter.mostRecentActivityFirst(
MatrixClientPeg.get().getRooms().filter(function(room) {
return room.hasMembershipState(
MatrixClientPeg.get().credentials.userId,
"join"
);
var member = room.getMember(MatrixClientPeg.get().credentials.userId);
return member && (member.membership == "join" || member.membership == "invite");
})
);
},