mirror of
https://github.com/element-hq/element-web
synced 2024-11-29 04:48:50 +03:00
Only display rooms you're currently joined to in recents
This commit is contained in:
parent
5fb6ea94b2
commit
5835ea0a97
1 changed files with 8 additions and 1 deletions
|
@ -96,7 +96,14 @@ module.exports = {
|
|||
},
|
||||
|
||||
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() {
|
||||
|
|
Loading…
Reference in a new issue