Add a forget button. Add left rooms to the "historical" tab.

Call /forget when the forget button is clicked. Number of shortcomings:
 - We need to lazy load the historical list (atm we never get the list of left
   rooms; things only go into that list if you leave the room whilst running)
 - Once a room is forgotten we need to physically nuke it from the JS SDK.
 - Need icon for forget room.
This commit is contained in:
Kegan Dougal 2015-12-16 16:06:29 +00:00
parent 186b727303
commit f7aa8be1c1
3 changed files with 35 additions and 4 deletions

View file

@ -168,6 +168,9 @@ module.exports = React.createClass({
if (me && me.membership == "invite") {
s.lists["im.vector.fake.invite"].push(room);
}
else if (me && (me.membership === "leave" || me.membership === "ban")) {
s.lists["im.vector.fake.archived"].push(room);
}
else {
var shouldShowRoom = (
me && (me.membership == "join")