1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-12-13 07:42:14 +03:00
Commit Graph

2775 Commits

Author SHA1 Message Date
David Baker
104f8b093d Remove redundant forEach 2018-02-16 11:55:45 +00:00
David Baker
1e638c376b Create sentinel members on-demand
We only need sentinel members for things like the 'sender' field
of events, so we previously created sentinels for everyone in the
room, but a large number of them were never used.

Instead, create them on-demand and cache them.
2018-02-16 11:53:24 +00:00
David Baker
a2e1a6ca8f jsdoc doesn't like that 2018-02-16 10:59:44 +00:00
David Baker
337331ff1b Some more doc on how sentinels work 2018-02-16 10:37:50 +00:00
Richard Lewis
1dfde7cd80 Fix JS doc 2018-02-08 11:17:55 +00:00
Luke Barnard
7df2bfe7bc Honour cached push rules (#606)
so that we have push rules loaded into the client after doing
a cached sync (so that the client can assume that we do have
push rules, even if it was loaded from a cached sync).

These rules will be updated once `getPushRules` is completed
prior to the first networked sync.
2018-02-08 09:35:44 +00:00
lukebarnard
4ec90a4b99 Fix incorrect self - should be this 2018-02-07 17:31:16 +00:00
Luke Barnard
d4e8f9039c Set sync token before incrementally syncing (#604)
Block on syncing from cache so that the sync token
has been set prior to incremental syncing.
2018-02-07 17:16:22 +00:00
Luke Barnard
4c6c00f16d Fix NPE when loading sync from cache (#603)
* Fix NPE when loading sync from cache
2018-02-07 16:04:47 +00:00
Luke Barnard
fd30b25596 Allow a mode of operation without HS connection (#601)
* Allow a mode of operation without HS connection

Instead of blocking the first sync on getting the push rules and
filter, load sync data from disc.

When the client comes online, the push rules will be acquired and
a sync cycle started. This could be immediate if the client is
already online.

This could be a breaking change for clients that get push rules
before a successful sync has been done.
2018-02-06 17:46:39 +00:00
David Baker
032b7cab5d Fix name of 1:1s other person has left (#602)
Use their name as we did before rather than 'Empty Room'

Fixes https://github.com/vector-im/riot-web/issues/6083
2018-02-06 15:43:53 +00:00
David Baker
47dfb4b8cd Merge pull request #597 from matrix-org/dbkr/e2e_rooms_indexeddb
Migrate room encryption store to crypto store
2018-02-06 10:29:29 +00:00
David Baker
51e782b671 Merge pull request #600 from matrix-org/t3chguy/fix_3pid_dm_rooms
add parameter to getIdentityServerUrl to strip the protocol for invites
2018-02-05 12:07:31 +00:00
David Baker
cf195262bf inline fucntion that was only used once 2018-01-31 18:12:46 +00:00
David Baker
cf72052e46 Correct return type 2018-01-31 17:51:48 +00:00
David Baker
6f50c39b2a more doc 2018-01-31 17:49:58 +00:00
David Baker
b6cd826dd7 basically I just can't type 2018-01-31 17:33:35 +00:00
David Baker
f1194b1fbe more comment grammar 2018-01-31 17:33:02 +00:00
David Baker
c0ca85fb3a comment grammar 2018-01-31 17:32:12 +00:00
David Baker
022df1b143 Revert npm helpfully adding packages 2018-01-31 17:30:12 +00:00
David Baker
fdf987f081 Merge remote-tracking branch 'origin/develop' into dbkr/e2e_rooms_indexeddb 2018-01-29 13:40:14 +01:00
David Baker
f1e874cd18 Merge pull request #594 from matrix-org/dbkr/device_tracking_indexeddb
Move Device Tracking Data to Crypto Store
2018-01-29 13:38:50 +01:00
David Baker
c3bede58aa Fux lying comment 2018-01-29 13:35:03 +01:00
Matthew Hodgson
38915eb7fc fix NPE biting yannick due to broken rules 2018-01-25 18:41:36 +01:00
David Baker
470bd23b3b Add new devices as we get them 2018-01-25 16:49:30 +01:00
Michael Telatynski
d007eefe2e add parameter to getIdentityServerUrl to strip the protocol for invites
use new getIdentityServerUrl param in inviteByThreePid
2018-01-25 09:53:19 +00:00
Michael Telatynski
362f442a98 Don't synthesize RR for m.room.redaction as causes the RR to go missing. 2018-01-25 00:04:24 +00:00
David Baker
8c2645c5dd Comment typo 2018-01-24 21:39:46 +01:00
David Baker
1ba0e4809e Implement correct function
in localstorage and memory stores
2018-01-22 18:46:13 +01:00
David Baker
341371b613 lint 2018-01-22 18:37:02 +01:00
David Baker
d856285271 Doc param 2018-01-22 18:35:29 +01:00
David Baker
e4ffc93463 Remove unused function 2018-01-22 18:34:34 +01:00
David Baker
3149958319 Missed arg 2018-01-22 18:31:17 +01:00
David Baker
ac659e8df1 remove debugging 2018-01-22 18:16:11 +01:00
David Baker
81d54c7558 comment typo 2018-01-22 18:11:37 +01:00
David Baker
e4de333d83 Use the right prefix function to remove prefix 2018-01-22 17:55:40 +01:00
David Baker
e72096328a Actually working migration 2018-01-22 17:46:13 +01:00
David Baker
88a082a533 Hopefully working migration 2018-01-22 17:34:09 +01:00
David Baker
4fbf4f1069 Hopefully address PR feedback 2018-01-22 17:08:19 +01:00
David Baker
c360dd11ed Migrate e2e rooms to crypto store
Doesn't do data migration yet
2018-01-22 15:48:53 +01:00
Michael Telatynski
95d582ccee arguments true and false are actually invalid 2018-01-19 23:00:34 +00:00
David Baker
074cfb7c58 Add more comments 2018-01-18 17:32:47 +00:00
David Baker
8b649cec8d All the copyrights 2018-01-18 11:52:27 +00:00
David Baker
ea6974fc89 Return null if device data isn't set
This is more normal, and the code doesn't expect to get empty
objects here which is reasonable since it never sets one.
2018-01-17 19:27:22 +00:00
David Baker
fb29da4e40 Update the catchingup flag
It may change whilst processing the sync
2018-01-17 19:17:48 +00:00
David Baker
461acbcc81 More test fixing
* Change test for new storage layer
 * Always store device keys we download, even if we weren't
   tracking the user.
2018-01-17 18:49:33 +00:00
David Baker
5bab8647b6 Fix device tracking with initial /sync
* Check whether we share an e2e room with user IDs in the 'left'
   field of /keys/changes: there's no guarantee we no longer share
   any e2e rooms with these users
 * Reset everyone's tracking status on an initial sync - just
   re-fetching device lists for all users we're currently tracking
   isn't good enough since room memberships may have changed.
 * Fix typo in test
2018-01-17 16:03:46 +00:00
David Baker
f2d1222de7 Merge pull request #591 from matrix-org/luke/perf-push-processor
Optimise pushprocessor
2018-01-17 11:27:50 +00:00
David Baker
585ea14a23 more lint 2018-01-17 09:58:56 +00:00
David Baker
5a0997ded5 lint 2018-01-17 09:52:01 +00:00