388 Commits

Author SHA1 Message Date
Kegan Dougal 19721c3f53 Bump to 0.2.2 and update CHANGELOG v0.2.2 2015-10-13 10:31:00 +01:00
Kegan Dougal cde948814a Linting (jsdoc) 2015-10-13 10:20:38 +01:00
Kegan Dougal 2bb65fe644 Add RoomState.getLastModifiedTime() and JSDoc 2015-10-13 10:18:01 +01:00
Kegan Dougal 1260dcee76 Add User.getLastModifiedTime() 2015-10-13 10:11:22 +01:00
Kegan Dougal 3baab40bdb Add RoomMember.getLastModifiedTime() 2015-10-13 10:09:38 +01:00
Kegan Dougal 0988332850 Minor cleanup 2015-10-13 10:05:29 +01:00
Kegan Dougal 385ebd3bfb Semicolons 2015-10-12 17:57:02 +01:00
Kegsay 7635473a16 Merge pull request #20 from stevenhammerton/sh-cas-auth
CAS Auth
2015-10-12 16:59:17 +01:00
Steven Hammerton d004d0b927 Were not authed when fetching CAS server URL, so use request rather than authed request 2015-10-09 11:18:05 +01:00
Steven Hammerton 33bede1dfe Rename methods for getting homeserver and identity server URLs 2015-10-09 11:16:57 +01:00
Steven Hammerton c22382360b Add client functions around new synapse CAS login 2015-10-08 22:55:38 +01:00
Steven Hammerton 79db25b131 Add functions for getting the HS and IS urls out of the client (required for CAS login in react-sdk) 2015-10-08 22:55:38 +01:00
David Baker 682880d0c9 Use a default content type if the browser doesn't give us one: home servers require a content type header. 2015-10-02 18:36:09 +01: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
David Baker ac7457f532 null check 2015-09-16 21:27:21 +01:00
Kegan Dougal f665748fe5 Add 0.2.1 browser-dist. v0.2.1 2015-09-11 10:59:44 +01:00
Kegan Dougal 92e3a28315 Add gendoc script 2015-09-11 10:24:38 +01:00
Kegan Dougal 4e26790418 Merge branch 'develop' 2015-09-11 10:17:20 +01:00
Kegan Dougal f1793ff96d Merge branch 'release-v0.2.1' into develop 2015-09-11 10:17:09 +01:00
Kegan Dougal 22a9db6c29 Add CHANGELOG and bump to 0.2.1 2015-09-11 10:12:54 +01:00
Kegsay 7a4a3a1239 Merge pull request #19 from matrix-org/matthew/http_exceptions
#19 - Gracefully fail when synchronous errors occur when calling the request function
2015-09-02 09:57:29 +01:00
Kegan Dougal 3c01e2db43 Style checks 2015-09-02 09:50:43 +01:00
Matthew Hodgson 3b9f1728c7 turn HTTP exceptions into errbacks or rejected deferreds rather than bubbling them up and expecting the app to have try blocks eeeeeeeeeverywhere 2015-08-31 18:26:27 +01:00
Kegan Dougal 6d6868df73 Mention the user_id of the inviter for invited room names 2015-08-14 17:09:21 +01:00
Kegan Dougal c1c2731f2e Set the Content-Type on uploads
Most browsers seem to set this if you forget, but some don't.
2015-08-14 15:09:31 +01:00
David Baker e859119bde Support allowDefault flag on room avatars too 2015-08-13 17:12:09 +01:00
David Baker 9fab329a70 Add option to prevent the SDK from returning default avatar URLs. 2015-08-13 17:07:34 +01:00
Kegan Dougal deaaee4986 Add 'opts' to joinRoom function.
Add 'syncRoom' option to allow developers to join rooms without doing a
room initial sync. This is a breaking change.
2015-08-04 12:57:30 +01:00
Kegan Dougal 54a5c38b66 Do not retry requests which 40[0/1/3]. Set 'errcode' on MatrixErrors 2015-07-29 10:30:07 +01:00
Kegan Dougal 7f9c88e53f Add create/getAlias and sendNotice/sendHtmlNotice methods. 2015-07-28 14:51:26 +01:00
Kegan Dougal 3864472057 Fix test race condition.
It was possible for the test to end (via done()) before the final /events req
was flushed, resulting in a fail as there were requests outstanding. We now wait
until the final flush is done before done()ing.
2015-07-28 13:40:02 +01:00
Kegan Dougal 759dece725 Minor JSDoc fix. 2015-07-28 13:27:57 +01:00
Kegan Dougal a750a4756f Merge branch 'develop' v0.2.0 2015-07-28 13:19:51 +01:00
Kegan Dougal fed91a5090 Add 0.2.0 to /dist 2015-07-28 13:19:34 +01:00
Kegan Dougal 3e1940fe17 Merge branch 'develop' 2015-07-28 13:18:29 +01:00
Kegan Dougal bfefa380ae Update README; v0.2.0 release commit. 2015-07-28 13:17:05 +01:00
Kegan Dougal 14e91624bd no-op if joinRoom is called when you're already joined. Add test for this.
Also ignore missing require()s when building (missing olm).
2015-07-28 13:13:55 +01:00
Kegan Dougal 551721b22e More WIP docs 2015-07-28 11:53:07 +01: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 14a7ff3e04 differentiate errors a bit better 2015-07-23 11:01:43 -07:00
Mark Haines 0737b80850 Check thet Olm.Account and Olm.Session are defined before enabling crypto 2015-07-23 10:19:41 +01:00
Mark Haines 19b4110a51 Merge pull request #18 from matrix-org/disable_end_to_end
Disable end-to-end encryption if olm isn't installed.
2015-07-23 10:09:35 +01:00
Mark Haines ea1c315aa8 Enable crypto if olm is present 2015-07-23 10:03:20 +01:00
Mark Haines 58e44a2fc3 Disable end-to-end crypto 2015-07-23 09:30:50 +01:00
Mark Haines ae8e01839e Add flag for indicating if an event was encrypted 2015-07-22 11:57:34 +01:00
Mark Haines 9e5f30fe1f Fix some lint errors 2015-07-22 11:37:22 +01:00
Mark Haines 319ca5123e Return device key list in a stable order, add a check for the list in the tests 2015-07-22 11:34:38 +01:00