David Baker
8701e9293e
Add in-app rebranding toasts & prompts
...
Either shows an informational dialog telling you the name has changed,
or a more naggy one if the user needs to log in on a different URL.
The new URL (if any) is hardcoded based on the current URL, and also
with a bonus config param in case other deployments need to do similar.
2020-07-10 15:32:34 +01:00
Michael Telatynski
f02c52b758
unexport things which need not exporting
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-06-25 22:01:41 +01:00
Michael Telatynski
1c00ae8dd3
Move to mx_sso_hs_url and co for sso persistance to not conflict with guest creds
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-06-25 21:59:46 +01:00
Michael Telatynski
eccacb1bc7
Merge pull request #4605 from matrix-org/t3chguy/e2eedefault
...
Add .well-known option to control default e2ee behaviour
2020-06-03 22:12:13 +01:00
Michael Telatynski
899f9ede45
change names of consts for clarity
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-06-03 20:23:01 +01:00
Michael Telatynski
a674131a8c
Fix Jitsi wellknown hooks
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-06-03 13:58:17 +01:00
Michael Telatynski
113a9d71b5
Fix login loop where the sso flow returns to #/login
...
due to fragmentAfterLogin going back to `#/login`
and https://github.com/vector-im/riot-web/issues/11643
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-06-02 16:26:07 +01:00
Hubert Chathi
ec24350801
Merge pull request #4657 from matrix-org/uhoreg/keytar
...
set the client's pickle key if the platform can store one
2020-05-28 13:52:02 -04:00
Hubert Chathi
30120dc0c7
Merge remote-tracking branch 'upstream/develop' into keytar
2020-05-28 11:15:36 -04:00
Hubert Chathi
73c35ff80e
set the client's pickle key if the platform can store one
2020-05-28 00:05:45 -04:00
Michael Telatynski
a977b8c4ca
Fix lifecycle to reset things before it starts them
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-05-22 21:55:43 +01:00
Travis Ralston
90a898d03f
Move dispatcher into a subdirectory
...
We're expecting to have a whole bunch of types for the dispatched payloads, so pull the thing into a directory we can throw them in.
2020-05-13 21:07:50 -06:00
Travis Ralston
234f3ee772
Merge pull request #4348 from matrix-org/travis/jitsi/wellknown
...
Support Jitsi information from client .well-known
2020-04-07 10:03:05 -06:00
David Baker
5b263f1905
Merge pull request #4353 from matrix-org/dbkr/start_presence_after_client_init
...
Don't try to send presence updates until the client is started
2020-04-07 12:31:04 +01:00
David Baker
8d68a4ab52
Don't try to send presence updates until the client is started
...
Otherwise we can start making API reqiests which can fail which
can trigger things like the soft logout code.
Fixes https://github.com/vector-im/riot-web/issues/12943
2020-04-07 12:07:41 +01:00
Travis Ralston
2ec7f2290c
Support Jitsi information from client .well-known
...
It can be useful for the homeserver to support a dedicated Jitsi instance instead of requiring that all their users change/update their configs manually.
2020-04-06 16:04:41 -06:00
J. Ryan Stinnett
a0d54bd43a
Clear sessionStorage on sign out
...
The browser's `sessionStorage` is only used for composer history today, but
still we should also clear this on sign out for those on shared computers, etc.
Fixes https://github.com/vector-im/riot-web/issues/13041
2020-04-06 16:40:53 +01:00
Michael Telatynski
a8861f8893
add await for _clearStorage
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-03-22 09:47:00 +00:00
J. Ryan Stinnett
ca28f83841
Report touch input status in rageshakes, analytics
...
This reports whether the device has touch input as a primary input mechanism in
rageshakes and analytics.
For analytics, this replaces the identity server (which ends up being reported
as "<redacted>" by default anyway) because Matomo only supports a limited number
of custom variables.
2020-02-14 17:36:14 +00:00
Michael Telatynski
8d445d54ec
Use embedded piwik caller rather than piwik.js bcuz CSP :D
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-02-13 00:39:28 +00:00
J. Ryan Stinnett
81ee27f41e
Replace device with session in UI text
...
This replaces "device" with "session" throughout user-visible text at the React
layer. Variable names and comments are left as-is for now.
2020-01-29 15:52:32 +00:00
Damir Jelić
cbfde4d78f
Merge branch 'poljar/seshat-filepanel' into develop
2020-01-24 14:44:24 +01:00
Damir Jelić
9978fee512
Lifecycle: Comment why we need to initialize the index before the client.
2020-01-20 10:06:20 +01:00
David Baker
9e43abaf3a
Toasts for new, unverified sessions
...
Fixes https://github.com/vector-im/riot-web/issues/11218
2020-01-17 11:43:35 +00:00
Damir Jelić
7fb3645e94
LifeCycle: Start the event index before the client.
2020-01-17 10:11:21 +01:00
Travis Ralston
042bd35d79
Fix MatrixClientPeg imports
2019-12-22 21:15:54 -07:00
Travis Ralston
d56f0f2a25
Convert many imports to handle ES6 exports
...
Reliant upon https://github.com/matrix-org/matrix-react-sdk/pull/3761
2019-12-22 21:04:42 -07:00
Michael Telatynski
6121420113
Merge branch 'develop' into t3chguy/remove_bluebird
2019-11-20 15:21:23 +00:00
Damir Jelić
44b212bc4c
Merge branch 'poljar/seshat-pr' into develop
2019-11-20 13:33:03 +01:00
Damir Jelić
e9df973c82
EventIndex: Move the event indexing files into a separate folder.
2019-11-19 14:05:00 +01:00
Damir Jelić
979803797f
Lifecycle: Make the clear storage method async.
2019-11-19 14:05:00 +01:00
Michael Telatynski
d4d51dc61f
Rip out the remainder of Bluebird
2019-11-18 10:03:05 +00:00
Damir Jelić
7516f2724a
EventIndexing: Rework the index initialization and deletion.
2019-11-14 16:13:22 +01:00
Damir Jelić
1df28c7526
Fix some lint errors.
2019-11-13 10:30:38 +01:00
Damir Jelić
008554463d
Lifecycle: Move the event index deletion into the clear storage method.
2019-11-13 09:52:59 +01:00
Michael Telatynski
79ebb9091c
Merge branch 'develop' into t3chguy/remove_bluebird_1
2019-11-12 18:16:34 +00:00
Damir Jelić
3502454c61
LifeCycle: Stop the crawler and delete the index when whe log out.
2019-11-12 15:58:38 +01:00
Damir Jelić
cfdcf45ac6
MatrixChat: Move the event indexing logic into separate modules.
2019-11-12 13:29:07 +01:00
Michael Telatynski
217dfc3eed
Replace all trivial Promise.defer usages with regular Promises
...
(cherry picked from commit 44401d73b4
)
2019-11-12 12:07:56 +00:00
Michael Telatynski
548e38cba9
Revert "Replace all trivial Promise.defer usages with regular Promises"
...
This reverts commit 44401d73
2019-11-12 11:56:53 +00:00
Michael Telatynski
168b1b68bb
Revert "s/.done(/.then(/ since modern es6 track unhandled promise exceptions"
...
This reverts commit 09a8fec2
2019-11-12 11:56:21 +00:00
Michael Telatynski
09a8fec261
s/.done(/.then(/ since modern es6 track unhandled promise exceptions
2019-11-12 11:51:23 +00:00
Michael Telatynski
44401d73b4
Replace all trivial Promise.defer usages with regular Promises
2019-11-12 11:40:38 +00:00
Travis Ralston
e9c8a31e1f
Start and stop Mjolnir with the lifecycle
2019-10-31 13:28:00 -06:00
Michael Telatynski
821ad5703f
LifeCycle onLoggedOut unmount before stopping client
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-10-25 16:37:57 +01:00
J. Ryan Stinnett
2880ade45c
Unmount React components before stopping the client
...
This fixes an entire class of React soft crashes that can happen when you:
1. Log out, causing the client peg to become `null`
2. Some async process (event handler, timeout, request, etc.) tries to use the
client in a component before it unmounts, triggering a soft crash
3. Several moments later, the app actually unmounts
With this change, we change the app's view and unmount components first and then
after that we stop the client.
Fixes https://github.com/vector-im/riot-web/issues/11078
2019-10-08 17:10:19 +01:00
Travis Ralston
d97ff8a692
Add debugging for soft logout too
2019-10-02 09:45:53 -06:00
Travis Ralston
74ce5c3541
Read integration managers from account data
...
For https://github.com/vector-im/riot-web/issues/4913 / https://github.com/vector-im/riot-web/issues/10161
Relies on the structure defined by [MSC1957](https://github.com/matrix-org/matrix-doc/pull/1957 )
This is just the bit of code to parse the user's widgets (while watching for changes) and allow for it to be the default manager.
2019-08-09 17:35:59 -06:00
David Baker
bcf53c6e33
Make invite work without an IS
...
Also fix it so you can't try to invite a room ID to a room
2019-08-07 11:41:00 +01:00
David Baker
9ef24352d0
Use options object
2019-08-02 16:44:49 +01:00