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
David Baker
0174c5674f
Make tests pass, finally.
...
Mostly making tests aware of new storage format or making them
force it to be written. Also some bugfixes like we didn't json
encode some things in the localstorage store and we didn't
correctly check the promise when requesting device data saves.
2018-01-16 17:57:49 +00:00
lukebarnard
9de8653936
Actually check the cache
2018-01-16 09:51:30 +00:00
David Baker
27d28b8247
More test fixing
...
Allow localstorage store to take a localstorage impl, make TestClient
pass a cryptostore & fix True/true typo
2018-01-15 16:27:28 +00:00
David Baker
110f43a246
Make DeviceList test pass
...
Includes making saveIfDirty() return a promise in case you care
about when changes got saved (which the test does).
2018-01-15 15:21:39 +00:00
lukebarnard
56612751f9
Handle underride and override rules with patterns
2018-01-15 15:16:22 +00:00
lukebarnard
751fe7349a
Fix case insensitivity on new RegExps
2018-01-15 14:54:51 +00:00
David Baker
36d7d33afc
Null fix & lint
...
Don't end up with devices / device tracking status being null
2018-01-12 16:44:51 +00:00
David Baker
a94f3c720e
Fix migration
2018-01-12 15:12:57 +00:00
David Baker
6c1087e429
Migrate from session store
2018-01-12 14:41:08 +00:00
David Baker
2cdb010cff
Fix lint
2018-01-12 14:17:10 +00:00
David Baker
60052f59a0
Add localstorage & memory device data stores
2018-01-12 14:05:34 +00:00
David Baker
29d44f809e
delay saving so we can batch multiple operations
2018-01-12 12:01:00 +00:00
David Baker
83e4aa2755
Initial attempt at device tracking -> indexeddb
...
* Message sending works again, but
* Marking multiple devices known (ie. 'send anyway') is very slow
because it writes all device info out each time
* Support for non-indexedb stores not written yet
* No migration
2018-01-11 18:10:19 +00:00
David Baker
eeb97f5b66
Merge pull request #592 from matrix-org/dbkr/set_event_error
...
Set event error before emitting
2018-01-09 18:08:12 +00:00
David Baker
b6f26ae6a5
Oops: new year, new company
2018-01-09 18:05:02 +00:00
Richard Lewis
f40435654a
Merge pull request #590 from matrix-org/rxl881/stickers
...
Add event type for stickers [WIP]
2018-01-09 14:49:05 +00:00
David Baker
67d471ea3d
Also happy new year and all that
2018-01-09 13:24:29 +00:00
David Baker
4946c5e687
Set event error before emitting
...
So the event object properties are in a consistent state when we
the event is emitted.
Fixes first part of https://github.com/vector-im/riot-web/issues/5936
2018-01-09 13:23:04 +00:00
David Baker
af4f05c29e
Merge pull request #587 from matrix-org/dbkr/inbound_sessions_to_cryptostore
...
Migrate inbound sessions to cryptostore
2018-01-09 10:41:38 +00:00
David Baker
145c76095a
Remove unused countEndToEndInboundGroupSessions
2018-01-09 10:37:44 +00:00
Richard Lewis
90045b6faa
Fix filtering.
2018-01-08 11:18:36 +00:00
Richard Lewis
aef27d811a
Set sticker type on event instead of message type.
2018-01-06 00:13:24 +00:00
lukebarnard
e2e5f80298
Linting
2018-01-05 20:05:12 +00:00
lukebarnard
ca0ed50172
Optimise pushprocessor
...
by not [re]creating RegExps unnecessarily.
2018-01-05 19:56:27 +00:00
Richard Lewis
d44d63c1d6
Send sticker message in to a room.
2018-01-04 21:55:20 +00:00
David Baker
8403042297
Merge pull request #588 from pafcu/displaynames
...
Disambiguate names if they contain an mxid
2018-01-02 17:46:04 +00:00
David Baker
1568bb014d
Merge remote-tracking branch 'origin/develop' into dbkr/inbound_sessions_to_cryptostore
2018-01-02 17:12:47 +00:00
David Baker
7a069c4018
doc return
2018-01-02 17:03:57 +00:00
David Baker
c856eb931f
Make error message more truthful
2018-01-02 16:32:33 +00:00
David Baker
b290ce795f
Update comment
2018-01-02 16:21:12 +00:00
David Baker
6f3d279165
Fix doc
2018-01-02 13:43:43 +00:00
David Baker
124ab30f98
jsdoc
2018-01-02 13:42:16 +00:00