1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-28 05:03:59 +03:00
Commit Graph

20 Commits

Author SHA1 Message Date
David Baker
cc72d35c6b Move definition
So we don't have to fudge the jsdoc to make the linter happy
2016-08-16 17:02:18 +01:00
David Baker
267e009ae3 Make lint pass
Although with slightly redundant doc :/
2016-08-15 18:55:09 +01:00
David Baker
0ba1a1dabc Update our push rules when they come down stream
Also expose a useful function from pushprocessor.

Fixes https://github.com/vector-im/vector-web/issues/1495
2016-08-15 18:40:12 +01:00
Richard van der Hoff
2e4a8f4fa5 Change how MatrixEvent manages encrypted events
Make `MatrixEvent.event` contain the *encrypted* event, and keep the plaintext
payload in a separate `_clearEvent` property.

This achieves several aims:

* means that we have a record of the actual object which was received over
  the wire, which can be shown by clients for 'view source'.

* makes sent and received encrypted MatrixEvents more consistent (previously
  sent ones had `encryptedType` and `encryptedContent` properties, whereas
  received ones threw away the ciphertext).

* Avoids having to make two MatrixEvents in the receive path, and copying
  fields from one to the other.

*Hopefully* most clients have followed the advice given in the jsdoc of not
relying on MatrixEvent.event to get at events. If they haven't, I guess they'll
break in the face of encrypted events.

(The pushprocessor didn't follow this advice, so needed some tweaks.)
2016-06-09 18:23:54 +01:00
David Baker
57f88b00ba d'oh, no es6 in js-sdk 2016-03-24 13:57:55 +00:00
David Baker
e618ad9589 Only count joined members for the member count in notifications. Fixes https://github.com/vector-im/vector-web/issues/1067 2016-03-24 13:55:30 +00:00
Matthew Hodgson
ebc95667b8 workaround for unicode regexp matches - https://github.com/vector-im/vector-web/issues/568 2016-03-17 01:02:50 +00:00
Matthew Hodgson
446faed9b5 copyrights please... 2016-01-07 04:15:38 +00:00
Kegan Dougal
3543abf7bd Make things work again 2015-12-09 10:42:38 +00:00
Matthew Hodgson
a16ded9f4d oops 2015-09-18 01:56:53 +02:00
Matthew Hodgson
2f75bb75dd fix NPE if our user does not yet appear to be in the queried room 2015-09-18 01:55:40 +02:00
Kegan Dougal
1ef7af258d Fix linting. Mark on new Store classes as WIP. 2015-07-28 11:50:47 +01:00
Kegan Dougal
3905e56e1f Bump to 0.2.0 - Add missing jsdoc, update CHANGELOG. 2015-07-28 11:45:46 +01:00
Kegan Dougal
9993e5dbed Cleanup jsdoc. Allow extra query params to be set on requests (for ASes). 2015-07-28 10:57:05 +01:00
Matthew Hodgson
ee4d0fb9ee hopefully fix NPE that bit Antony 2015-07-16 01:21:29 +01:00
David Baker
9416a9a8a3 Fix linting & c+p errors 2015-06-29 18:20:36 +01:00
David Baker
22f08e4e5b Get rid of micromatch & reinstate our hacky version because micromatch, ironically, is huge. 2015-06-29 18:16:49 +01:00
David Baker
2ab8f8cf76 closure linting errors 2015-06-29 16:21:32 +01:00
David Baker
53f2f156ca Fix linting errors 2015-06-29 16:09:07 +01:00
David Baker
1be02a3c3c Port over push rule eveluator from the angular SDK and make it available on MatrixEvent 2015-06-29 15:53:23 +01:00