Luke Barnard
95b40a976c
Replace sdkReady with firstSyncPromise, add mx_last_room_id
...
- Create a promise that will serve as a lock to be blocked on by things that need to wait for the first sync before accessing state.
- Use this promise to block `view_room` calls until a sync has occured instead of just dropping them silently if the sync hasn't happened yet.
- Store the current room ID in a localStorage item `mx_last_room_id` when `view_room` fires. This persists the last viewed room ID so that it can be restored on refresh, browser quit. This replaces the previous logic which set the room following a sync based on the most recent unread room.
2017-04-06 11:38:06 +01:00
..
2017-01-25 22:15:09 +00:00
2017-01-20 14:22:27 +00:00
2017-04-06 11:38:06 +01:00
2017-02-02 16:38:19 +00:00
2017-01-20 14:22:27 +00:00
2017-03-22 12:00:16 +00:00
2017-01-20 14:22:27 +00:00
2017-01-20 14:22:27 +00:00
2017-03-12 22:59:41 +00:00
2017-03-22 15:18:27 +00:00
2017-03-09 17:55:58 +00:00
2017-03-12 22:59:41 +00:00
2017-01-20 14:22:27 +00:00
2017-01-24 16:40:26 +00:00
2016-01-19 16:36:54 +00:00
2017-01-20 14:22:27 +00:00
2017-01-20 14:22:27 +00:00
2017-04-02 12:49:01 +01:00
2017-01-20 14:22:27 +00:00
2017-01-24 21:50:24 +00:00
2017-02-21 14:50:09 +00:00
2017-01-24 18:18:54 +00:00
2017-03-27 16:39:04 +01:00
2017-01-20 14:22:27 +00:00
2017-03-14 14:37:18 +00:00
2017-02-17 18:06:00 +00:00
2017-03-31 14:55:33 +01:00
2017-02-06 16:01:25 +00:00
2017-03-28 15:02:08 +01:00
2017-01-20 14:22:27 +00:00
2016-11-13 14:10:46 +00:00
2016-07-08 18:06:50 +01:00
2017-03-14 11:50:13 +00:00
2016-11-02 16:15:35 +00:00
2017-01-20 14:22:27 +00:00
2016-08-10 13:39:47 +01:00
2017-03-03 10:02:08 +00:00
2017-01-20 14:22:27 +00:00
2017-01-20 14:22:27 +00:00
2017-01-20 14:22:27 +00:00
2017-03-27 09:42:04 +01:00
2017-02-10 16:50:25 +00:00
2016-09-02 16:36:43 +01:00
2017-01-20 14:22:27 +00:00
2017-01-25 14:43:47 +00:00
2016-01-07 04:06:52 +00:00
2017-01-20 14:22:27 +00:00
2017-01-20 14:22:27 +00:00
2017-01-20 14:22:27 +00:00
2017-03-03 15:42:24 +00:00
2017-01-20 14:22:27 +00:00
2016-08-03 15:59:17 +01:00
2017-03-16 15:05:54 +00:00
2016-01-28 11:12:56 +00:00
2016-09-07 22:54:37 +01:00
2017-02-16 02:20:34 +05:30
2017-02-02 18:21:53 +00:00
2017-01-20 14:22:27 +00:00
2017-02-09 10:30:06 +00:00