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

177 Commits

Author SHA1 Message Date
Kegan Dougal
6eb896e7a3 Use a small timeout when trying to poll when having previously failed. This makes re-connects propagate more quickly. 2015-11-09 15:55:09 +00:00
Matthew Hodgson
170a78a420 convert PUD POJOs to events with ugly utils.map rather than iterating in the for loop 2015-11-07 20:20:50 +00:00
Matthew Hodgson
8771ced8e4 fix jsdoc thinko 2015-11-07 17:28:37 +00:00
Matthew Hodgson
dc7d2698b7 Merge branch 'develop' into matthew/room-tags 2015-11-07 17:25:53 +00:00
David Baker
6736164d98 Make linter happy (space at end of line) 2015-11-06 15:38:46 +00:00
Kegsay
5f6e52f367 Merge pull request #42 from stevenhammerton/sh-token-login
SH - CAS / Login token login
2015-11-06 14:34:48 +00:00
Steven Hammerton
e71a87c62c Update javadoc 2015-11-06 12:14:24 +00:00
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
Kegsay
455ce26741 Merge pull request #40 from matrix-org/kegan/syncing
Syncing bugs/fixes
2015-11-05 14:53:47 +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
Kegan Dougal
5d782a317c Add some sync emission tests. Emit after starting timers.
We want to emit AFTER starting the timers so tests can speed
up time. We also want to do this because clients may want to
retryImmediately() on sync errors (which would be lost unless
the timer had already been started)
2015-11-04 16:09:30 +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
Matthew Hodgson
149ed04a4f fix some review feedback; add initial api for setting & deleting tags; still a WIP 2015-11-04 02:24:36 +00:00
Kegan Dougal
e98eaaee6e Add MatrixClient.retryImmediately() to stop backing off and sync RIGHT NOW 2015-11-03 17:13:50 +00:00
Kegan Dougal
4b93d801ae Implement the new sync state API
Also have retry schemes for the rest of the syncing ops (/events, /pushrules)
2015-11-03 16:44:19 +00:00
Matthew Hodgson
8016a70bc4 remember to check initialSync for m.tag events 2015-11-03 16:18:12 +00:00
Matthew Hodgson
70536d5676 add support for tracking room tags 2015-11-03 16:05:48 +00:00
Kegan Dougal
27ce0970c5 BREAKING: Introduce a formal API for syncing state
BREAKING CHANGE:
  This replaces syncComplete and syncError.
2015-11-03 14:35:49 +00:00
Kegan Dougal
49f6634d73 Retry /initialSync if it fails (exp backoff up to 2.1min). 2015-11-03 14:01:17 +00:00
David Baker
142ee81e66 Emit events for read receipts 2015-11-03 11:43:52 +00:00
Kegan Dougal
3b21998d96 Expose timeout= on /events to clients 2015-11-03 10:18:56 +00:00
Kegan Dougal
0fb307d09b Use the history length specified in startClient() for room initial syncs. 2015-11-03 10:15:30 +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