Add comment to explain hacky optimism

pull/21833/head
Luke Barnard 2018-02-12 18:46:36 +00:00
parent 3eeef064bf
commit 322012cf88
1 changed files with 5 additions and 0 deletions

View File

@ -79,6 +79,11 @@ class RoomListStore extends Store {
} }
break; break;
case 'RoomListActions.tagRoom.pending': { case 'RoomListActions.tagRoom.pending': {
// XXX: we only show one optimistic update at any one time.
// Ideally we should be making a list of in-flight requests
// that are backed by transaction IDs. Until the js-sdk
// supports this, we're stuck with only being able to use
// the most recent optimistic update.
this._generateRoomLists(payload.request); this._generateRoomLists(payload.request);
} }
break; break;