manuroe
2e664adb32
Updated push rules methods after review
2016-01-18 17:22:35 +01:00
manuroe
e3b4cb03e1
Fixed Jenkins tests complaints
2016-01-14 19:17:08 +01:00
manuroe
8011aab561
Added MatrixClient getRoomPushRule and setRoomMutePushRule methods
2016-01-14 18:58:15 +01:00
manuroe
c10218a1fa
Fixed Jenkins tests complaints
2016-01-11 17:12:28 +01:00
manuroe
5c59a2ea3e
Fixed MatrixClient pushRules method and ivar clash.
...
Added MatrixClient.setPushRuleEnabled method.
2016-01-11 17:00:05 +01:00
Kegsay
0b79ac1386
Merge pull request #60 from matrix-org/kegan/guest-access
...
Add constructs for guest access
2016-01-11 15:19:14 +00:00
Kegan Dougal
ea3bd1450e
Add functions to support upgrading guest accounts
2016-01-07 17:23:56 +00:00
Kegan Dougal
8f4bd9c693
NOP typing/receipts when a guest
2016-01-07 15:03:37 +00:00
Kegan Dougal
cdb4bc5107
Implement peek syncing.
...
This involves hitting room initial sync then /events?room_id=!thing:here
It even works.
2016-01-07 14:58:28 +00:00
Matthew Hodgson
446faed9b5
copyrights please...
2016-01-07 04:15:38 +00:00
Kegan Dougal
3a3f25c1bc
Remove guest rooms array; replace with a peeking SyncApi
...
After much discussion, the HS will now behave the same for guests/non-guests
wrt joining a room (you get the entire room state on join). This leave "peeking"
which never triggers a join. This can be implemented for guests by doing a
room initial sync followed by a specific /events poll with a specific room_id.
This means there are 2 sync streams: /sync and the peek /events. Architected
so you can only have 1 peek stream in progress at a time (if this were arbitrary
we'd quickly run into concurrent in-flight browser request limits (5).
2016-01-06 17:29:14 +00:00
Kegan Dougal
73e65bc18b
Add setGuestAccess to allow easy room guest access configuration.
2016-01-05 17:09:10 +00:00
Kegan Dougal
8c6c65ab6c
Don't do requests we know are going to fail as a guest
2016-01-05 11:50:24 +00:00
Richard van der Hoff
c669d21af7
Enhancements to search results, and event context implementation
...
This change adds support to the JDK for processing the results of a room
search, as well as back-paginating the results.
It treats each search result as a 'context' object, which can itself be
backwards or forward-paginated.
2016-01-04 12:50:07 +00:00
Richard van der Hoff
a419e241a6
Merge pull request #57 from matrix-org/rav/search_backfill
...
Allow passing a next_batch token into /search for backfill
2015-12-21 09:15:53 +00:00
Richard van der Hoff
13fcff9688
Allow passing a next_batch token into /search for backfill
2015-12-18 16:23:48 +00:00
Kegan Dougal
de53b292a2
Remove debug logging
2015-12-18 15:21:28 +00:00
Kegan Dougal
b50d61428c
Impl syncing of left rooms. Factor out getting or creating filters.
2015-12-18 11:57:46 +00:00
Kegan Dougal
4bc5343b67
Merge branch 'develop' into kegan/archived-rooms
2015-12-18 09:47:43 +00:00
Kegan Dougal
da560ffeff
Fix SYJS-38 - Events stuck in 'sending' state
...
v1 used to clobber events after sending so `.status` would be `null`. v2 is
smarter and just clobbers the `.event` data so references to the local echo
event would reflect the new event. However, the `.status` in this case would
still have the old value (SENDING), so make sure to reset it after the 200 OK
from sending the event.
2015-12-18 09:14:48 +00:00
Kegan Dougal
59965b1c59
Add public api for syncing left rooms. Not implemented yet.
2015-12-17 17:17:53 +00:00
Kegan Dougal
2e9376614f
BREAKING: Add bindEmail option to register()
2015-12-17 14:13:17 +00:00
Kegan Dougal
bfa8dd0007
Cache the local event ID else we can remove a real event. Fixes vector-im/vector-web#530
2015-12-16 17:51:12 +00:00
Kegan Dougal
7e35ef258f
Delete the room when it is forgotten and fire a new experimental event
2015-12-16 16:25:09 +00:00
Kegan Dougal
8bd43a8d53
Add /forget
2015-12-16 15:57:29 +00:00
Kegsay
8b87c0045d
Merge pull request #54 from matrix-org/kegan/stale-call-notifications
...
Do not erroneously emit Call.incoming events on startup
2015-12-15 17:03:03 +00:00
Kegan Dougal
65ef1dfd75
Lint and tests
2015-12-15 15:57:24 +00:00
Kegan Dougal
5719d513b7
Strip protocol part when doing 3PID invites for. Partially fixes vector-im/vector-web#419
2015-12-15 15:52:52 +00:00
Kegan Dougal
406a2bb001
Do not erroneously emit Call.incoming events on startup
...
Check to see if the call was answered or hung up in addition to having a valid
lifetime before emitting the event. Fixes vector-im/vector-web#344
2015-12-15 15:13:41 +00:00
Kegan Dougal
26d9fed537
Fix MatrixClient unit tests
2015-12-11 11:07:31 +00:00
Kegan Dougal
6af2197183
Process join rooms and add local timeouts to /sync
...
This actually works now, though there's a number of teething
issues which may be app-specific. That, and all the tests are
broken.
2015-12-10 14:14:56 +00:00
Kegan Dougal
b622960b32
Do all prep for /sync calls
...
This includes managing filters in localStorage. The /sync response
is not yet parsed.
2015-12-09 15:25:09 +00:00
Kegan Dougal
06f927aa22
Minor cleanup and reshuffle
2015-12-09 11:27:03 +00:00
Kegan Dougal
0576e4ca0c
Linting
2015-12-09 11:16:46 +00:00
Kegan Dougal
3543abf7bd
Make things work again
2015-12-09 10:42:38 +00:00
Kegan Dougal
2b659656cc
Move alllll the sync code to sync.js - still more to do (in FIXME XXX)
2015-12-08 17:41:09 +00:00
Kegan Dougal
c65f32f6a6
Add filter integration tests; more bug fixes.
2015-12-08 16:08:04 +00:00
Kegan Dougal
1987726a95
Add initial v2 filter impl
2015-12-08 15:23:09 +00:00
Kegan Dougal
b7ac6a2e33
Add config option to sort pending events to the end of the timeline
2015-12-07 15:36:32 +00:00
Kegan Dougal
c0178c3e80
Add getScheduler. Fix JSDoc
2015-12-07 11:29:02 +00:00
Kegan Dougal
73e0216f78
Scrollback improvements
...
Add a 3s delay between scrollback requests if the previous scrollback request
failed.
Return the same promise if scrollback() is called multiple times whilst a
scrollback request is ongoing.
2015-12-04 17:27:16 +00:00
Kegan Dougal
02a605f368
Guest room ID fixes / initialSync support
2015-12-04 15:31:07 +00:00
David Baker
92ea275275
Add ability to cancel file uploads
2015-12-02 18:14:13 +00:00
Kegan Dougal
0c114a2ab3
Only send up room_ids query param if isGuest is set
2015-12-02 12:34:25 +00:00
Matthew Hodgson
e3757880ee
add sendHtmlEmote
2015-11-29 01:18:22 +00:00
Kegan Dougal
88d680ef77
s/private_user_data/account_data/g
2015-11-20 17:32:25 +00:00
David Baker
7095753410
Don't return non-mxc URLs by default.
2015-11-12 11:57:53 +00:00
Kegan Dougal
4f851dc431
Add isGuest/setGuest
2015-11-11 13:40:06 +00:00
Kegan Dougal
7c887c1a5d
Linting
2015-11-10 16:38:15 +00:00
Kegan Dougal
56bcf9796a
Add MatrixClient.setGuestRooms
...
This is used in /events to grab events for the rooms the Guest is interested
in.
2015-11-10 16:36:44 +00:00