element-web/src
David Baker 225fe67586 Fix room change sometimes being very slow
If the js-sdk had a lot of history in memory for a particular room,
riot would paginate all that history into the DOM and render it
when switching to that room (before then removing it all again).
This obviously made switching to that room very slow.

This was caused by the fact that we relied on the setState that
happens in TimelinePanel after the pagination taking effect such
that ScrollPanel sees that it no longer needs to paginate, but
in some situations (as far as I can see, in electron...?) this
setState would not take effect until the pagination stopped
fulfiling requests from memory and hit the network.

Fix: don't resolve the promise returned by the pagination request
until the setState has actually happened.
2017-08-30 19:14:26 +01:00
..
async-components/views/dialogs Prepare for asynchronous e2e APIs 2017-07-18 23:47:36 +01:00
autocomplete Allow autocompletion when typing user IDs 2017-08-15 14:08:26 +01:00
components Fix room change sometimes being very slow 2017-08-30 19:14:26 +01:00
i18n/strings Merge pull request #1345 from matrix-org/t3chguy/text4event_modified_widget 2017-08-30 13:56:27 +01:00
stores don't track error messages 2017-08-10 13:49:11 +01:00
utils Move non-invite specific stuff to UserAddress 2017-08-15 13:42:23 +01:00
wrappers WithMatrixClient -> withMatrixClient 2017-07-07 11:34:20 +01:00
AddThreepid.js de-lint AddThreepid 2017-07-01 14:21:28 +01:00
Analytics.js Merge branches 'develop' and 't3chguy/i18n_analytics' of github.com:matrix-org/matrix-react-sdk into t3chguy/i18n_analytics 2017-08-10 13:54:55 +01:00
Avatar.js de-lint RoomHeader, Avatar, SdkConfig, SlashCommands 2017-07-01 14:13:32 +01:00
BasePlatform.js de-lint BasePlatform 2017-07-01 14:15:26 +01:00
CallHandler.js un-i18n Modal Analytics 2017-07-27 17:19:18 +01:00
CallMediaHandler.js remove unused imports 2017-06-02 21:35:55 +01:00
ComposerHistoryManager.js Use plaintext when loading a markdown history item into RT mode 2017-08-14 16:48:29 +01:00
ContentMessages.js don't track error messages .2 2017-08-10 15:17:52 +01:00
createRoom.js don't track error messages .2 2017-08-10 15:17:52 +01:00
DateUtils.js Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into t3chguy/delintify 2017-07-03 19:15:38 +01:00
dispatcher.js Remove sarcastic comments 2017-06-14 23:03:40 +01:00
email.js de-lint email, extend 2017-07-01 14:43:18 +01:00
Entities.js de-lint Entities 2017-07-01 14:34:20 +01:00
extend.js de-lint email, extend 2017-07-01 14:43:18 +01:00
HtmlUtils.js allow width, height, alt, title attributes in img 2017-07-25 10:43:40 -04:00
ImageUtils.js Fix a bunch of linting errors 2017-01-20 14:22:27 +00:00
index.js Allow fetch() to be stubbed for the RtsClient 2017-06-15 01:52:24 +01:00
Invite.js de-lint Invite.js 2017-08-15 13:50:15 +01:00
KeyCode.js Update to reflect previous implementation 2017-07-12 17:12:57 +01:00
KeyRequestHandler.js un-i18n Modal Analytics 2017-07-27 17:19:18 +01:00
languageHandler.js Add missing returns 2017-08-24 16:42:32 +02:00
Lifecycle.js don't track error messages .2 2017-08-10 15:17:52 +01:00
linkify-matrix.js Strip MD mentions from the body of sent messages 2017-07-21 16:38:31 +01:00
Login.js q(...) -> Promise.resolve 2017-07-12 18:05:08 +01:00
Markdown.js MD-escape URLs/alises/user IDs prior to parsing markdown 2017-08-04 10:02:22 +01:00
MatrixClientPeg.js Prepare for asynchronous e2e APIs 2017-07-18 23:47:36 +01:00
Modal.js Fix vector-im/riot-web#4799 regression by fixing fn signature 2017-08-15 15:52:38 +01:00
Notifier.js Merge pull request #1339 from matrix-org/dbkr/fix_spurious_notifications 2017-08-29 14:57:11 +01:00
ObjectUtils.js de-lint ObjectUtils 2017-07-01 14:38:32 +01:00
PageTypes.js Add 'groups' page 2017-06-28 13:56:18 +01:00
PasswordReset.js de-lint PasswordReset 2017-07-01 14:31:59 +01:00
phonenumber.js Support msisdn signin 2017-03-14 11:50:13 +00:00
PlatformPeg.js s/fir/for/ 2016-11-02 16:15:35 +00:00
Presence.js Fix a bunch of linting errors 2017-01-20 14:22:27 +00:00
ratelimitedfunc.js Cancel calls to rate-limited funcs on unmount 2016-08-10 13:39:47 +01:00
Resend.js de-lint Resend, RoomListSorter, UserActivity 2017-07-01 14:50:22 +01:00
RichText.js Alter comments 2017-08-15 09:25:23 +01:00
Roles.js de-lint Resend, RoomListSorter, UserActivity 2017-07-01 14:50:22 +01:00
RoomListSorter.js de-lint Resend, RoomListSorter, UserActivity 2017-07-01 14:50:22 +01:00
RoomNotifs.js replace q method calls with bluebird ones 2017-07-12 18:05:40 +01:00
Rooms.js q(...) -> Promise.resolve 2017-07-12 18:05:08 +01:00
RtsClient.js Allow fetch() to be stubbed for the RtsClient 2017-06-15 01:52:24 +01:00
ScalarAuthClient.js Fix encoding 2017-08-22 09:59:27 +01:00
ScalarMessaging.js Split timeline updates in to different PR. 2017-08-08 17:34:54 +01:00
SdkConfig.js de-lint RoomHeader, Avatar, SdkConfig, SlashCommands 2017-07-01 14:13:32 +01:00
shouldHideEvent.js remove redundant check and add comment 2017-08-10 15:22:53 +01:00
Skinner.js de-lint Skinner, RoomNotifs 2017-07-01 14:28:12 +01:00
SlashCommands.js un-i18n Modal Analytics 2017-07-27 17:19:18 +01:00
stripped-emoji.json Bump the dep on emojione to 2.2.7 to add 🦈 and others 2017-07-11 13:48:15 +01:00
TextForEvent.js text4event widget modified, used to show widget added each time. 2017-08-28 08:19:39 +01:00
Tinter.js Fix a bunch of linting errors 2017-01-20 14:22:27 +00:00
UiEffects.js Refactor UI error effects 2016-08-03 15:59:17 +01:00
UnknownDeviceErrorHandler.js un-i18n Modal Analytics 2017-07-27 17:19:18 +01:00
Unread.js re-add Unread shouldHideEvent code 2017-07-21 19:51:13 +01:00
UserActivity.js de-lint Resend, RoomListSorter, UserActivity 2017-07-01 14:50:22 +01:00
UserAddress.js Add UserAddress 2017-08-15 14:01:50 +01:00
UserSettingsStore.js Enable matrix-apps by default 2017-08-16 16:04:39 +01:00
Velociraptor.js Null-guard RR logic 2017-07-10 15:07:22 +01:00
VelocityBounce.js Fix a bunch of linting errors 2017-01-20 14:22:27 +00:00
WhoIsTyping.js Bulk change counterpart imports 2017-05-25 11:39:08 +01:00
WidgetUtils.js Fix event type. 2017-08-01 11:41:41 +01:00