David Baker
a7beedcfb6
Unused imports
2018-02-20 17:11:40 +00:00
David Baker
4351c4dd6f
Merge pull request #611 from matrix-org/dbkr/use_initialisestate
...
De-dup code: use the initialiseState function
2018-02-20 17:10:11 +00:00
David Baker
1ddf7fb96c
Add XXX comment
2018-02-20 17:07:14 +00:00
David Baker
ec5cfe4ee9
Stop cloning events when adding to state
...
As comment hopefully explains.
On my test account:
Before: 394657 MatrixEvents, 53MB shallow size
After: 198863 MatrixEvents, 27MB shallow size
2018-02-20 16:45:20 +00:00
Matthew Hodgson
4fed2ea7bf
log event IDs of ignored calls
2018-02-20 12:38:12 +00:00
Matthew Hodgson
ae14cf4740
typo
2018-02-20 12:38:12 +00:00
David Baker
8aa68b3dc1
lint
2018-02-20 11:09:32 +00:00
David Baker
e810ee7750
Add test for fixed state misbehaviour
2018-02-20 11:06:33 +00:00
David Baker
9a08194597
Factor out calls to getLiveTimeline
2018-02-19 16:17:30 +00:00
David Baker
c77277b60c
rename variable
2018-02-19 16:07:28 +00:00
David Baker
21a324558f
Comments
2018-02-19 16:05:43 +00:00
David Baker
7a31751564
Merge pull request #610 from matrix-org/dbkr/sentinels_on_demand
...
Create sentinel members on-demand
2018-02-16 19:01:48 +00:00
David Baker
b11bacc2e2
Process state events before timeline events
...
Don't ignore them: its valid to send them in a non-limited sync,
they're state events that preceed the timeline events.
2018-02-16 18:52:56 +00:00
David Baker
8c02e7ba67
comment
2018-02-16 17:52:39 +00:00
David Baker
275eb8d434
De-dup code: use the initialiseState function
...
This should behave identically, but the code here appeared to be
identical to the code in initialiseState, so let's use it (it also
has an extra sanity check in there that we only init empty timelines).
2018-02-16 17:49:29 +00:00
David Baker
736d0df38d
Handle null userID
...
The tests inject messages with no sender, so for now let's maintain
behaviour as it was before.
2018-02-16 14:58:19 +00:00
David Baker
89d5d41015
Merge pull request #609 from matrix-org/dbkr/doc_sentinels
...
Some more doc on how sentinels work
2018-02-16 12:34:34 +00:00
David Baker
0e1444c84b
grammar
2018-02-16 11:57:22 +00:00
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