David Baker
8aeb994839
Expose the inhibit_login flag to register
2019-06-13 16:23:11 +01:00
Bruno Windels
b5df016b1b
remove unused method
2019-06-04 15:28:40 +02:00
Bruno Windels
8194287391
make redactEvent go through same local-echo aware path as other events
2019-06-03 18:37:25 +02:00
Sergii Stotskyi
4ef970b4da
fix(login): saves access_token and user_id after login for all login types
...
Signed-off-by: Sergii Stotskyi <sergiy.stotskiy@gmail.com >
Fixes #876
2019-05-28 17:47:49 +03:00
Travis Ralston
09438b440e
Fix spelling error in txnId for redactions
...
Fixes https://github.com/vector-im/riot-web/issues/9700
2019-05-13 13:43:44 -06:00
jkasun
430da8ac09
JS Doc Fix
2019-04-15 20:34:39 +05:30
jkasun
348c293962
Argument Length Check, Duplicate Fix for Redact Funcation
2019-04-13 22:23:57 +05:30
jkasun
c495b12cef
change event redact, POST request to PUT request
2019-04-07 00:19:02 +05:30
J. Ryan Stinnett
26893b9877
Merge pull request #589 from johbo/add-thirdparty-user
...
Add getThirdpartyUser to base api
2018-12-18 00:38:09 +00:00
Richard van der Hoff
5b51096e37
fix default login type for getSsoLoginUrl
2018-11-19 13:08:41 +00:00
Richard van der Hoff
578cb4e268
Add 'getSsoLoginUrl' function
2018-11-15 19:00:37 +00:00
Richard Lewis
610923af89
Merge pull request #778 from matrix-org/rxl881/loginWithPassword
...
Set access_token and user_id after login in with username and password.
2018-11-05 17:25:31 +00:00
Richard Lewis
b716e71784
Refactor code to base 'login' method.
2018-11-05 16:40:11 +00:00
Richard Lewis
094598196a
Linting.
2018-11-05 16:02:30 +00:00
Richard Lewis
a0d51803ed
Add function to get currently joined room members.
2018-11-05 00:08:04 +00:00
Richard Lewis
3aabd63975
Add function to get currently joined rooms.
2018-11-04 21:49:17 +00:00
Richard Lewis
394e37f9ea
Set access_token and user_id after login in with username and password.
2018-11-04 19:43:18 +00:00
Bruno Windels
52fad6aec2
Merge pull request #694 from matrix-org/hs/fetch-room-event-api
...
Api to fetch events via /room/.../event/..
2018-08-21 14:39:14 +02:00
Will Hunt
5b830f0b6a
Add fetchRoomEvent to base-apis.js
2018-08-21 11:07:48 +01:00
David Baker
0e3cb1977f
lint
2018-08-17 15:00:54 +01:00
David Baker
e8610a35b4
Support for room upgrades
...
For https://github.com/vector-im/riot-web/issues/7164
2018-08-17 14:55:12 +01:00
Bruno Windels
62333b3e2c
Use /members api for lazy loading
...
This commit is a substantial change, as /members returns state events,
not profile information as /joined_members, and this allows to simplify
the implementation quite a bit. We can assume again all members have
a state event associated with it.
I also changed most of the naming of lazy loaded members to
out-of-band members to reflect that this is the relevant bit for most
of the code, that the members didn't come through /sync but through
another channel.
This commit also addresses the race condition between /(joined_)members
and /sync. /members returns the members at the point in the timeline
at a given event id. Members are loaded at the last event
in the live timeline, and all members that come in from sync
in the mean time are marked as superseding the out of band members,
so they won't be overwritten, even if the timeline is reset in the
mean time.
Members are also marked if they originate from an out-of-band channel
(/members) so they can be stored accordingly (future PR).
The loading status is kept in room state now, as this made resolving
the race condition easier. One consequence is that the status needs
to be shared across cloned instances of RoomState. When resetting
the timeline (and cloning the room state) while lazy loading is in
progress, one of the RoomStates could be left in progress indefinitely.
Though that is more for clarity than avoiding any actual bugs.
2018-08-15 11:59:39 +02:00
Bruno Windels
2155dd0552
improve return type comment
2018-08-15 11:59:39 +02:00
Bruno Windels
2c5cad71ee
prototype support for lazily loading members in matrixclient
2018-08-15 11:59:39 +02:00
Michael Telatynski
7fe3e2f90a
invert argument to make it positive without breaking backwards compat
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2018-06-18 12:27:25 +01:00
Michael Telatynski
c0b2151929
allow omitting filename from upload entirely
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2018-06-15 18:25:20 +01:00
Luke Barnard
a50dd785b8
(Breaking Change) Add erase option to deactivateAccount ( #649 )
...
For erasing messages etc. after deactivation.
**Breaking change: `deactivateAccount` no longer takes callback**
Also: Move /account/deactivate from PREFIX_UNSTABLE to _R0
2018-05-24 10:47:41 +01:00
David Baker
730ca9b60b
Update to new join policy API ( #636 )
2018-04-05 17:02:43 +01:00
Luke Barnard
1afaf903f9
Add wrapped to set group is_joinable ( #634 )
...
which is exposed in the summary API under `summary.profile.is_joinable`.
If true, anyone can join the group. If false, an invite is required.
2018-03-29 17:03:20 +01:00
Luke Barnard
d53cd41aa6
Add wrapper for group join API ( #633 )
...
Needed for new "joinable" groups.
2018-03-29 12:42:16 +01:00
Michael Telatynski
d007eefe2e
add parameter to getIdentityServerUrl to strip the protocol for invites
...
use new getIdentityServerUrl param in inviteByThreePid
2018-01-25 09:53:19 +00:00
Johannes Bornhold
81de2b3afc
Add getThirdpartyUser
...
Signed-off-by: Johannes Bornhold <johannes@bornhold.name >
2017-12-31 22:46:18 +01:00
Johannes Bornhold
9a53fa3876
Fix typo around getThirdpartyLocation
2017-12-31 01:24:27 +01:00
Luke Barnard
4ad153c425
Send correct m.visibility flag in js-sdk
2017-12-01 18:01:23 +00:00
Luke Barnard
7f590af0b5
Add API wrapper for multiple device deletion API ( #583 )
2017-11-30 10:16:18 +00:00
Travis Ralston
7a59579dcd
Support sending additional options with acceptance ( #570 )
...
To be able to send things like `{visibility: { type: 'private ' }}`
Signed-off-by: Travis Ralston <travpc@gmail.com >
2017-11-10 14:14:11 +00:00
Luke Barnard
497a2bd057
Update API wrapper for group room association configuration ( #569 )
...
This is now a generic API on the homeserver. This is wrapped in a non-generic js-sdk function for now. In future, other group server implementations may want specific configuration and the configuration keys are namespaced to prevent collisions there.
2017-11-09 17:34:26 +00:00
Luke Barnard
d40cc795f7
Modify addRoomToGroup to allow setting isPublic, create alias updateGroupRoomAssociation
...
The API on synapse was modified to be an upsert, which means the same API call for adding a room to a group can be used to update the visibility of that association.
2017-11-02 13:34:34 +00:00
Luke Barnard
b0b50f4ef9
Implement API wrapper for GET /group/$groupId/invited_users ( #560 )
2017-10-16 18:23:40 +02:00
Luke Barnard
5494a9dd3b
Implement wrapper API for removing a room from a group
2017-09-29 17:57:53 +01:00
Luke Barnard
96d828d22b
Implement API wrapper for adding a room to a group ( #551 )
2017-09-27 14:27:19 +01:00
David Baker
a8a50384b8
Add wrapper for group update_publicity API ( #550 )
...
Add wrapper for group update_publicity API
2017-09-25 15:27:59 +01:00
Luke Barnard
f1555dbb5d
Implement wrapper APIs for removing users and rooms from group summary
2017-09-22 16:18:18 +01:00
Luke Barnard
a58ec3f192
Implement wrapper APIs for adding rooms to group summary
2017-09-21 17:01:33 +01:00
Luke Barnard
c2cd050419
Implement API to add users to group summaries ( #543 )
...
(and call it addUserToGroupSummary)
2017-09-20 16:31:28 +01:00
David Baker
068939f790
APIs for flair ( #542 )
2017-09-18 14:44:40 +01:00
David Baker
033babfbfc
Groups: Sync Stream, Accept Invite & Leave ( #528 )
...
* WIP support for reading groups from sync stream
Only does invites currently
* More support for parsing groups in the sync stream
* Fix jsdoc
2017-08-24 10:24:24 +01:00
David Baker
e1942267c5
Add API to invite & remove users from groups ( #525 )
...
* Add API invite & remove users from groups
* lint
2017-08-16 14:45:15 +01:00
David Baker
ed029fe348
More useful doc
2017-07-24 09:55:04 +01:00
David Baker
055590c0c6
Add more group APIs
2017-07-21 11:13:27 +01:00