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
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
David Baker
fee90bab66 Wording fix 2018-01-02 13:35:52 +00:00
David Baker
e26ade0e62 Wording fix 2018-01-02 13:32:51 +00:00
David Baker
c43ccb860b Always migrate inbound group sessions 2018-01-02 13:31:57 +00:00
Richard van der Hoff
f2b7e8b038 Remove spurious linty blank line 2017-12-14 22:36:53 +00:00
Stefan Parviainen
1863f1311b Disambiguate display name if it contains a mxid
Fixes https://github.com/vector-im/riot-web/issues/1811

Signed-off-by: Stefan Parviainen <pafcu@iki.fi>
2017-12-14 21:49:13 +01:00
David Baker
e5086f22d6 Merge remote-tracking branch 'origin/develop' into dbkr/inbound_sessions_to_cryptostore 2017-12-08 19:06:36 +00:00
David Baker
da90a3ca78 Merge pull request #585 from matrix-org/dbkr/count_sessions_before_migrate
Check for sessions in indexeddb before migrating
2017-12-08 18:29:50 +00:00
David Baker
d397c5a251 Merge pull request #586 from matrix-org/dbkr/crypto_store_migrate_warning
Emit an event for crypto store migration
2017-12-08 18:17:23 +00:00
David Baker
d26b4434b8 Merge pull request #575 from matrix-org/dbkr/udd_no_auto_show
Supporting fixes For making UnknownDeviceDialog not pop up automatically
2017-12-08 16:33:18 +00:00
David Baker
7188f17f9a more linting 2017-12-07 17:14:11 +00:00
David Baker
b0365f8b0e json encode before saving to localstorage 2017-12-07 17:07:06 +00:00
David Baker
a1ddeea00e Fix inbound group session migration
Apparently they are parsed at a different layer
2017-12-07 16:50:18 +00:00
David Baker
1414c24caf Missed txn 2017-12-07 15:03:02 +00:00
David Baker
0748c864cd Migrate inbound sessions from session store 2017-12-07 14:57:18 +00:00
David Baker
f80626a0fa lint 2017-12-07 14:32:23 +00:00
David Baker
0fffd64a7f Fix key export 2017-12-07 14:23:36 +00:00
David Baker
8da48211d9 Fix exportInboundGroupSession 2017-12-06 22:42:19 +00:00
David Baker
0dd8ffa3a0 Much tedious linting 2017-12-06 22:36:24 +00:00