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
Kegsay
48253f0ff0
Merge pull request #37 from matrix-org/kegan/supports-voip
...
Add MatrixClient.supportsVoip()
2015-11-02 17:10:46 +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
David Baker
c6aac8cbd9
Merge pull request #35 from matrix-org/event_read_up_to
...
Add event to get last read receipt for a user.
2015-11-02 16:04:16 +00:00
David Baker
1b43bc78d0
Remove unnecessary null check & s/"/'/
2015-11-02 16:02:48 +00:00
Kegan Dougal
93a091c7e8
Wrap /events response processing in a try/catch
2015-11-02 16:02:06 +00:00
David Baker
083dde3557
Fix doc
2015-11-02 16:00:40 +00:00
David Baker
4adc5f2c85
Also need to check if the event is null
2015-11-02 15:19:29 +00:00
Daniel Wagner-Hall
0b42d85c5b
Use double-quotes for consistency
2015-11-02 15:07:47 +00:00
David Baker
c4a35020f1
Add event to get last read receipt for a user.
2015-11-02 14:39:10 +00:00
Daniel Wagner-Hall
11f052bcc6
Simplify logic and layout
2015-10-30 14:58:59 +00:00
Kegan Dougal
83c53f6a79
Fix doc typo
2015-10-28 16:48:08 +00:00
Kegan Dougal
ae13ed7ded
Add disclaimer to screensharing
2015-10-28 16:45:07 +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
4c051202af
s/getMembersWithMemership/getMembersWithMembership/g
2015-10-24 01:45:02 +01:00
Matthew Hodgson
981b9e0595
Merge branch 'screen-sharing' into develop
2015-10-23 12:58:55 +01:00
Matthew Hodgson
9e719ba31e
drop res back to 640x360 as 1024x576 gave us the wrong aspect ratio
2015-10-23 12:57:46 +01:00
Kegan Dougal
c65f576f8d
More logging
2015-10-21 17:15:26 +01:00
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