1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-12-01 04:43:29 +03:00
Commit Graph

707 Commits

Author SHA1 Message Date
Kegan Dougal
2c805bbece More paranoia when handling responses 2015-10-21 16:00:31 +01:00
Kegan Dougal
02b836698c More clarity on cache updating 2015-10-21 14:07:14 +01:00
Kegan Dougal
5888c8a56c Commenting on splice 2015-10-21 13:47:23 +01:00
Kegan Dougal
1cee7bf397 JSDoc 2015-10-21 13:30:32 +01:00
Kegan Dougal
cab7a71a94 Change calculating display names from O(n^2) to O(n)
Reduces initial sync times from ~30s to ~1s on accounts with heavily
populated rooms.

The problem was that f.e. RoomMember it would try to calculate the
display name, which involved looping each RoomMember to get their
display name to check for disambiguation. We now cache display names
to user IDs so we don't need to loop every member when disambiguating.
2015-10-21 13:25:23 +01:00
Matthew Hodgson
bff749fd50 fix linter 2015-10-21 01:44:54 +01:00
Matthew Hodgson
5c286352cb improve constraints a bit; fix comments; try to stop sharing more aggressively 2015-10-21 01:40:20 +01:00
Matthew Hodgson
9ec3504c72 dial down logging 2015-10-21 01:40:01 +01:00
Matthew Hodgson
26b3e32ca2 add the concept of a dedicated remote audio element used for playing back audio-only streams (i.e. voice calls, and the voice stream that accompanies a screenshare). Correctly tidy up screen capture calls. 2015-10-21 01:18:55 +01:00
Kegan Dougal
4e2c83cc08 Debug logging 2015-10-20 17:21:25 +01:00
Kegan Dougal
17def14eba Get screen-sharing with audio working 2015-10-20 16:43:51 +01:00
Kegan Dougal
f260de573b Add right constraints to get screen-sharing working
Requires --enable-usermedia-screen-capturing flag on chrome enabled.
2015-10-20 15:11:17 +01:00
David Baker
4fd45ab278 Merge pull request #28 from matrix-org/voip-mute
VoIP local muting
2015-10-20 10:33:24 +01:00
Kegan Dougal
dd8adef9ed Remove unused args 2015-10-19 16:50:16 +01:00
Kegan Dougal
9164debf03 Add the same for video 2015-10-19 16:48:47 +01:00
Kegan Dougal
534bef8632 Add MatrixCall.isMicrophoneMuted() 2015-10-19 16:28:01 +01:00
Kegan Dougal
d8c43d02ba Add MatrixCall.setMicrophoneMuted 2015-10-19 16:21:13 +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
Kegsay
37a8c9bd72 Merge pull request #23 from matrix-org/read_receipts
Receipts
2015-10-19 15:30:23 +01:00
Kegan Dougal
a9c4345159 Clarify the link is the source of the code 2015-10-19 15:29:57 +01:00
Kegan Dougal
2c213f88d9 Units! Tests! Linting! 2015-10-19 15:24:24 +01:00
Kegan Dougal
a236219111 ContentRepo unit tests 2015-10-19 15:00:06 +01:00
Kegan Dougal
2f9958cca9 JSDoc linkify 2015-10-19 14:37:17 +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
5ae87b7c95 Bug fixes and unit tests 2015-10-16 17:27:05 +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
bad8b7fb76 Look for a canonical alias when determining the room name 2015-10-16 14:30:21 +01:00
Kegan Dougal
40d113a423 Pass in receipts from initialSync 2015-10-16 11:54:47 +01:00
Kegan Dougal
7ec8421d19 Fix linting errors 2015-10-16 11:38:49 +01:00
Kegan Dougal
9048efeb65 Implement receipt handling and expose new Room functions
Add polyfills for Array.map/filter according to MDN because it looks much
better than the utils format.

Add stub tests for edge cases and implement test for the common case.
2015-10-16 11:32:27 +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
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
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
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
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