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

159 Commits

Author SHA1 Message Date
Steven Hammerton
b963f177cc Update CAS login to return url rather than update location as the JS SDK may not be run within a browser env 2015-11-06 12:11:50 +00:00
Steven Hammerton
c3097979f2 Change login with CAS to redirect to HS for CAS login 2015-11-06 11:19:32 +00:00
Steven Hammerton
d241f5b3eb Add login with token method 2015-11-05 14:51:23 +00:00
David Baker
d34f8eda1a Merge pull request #41 from matrix-org/implicit_read_receipts
Implicit read receipts
2015-11-05 14:42:48 +00:00
David Baker
0da547a239 Implicit read receipts
* Inject implicit read receipts into the timeline
 * Twiddle local echo a bit to make the implicit receipts match the various different stages of local echo.
2015-11-05 13:39:03 +00:00
Kegan Dougal
16278892d8 Modify how detection of the end of pagination is done
Synapse may filter down the events resulting in < 'limit' events being
returned *but it still has more events*. Change the check to see if the
request returned an empty array instead. This may add an extra HTTP hit.
2015-11-05 13:26:16 +00:00
Kegsay
9cf7edc48d Merge pull request #38 from matrix-org/receipt_events
Emit events for read receipts
2015-11-04 12:04:19 +00:00
David Baker
142ee81e66 Emit events for read receipts 2015-11-03 11:43:52 +00:00
Kegsay
c1160d3419 Merge pull request #36 from matrix-org/kegan/event-stream-js-errors
Wrap /events response processing in a try/catch
2015-11-02 17:13:17 +00:00
Kegan Dougal
c3c7ee5453 Add MatrixClient.supportsVoip()
This allows developers to gracefully degrade their UIs if VoIP is not supported.
2015-11-02 17:03:19 +00:00
Kegan Dougal
93a091c7e8 Wrap /events response processing in a try/catch 2015-11-02 16:02:06 +00:00
Kegan Dougal
83c53f6a79 Fix doc typo 2015-10-28 16:48:08 +00:00
Kegsay
cc0d8da416 Merge pull request #32 from matrix-org/member-info-for-invites
Retrieving profile info for invites
2015-10-26 16:42:21 +00:00
Kegan Dougal
be6d64fbfd Add integration tests; fix bugs. 2015-10-26 16:12:06 +00:00
Kegan Dougal
4cbab72369 Resolve invites to profile info
This is so inviters/invitees have a display name and avatar_url if they have
set one. This info isn't contained in the m.room.member event so we get it
direct from /profile.

This is gated behind `resolveInvitesToProfiles` on `startClient(opts)`.
2015-10-26 15:27:44 +00:00
Kegan Dougal
0227b1c68d Add search functions and tests 2015-10-26 13:27:45 +00:00
Matthew Hodgson
9ec3504c72 dial down logging 2015-10-21 01:40:01 +01:00
Kegan Dougal
4e2c83cc08 Debug logging 2015-10-20 17:21:25 +01:00
Kegan Dougal
343d63a28a Merge branch 'develop' into room-avatars 2015-10-19 15:33:42 +01:00
Kegsay
0a28d6e950 Merge pull request #26 from matrix-org/invite-room-state
Invite room state
2015-10-19 15:31:45 +01:00
Kegsay
b493a62afa Merge pull request #25 from matrix-org/initial-sync-improvements
Add support for archived=true in initial sync
2015-10-19 15:31:32 +01:00
Kegan Dougal
f26154d0ac Add support for m.room.avatar: refactor avatar URLs
BREAKING CHANGE.

Scope each "getAvatarUrl" to be instance methods on the entity it
relates to (Room and RoomMember respectively). By doing this, we
can actually pull out specific state such as the `m.room.avatar`
event more easily rather than keeping it in the global cesspit
of `MatrixClient`.

This was complicated by `getHttpUriForMxc` and `getIdenticonUri`
which were attached to the HTTP API to pull out the `baseUrl` when
crafting the URL. Pull out this dependency out and explicitly pass
it in when crafting the URL. This is trivial to get from
`MatrixClient.getHomeserverUrl()`.
2015-10-19 14:14:34 +01:00
Kegan Dougal
219103a4e2 Yank out invite event from initialSync. Set stripped state events when recalculating invited rooms. 2015-10-16 17:07:04 +01:00
Kegan Dougal
4ec7b9bb3f Add support for archived=true in initial sync
Make MatrixClient.startClient take 'opts' instead of 'historyLen' in
a backwards compatible way. Add 'includeArchivedRooms' as an option.
2015-10-16 15:00:26 +01:00
Kegan Dougal
40d113a423 Pass in receipts from initialSync 2015-10-16 11:54:47 +01:00
Kegan Dougal
43fc200dae Read receipt HTTP API tweaks 2015-10-16 09:36:13 +01:00
David Baker
6679e93afc Add untested read receipt sending method 2015-10-16 09:12:50 +01:00
Kegan Dougal
385ebd3bfb Semicolons 2015-10-12 17:57:02 +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
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
7f9c88e53f Add create/getAlias and sendNotice/sendHtmlNotice methods. 2015-07-28 14:51:26 +01:00
Kegan Dougal
759dece725 Minor JSDoc fix. 2015-07-28 13:27:57 +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
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
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
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
Mark Haines
28a5719f5f Add method for listing the device keys we have for a user 2015-07-22 11:24:58 +01:00
David Baker
348d3f4ce1 Merge pull request #17 from matrix-org/markjh/end_to_end
Add support for end-to-end using olm
2015-07-21 13:12:01 -07:00
David Baker
a0fc8df3e1 Fix more minor things from PR comments 2015-07-21 13:10:01 -07:00
David Baker
8b2f11edc9 s/.then/.done/ 2015-07-21 13:08:13 -07:00