Commit Graph

12366 Commits (408eba79152f5a90ef4209987ee509d004786da3)

Author SHA1 Message Date
Bruno Windels 408eba7915 Fix: Presence only comes online when UserActivity interrupted activity 2018-12-11 16:25:48 +01:00
Bruno Windels 2b0c2eff1e Implement 10s in-view/30s out-of-view timeout for moving RM.
Uses Timer & changed UserActivity promise based api
2018-12-11 16:19:22 +01:00
Bruno Windels 7f6d581377 Use Timer & new UserActivity api in Presence.
The only behaviour that should have changed here is that
presence is also set to online when switching back to the
tab/window.

Presence is not set to unavailable when coming back to the window/tab,
as that might be a bit invasive, but only when timing out.
2018-12-11 16:16:00 +01:00
Bruno Windels 6a248c2e72 Timer in UserActivity, change semantics to "user probably looks at app"
Before, UserActivitity emitting actions meant that the user had very recently interaction with their hardware.
Now it means they are likely looking at the app.

You can attach a timer that is aborted when we think the user
stops looking at the page
(or hasn't touched their hardware for 2 minutes).

This works better than the previous approach for larger timeouts,
like the 30s we're about to implement for out-of-view RMs
2018-12-11 15:45:11 +01:00
Bruno Windels 5cd5615b69 Timer class, promise based, so clear/setTimeout doesn't grow unwieldly 2018-12-11 15:43:41 +01:00
Bruno Windels ac9902e52a apply redesign to topunreadmessagebar
with placeholder for message count
2018-12-11 15:43:00 +01:00
Bruno Windels 0212df922a dont render who is typing tile when no room available (like in notif panel) 2018-11-30 13:59:00 +01:00
Bruno Windels 8f4292399b
Merge pull request #2297 from matrix-org/bwindels/roomlistsizingimprovements
Redesign: improve room sub list sizing & persist sizes
2018-11-27 13:40:48 +00:00
Bruno Windels 31902b25b4
Merge pull request #2298 from matrix-org/bwindels/makeroomsettingsusable
Redesign: temp solution to make room settings usable
2018-11-27 11:09:11 +00:00
Bruno Windels 887defda9c temp solution to make room settings usable
make mx_fadable not do anything anymore, and make room settings
full size.

Room settings haven't been designed yet, so all of this will
have a full pass when we have a go at it.
2018-11-26 17:58:51 +01:00
Bruno Windels 0c7d51d70d persist room sub list sizes 2018-11-26 16:46:57 +01:00
Bruno Windels f7a37be6dd support associating an id with a resize item/handle 2018-11-26 16:46:27 +01:00
Bruno Windels 35fc5307b6 remove unneeded params (as we're going to change their meaning) 2018-11-26 16:45:55 +01:00
Bruno Windels dae509d0eb introduce resizeFromContainerOffset method on distributor
up till now, resize received the offset of the resize handle
within the container upon resizing, and would then calculate
it's new size. For this first item in the container, this is
the same, and has therefor not been a problem yet.

Now however, we'll need to be able to programatically
(from localStorage) set the size of any roomsublist,
so need a method we can call with just the size and not an offset
within the container. The resizer calls the new method,
which subsequently calls resize.

This also has the nice side-effect that you can now easily
call super.resize after having transformed the new item size
2018-11-26 16:42:58 +01:00
Bruno Windels 3e496833fc remove unused PercentageDistributor
it's not used and we need to make some
api changes that don't work with it (resize will receive itemSize
which it doesn't really support)
2018-11-26 16:41:49 +01:00
Bruno Windels 257bac2b09 unrelated fix for searchbox being squashed by other roomlist content 2018-11-26 14:50:53 +01:00
Bruno Windels 61d9fe95e9 add 3 flex-shrink categories + make it work with overflow indicators 2018-11-26 14:50:29 +01:00
Bruno Windels 8e77a6716c don't set initial size based on item count anymore 2018-11-26 14:49:30 +01:00
Bruno Windels 8929ff9b5e use room resize classes 2018-11-26 14:42:01 +01:00
Bruno Windels 0939a40d3a adjust room distributor to roomsublist dom structure
also better classes to apply
2018-11-26 14:41:15 +01:00
Bruno Windels 231d8fff6e add new style vars from develop 2018-11-26 13:22:34 +01:00
Bruno Windels 67e0030ccd Merge branch 'develop' into experimental 2018-11-26 13:10:29 +01:00
David Baker 0c6e98548e
Merge pull request #2291 from matrix-org/dbkr/create_key_backup_async
Make create key backup dialog async
2018-11-23 11:19:23 +00:00
David Baker 4f8c4f1c6e Make create key backup dialog async
So we can add zxcvbn to it without inflating the main bundle size
2018-11-23 10:55:18 +00:00
David Baker a9ae7f3eef
Merge pull request #2288 from matrix-org/dbkr/fix_continue_disabled_download
Forgot to enable continue button on download
2018-11-23 07:46:03 +00:00
David Baker d443d6173d Forgot to enable continue button on download 2018-11-22 19:06:58 +00:00
David Baker 43013c65f6 Merge branch 'master' into develop 2018-11-22 16:55:46 +00:00
David Baker 60e22b7e0f v0.14.6 2018-11-22 16:54:53 +00:00
David Baker e27a4af817 Prepare changelog for v0.14.6 2018-11-22 16:54:21 +00:00
David Baker a25ae924b1 js-sdk v0.14.1 2018-11-22 16:49:20 +00:00
David Baker ab40a0b264 Actually add the dialog 2018-11-22 16:39:26 +00:00
David Baker a8db02ff02 Handle crypto db version upgrade
Display a dialog telling the user what the situation is with
options to sign out or continue withwout e2e.

Requires https://github.com/matrix-org/matrix-js-sdk/pull/785
2018-11-22 16:39:20 +00:00
David Baker 23d935fd78 Let's use a version of node we can download rather than dig up 2018-11-21 18:53:18 +00:00
David Baker d714176fcd
Merge pull request #2169 from matrix-org/dbkr/e2e_backups
Online incremental megolm backups (v2)
2018-11-21 18:37:43 +00:00
David Baker b529c98095
Merge pull request #2284 from matrix-org/dbkr/e2e_backups_download_recovery_key
Add recovery key download button
2018-11-21 18:25:33 +00:00
David Baker db26513136
Merge pull request #2283 from matrix-org/dbkr/e2e_backups_passphrase
Passphrase Support for e2e backups
2018-11-21 18:25:09 +00:00
David Baker 3828798099 lint 2018-11-21 18:17:26 +00:00
David Baker 40ef2e0cf4 another missed translation 2018-11-21 18:08:44 +00:00
David Baker 1c06d781ae Missed translation 2018-11-21 18:06:37 +00:00
David Baker 08e2ba8c6c Don't allow enter to submit if field invalid 2018-11-21 18:02:58 +00:00
David Baker 3529482be5
Merge pull request #2286 from matrix-org/dbkr/async_dialog_promises
Update async dialog interface to use promises
2018-11-21 17:48:56 +00:00
David Baker 2ba4d8a2d9 Remove outdated logging & log on failure 2018-11-21 17:35:28 +00:00
David Baker 985966f8be Update async dialog interface to use promises
Hopefully makes the syntax a bit nicer. Also uses ES6 async import
rather than require.ensure which is now deprecated. Also also
displays an error if the component fails to load rather than falling
over in a heap, which is nice.
2018-11-21 16:56:44 +00:00
David Baker ed5d87e797 Add recovery key download button 2018-11-21 13:57:31 +00:00
David Baker 6fe2c9c2bb Merge branch 'dbkr/e2e_backups' into dbkr/e2e_backups_passphrase 2018-11-20 18:10:57 +00:00
David Baker 8ccaf53d20 Merge remote-tracking branch 'origin/develop' into dbkr/e2e_backups 2018-11-20 18:08:39 +00:00
David Baker 63a7ff5273 lint 2018-11-20 16:20:31 +00:00
David Baker 132408cf02 Add e2e backup recovery with passphrase 2018-11-20 16:16:24 +00:00
David Baker fbab8ceeef Passphrase based key backups
Add passphrase support to backup creation stage
2018-11-20 13:11:58 +00:00
David Baker 93cd3b4206 Merge branch 'master' into develop 2018-11-19 15:20:19 +00:00