Richard van der Hoff
b18a4ee16b
client.js: Fix error handling in downloadKeys
...
Fix a bug in the error handling in downloadKeys: If the http request failed,
then the exception would get silently swallowed and the promise would never
resolve.
Also: tests!
2016-06-07 17:26:56 +01:00
Matthew Hodgson
11f02d2e24
fix https://github.com/vector-im/vector-web/issues/1039 , for
...
literally the 4th time. unbreak tests, and fix camelcase hell.
2016-06-02 16:54:18 +01:00
Matthew Hodgson
0421e69f14
revert brand param at reg time
2016-06-02 12:33:09 +01:00
Matthew Hodgson
8b35ddae0a
add 'brand' parameter to register()
2016-06-02 11:46:02 +01:00
Matthew Hodgson
7243367a64
only clobber displayname & avatarurl from presence if set. fixes https://github.com/vector-im/vector-web/issues/1039 . again.
2016-06-01 03:45:16 +01:00
Matthew Hodgson
fb388f5d2d
fix typoes
2016-05-17 21:45:27 +01:00
David Baker
06486f7ad0
Fix c+p fails
2016-05-06 14:28:26 +01:00
David Baker
a9d8c58ea0
Add support for the openid interface
2016-05-06 13:58:10 +01:00
Paul "LeoNerd" Evans
37ea7edaa0
Bugfix for HTTP upload content when running on node
2016-04-21 14:16:20 +01:00
Matthew Hodgson
0e606c6fe2
incorporate PR feedback
2016-04-18 14:26:59 +01:00
Matthew Hodgson
3af35c8209
Merge branch 'develop' into matthew/syjs-28
2016-04-18 01:34:11 +01:00
Matthew Hodgson
a2aed99f56
track lastPresenceTs
2016-04-18 01:25:34 +01:00
Richard van der Hoff
dc386bab46
Fix debug flag name
2016-04-14 17:53:57 +01:00
Richard van der Hoff
df33f7aceb
Fix lint failures
2016-04-14 17:36:25 +01:00
Richard van der Hoff
d87e5471fa
Refactor the addition of events to rooms
...
... and add some sanity checks
Two things here:
1. Clean up the Room API for adding new events to the timeline. Where before
we had addEvents and addEventsToTimeline, whose purposes were unclear, we now
have addLiveEvents which must be used for adding events to the end of the live
timeline, and addEventsToTimeline which should be used for pagination (either
back-pagination of the live timeline, or pagination of an old timeline).
2. Add some sanity checks for the live timeline. Today we have seen problems
where somehow the live timeline had gained a forward pagination token, or the
live timeline had got joined to another timeline, leading to much confusion -
and I would like to notice these sooner.
2016-04-14 17:03:25 +01:00
Richard van der Hoff
90101c0340
Give timelines a name
...
The debug of "joined timeline [Object] to timeline [Object]" isn't terribly
helpful, so let's at least give them an identifier.
2016-04-14 16:11:48 +01:00
Richard van der Hoff
950fce80c8
Whitespace fix
...
remove trailing ws
2016-04-14 16:09:51 +01:00
Richard van der Hoff
3404751eb9
Clean up test shutdown
...
Make sure that the integration tests actually kill off all of their timers, so
that jasmine exits cleanly.
This probably also fixes https://github.com/vector-im/vector-web/issues/1365 .
2016-04-14 12:01:23 +01:00
Richard van der Hoff
0282021e09
Add a cachebuster to initial /sync
...
... in the hope of fending off weird firefox restore issues
2016-04-13 22:17:10 +01:00
Richard van der Hoff
526e1d59e9
Log sync token when starting sync loop
...
A little bit of debug that might help with
https://github.com/vector-im/vector-web/issues/1354
2016-04-13 14:08:59 +01:00
David Baker
dbc3a9a500
Merge pull request #125 from matrix-org/dbkr/get_pushers
...
Add methods to get (and set) pushers
2016-04-12 13:25:17 +01:00
David Baker
cff7c8a59f
Add methods to get (and set) pushers
2016-04-12 13:11:00 +01:00
Matthew Hodgson
64b8047f01
Merge pull request #122 from matrix-org/matthew/preview_urls
...
URL previewing support
2016-04-11 17:35:53 +01:00
Matthew Hodgson
11e4760935
improve commentary
2016-04-08 22:00:07 +01:00
Richard van der Hoff
dc56d7f784
Fix typo
...
s/evnets/events/
2016-04-08 15:54:57 +01:00
Matthew Hodgson
1ff1064295
Merge branch 'develop' into matthew/preview_urls
2016-04-07 17:26:10 +01:00
Richard van der Hoff
a493a0ddb3
Fix lint errors
2016-04-07 14:30:35 +01:00
Richard van der Hoff
7573171d05
Avoid paginating forever in private rooms
...
In TimelineWindow.paginate, keep a count of the number of API requests we have
made, and bail out if it gets too high, to ensure that we don't get stuck in a
loop of paginating right back to the start of the room.
2016-04-07 14:16:02 +01:00
Richard van der Hoff
384c474800
fix failure of deepCompare to compare arrays
...
what a difference a character can make
2016-04-06 18:14:34 +01:00
Richard van der Hoff
1d2c705e13
Fix a bug where we recreated sync filters
...
Fix the object comparison used for client filters (JSON.stringify is
non-deterministic)
2016-04-06 15:56:32 +01:00
Matthew Hodgson
c469ff4c8d
oops, fix sig
2016-04-03 01:19:34 +01:00
Matthew Hodgson
c7575f3f16
cache url preview results
2016-04-03 01:18:01 +01:00
Matthew Hodgson
415251dd70
WIP url previewing
2016-03-31 18:38:34 +01:00
Richard van der Hoff
d2adb30ded
Implement HTTP callbacks in realtime
...
Hopefully this will improve our recovery time after a laptop is suspended. The
idea is to treat the timeouts on the http apis as being in realtime, rather
than in elapsed time while the machine is awake.
To do this, we add a layer on top of window.setTimeout. We run a callback every
second, which then checks the wallclock time and runs any pending callbacks.
2016-03-31 13:51:18 +01:00
David Baker
57f88b00ba
d'oh, no es6 in js-sdk
2016-03-24 13:57:55 +00:00
David Baker
e618ad9589
Only count joined members for the member count in notifications. Fixes https://github.com/vector-im/vector-web/issues/1067
2016-03-24 13:55:30 +00:00
David Baker
d7b3b91eec
Failed to remove extra param
2016-03-23 17:08:22 +00:00
David Baker
88cc63e2a2
Add maySendEvent to match maySendStateEvent. Make them use the same function internally. Also add convenience maySendMessage. Also tests.
2016-03-23 15:10:51 +00:00
Matthew Hodgson
cfc10fa82d
fix invite picker info again...
2016-03-23 12:03:56 +00:00
Matthew Hodgson
e1415d9829
Merge pull request #117 from matrix-org/matthew/roomlist
...
get/setRoomVisibility API
2016-03-22 12:30:18 +00:00
Richard van der Hoff
19a12b3c79
Merge pull request #115 from matrix-org/rav/txnid_clashes
...
Include a counter in generated transaction IDs
2016-03-22 12:20:02 +00:00
Matthew Hodgson
bec41e4f94
incorporate review
2016-03-22 10:20:02 +00:00
Matthew Hodgson
5f177aeec4
get/setRoomVisibility API
2016-03-22 00:55:53 +00:00
Matthew Hodgson
b422916452
add to existing users if present, to avoid destroying presence data
2016-03-21 18:15:55 +00:00
Matthew Hodgson
10378c0e7f
Merge pull request #116 from matrix-org/matthew/fix-invite-picker-info
...
update store user metadata based on membership events rather than presence
2016-03-21 16:12:42 +00:00
Matthew Hodgson
fba4d5fb0a
Merge pull request #114 from matrix-org/matthew/stop-peeking
...
API to stop peeking
2016-03-21 16:12:29 +00:00
Matthew Hodgson
77101823f5
track kicked rooms correctly
2016-03-19 02:18:37 +00:00
Matthew Hodgson
15bc608368
presence no longer returns profile data, so we have to update our store's users based on membership events instead
2016-03-19 01:45:10 +00:00
Richard van der Hoff
dfc4b34d09
Include a counter in generated transaction IDs
...
Fixes a flaky test which sometimes failed due to sending two events in the same
millisecond.
2016-03-18 21:32:15 +00:00
Richard van der Hoff
ad9daecbd4
Pass the right options into SyncApi when peeking
...
When we peek into a room, we create its Room object. We need to make sure it is
created with the same options as we would if it were created via the /sync
calls.
Save the options passed in when startClient is called, and then pass them into
the SyncApi each time we create it.
2016-03-18 20:59:23 +00:00