Only display rooms you're currently joined to in recents
This commit is contained in:
@@ -96,7 +96,14 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
getRoomList: function() {
|
getRoomList: function() {
|
||||||
return RoomListSorter.mostRecentActivityFirst(MatrixClientPeg.get().getRooms());
|
return RoomListSorter.mostRecentActivityFirst(
|
||||||
|
MatrixClientPeg.get().getRooms().filter(function(room) {
|
||||||
|
return room.hasMembershipState(
|
||||||
|
MatrixClientPeg.get().credentials.userId,
|
||||||
|
"join"
|
||||||
|
);
|
||||||
|
})
|
||||||
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
makeRoomTiles: function() {
|
makeRoomTiles: function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user