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
David Baker
c4a35020f1
Add event to get last read receipt for a user.
2015-11-02 14:39:10 +00:00
Matthew Hodgson
4c051202af
s/getMembersWithMemership/getMembersWithMembership/g
2015-10-24 01:45:02 +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
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
37a8c9bd72
Merge pull request #23 from matrix-org/read_receipts
...
Receipts
2015-10-19 15:30:23 +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
bad8b7fb76
Look for a canonical alias when determining the room name
2015-10-16 14:30:21 +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
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
6d6868df73
Mention the user_id of the inviter for invited room names
2015-08-14 17:09:21 +01:00
Mark Haines
ae8e01839e
Add flag for indicating if an event was encrypted
2015-07-22 11:57:34 +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
Kegan Dougal
358cdaf167
Fix linting errors
2015-07-21 17:20:35 +01:00
Kegan Dougal
90e778cb84
Handle redactions (both live and historic).
2015-07-21 17:14:11 +01:00
Kegan Dougal
6653d294d9
Re-apply metadata after setStateEvents to correctly apply sender/target props for m.room.member events.
2015-07-21 16:58:14 +01:00
Erik Johnston
f716431f65
Make getJoinedUsers call getMembersWithMembership
2015-07-21 15:41:33 +01:00
Erik Johnston
86e73bdd35
Add getMembersWithMembership to get all members with given membership state
2015-07-21 15:31:58 +01:00
Mark Haines
6dae0ef327
Fix the local echo for encrypted events by sending a single event with different content and event type for the wire vs local display
2015-07-21 14:19:24 +01:00
Kegan Dougal
93a104fe4c
Fire presence first time if presence event unset.
2015-07-20 11:28:13 +01:00
Matthew Hodgson
beb8bff084
placeholder code for defaulting displaynames to userids, except it needs disambiguation logic
2015-07-18 15:40:19 +01:00
Matthew Hodgson
3a344a0138
turn off alias disambiguation, and add a method to grab room avatar urls
2015-07-15 03:53:51 +01:00
Kegan Dougal
8cb973e605
Fix SYJS-16: event.sender is sometimes null for locally sent events.
2015-07-14 12:00:19 +01:00
Kegan Dougal
c289c70f27
SYJS-17: Update the core event dict completely before members.
...
The RoomState needs to be current before higher-level processing as this
processing may depend on the end state rather than the progressive state
(e.g. disambiguating BOTH RoomMember's display names).
2015-07-13 10:53:07 +01:00
Matthew Hodgson
f75453d5d5
ignore parted users when naming rooms
2015-07-08 14:55:08 +01:00
David Baker
f29f2a8115
Move getAvatarUrl into the client because it requires an instantiated client to work. Fix bits of client to use opts rather than credentials which doesn't exist.
2015-07-02 18:22:46 +01:00
Kegan Dougal
5691865035
Linting
2015-07-02 17:23:35 +01:00
Kegan Dougal
abe00deb65
Add getAvatarUrl() to RoomMember
2015-07-02 17:22:44 +01:00
Kegsay
df7bde4257
Merge pull request #10 from matrix-org/push
...
Push
2015-07-01 18:19:43 +01:00
Kegan Dougal
82de3b6f19
Begin scrollback implementation.
...
Add Room.storageToken to docs. Add unit test stubs for scrollback function.
Add a basic common-case implementation.
2015-07-01 18:04:59 +01:00
David Baker
753a11ab7f
Move push actions method to the client
2015-07-01 14:09:34 +01:00
David Baker
c82b2049eb
prefix internal var with underscrore
2015-06-29 16:34:33 +01:00
David Baker
53f2f156ca
Fix linting errors
2015-06-29 16:09:07 +01:00
David Baker
083a0980eb
javascript function syntax #3...
2015-06-29 15:57:20 +01:00
David Baker
1be02a3c3c
Port over push rule eveluator from the angular SDK and make it available on MatrixEvent
2015-06-29 15:53:23 +01:00
Kegan Dougal
fd0eb0c674
Finish timline integration tests.
2015-06-26 13:53:01 +01:00