J. Ryan Stinnett
e87ff54eee
Clean up cross-signing debug panel
2019-12-12 14:27:57 +00:00
J. Ryan Stinnett
4417235d9e
Show whether backup key is stored
2019-12-12 14:06:44 +00:00
J. Ryan Stinnett
d2f2d3b344
Handle cross-singing sigs in key backup details
2019-12-12 13:51:45 +00:00
Travis Ralston
7230d51cca
Merge pull request #3703 from matrix-org/travis/right-panel-v2
...
Refactor RightPanel to match expected behaviour
2019-12-11 10:50:45 -07:00
Travis Ralston
633aa59e6c
Merge pull request #3716 from matrix-org/travis/mjolnir-render
...
Render policy room event updates in the timeline
2019-12-11 10:50:27 -07:00
J. Ryan Stinnett
8cbc9baddd
Add testing flow for new key backups with SSSS
...
This adds a path to test key backups with SSSS via an extra button only visible
when the cross-signing feature is enabled.
2019-12-11 16:32:49 +00:00
J. Ryan Stinnett
66f7600969
Add accessSecretStorage
helper with common flow setup
...
This moves the details of dialogs that may be needed when accessing secret
storage to centralised helper. In addition, this clears the secret storage key
cache so that keys are only live for a single operation.
2019-12-11 15:07:46 +00:00
J. Ryan Stinnett
fae819dfe5
Merge remote-tracking branch 'origin/develop' into jryans/4s-new-key-backup
2019-12-11 10:05:20 +00:00
Michael Telatynski
cb50f5ff5f
Merge pull request #3715 from matrix-org/t3chguy/fix_roomlist_context_menu_regression
...
Fix remaining context menu regressions
2019-12-11 09:36:45 +00:00
Michael Telatynski
c1b1f98201
Merge pull request #3712 from matrix-org/t3chguy/react16_refs
...
Migrate away from React Legacy string refs
2019-12-10 17:43:37 +00:00
Travis Ralston
b6d0308a54
Merge pull request #3706 from matrix-org/travis/dm-copy
...
Update copy for DM invites
2019-12-10 10:19:47 -07:00
Travis Ralston
f529a6c7a2
Render policy room event updates in the timeline
...
Fixes https://github.com/matrix-org/mjolnir/issues/15
This should be completely safe to deploy, even without a labs flag, because policy rooms (ban lists) are usually only joined by the people who know what they are. This also has no relation to the Mjolnir functionality currently in Riot, though it does make seeing your ban list a bit less awkward.
Ban list rules only show up in ban list rooms and rarely show up in public rooms, hence the somewhat vague messaging. It should be obvious that it's a ban list room due to the surrounding room decoration/purpose.
2019-12-09 20:36:00 -07:00
Michael Telatynski
44adda3547
Add right-click context menu to GroupInviteTile.js
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-12-10 00:14:36 +00:00
Michael Telatynski
5c92f8ab25
Fix RoomTile right click context menu
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-12-10 00:08:45 +00:00
Michael Telatynski
52c20db963
Fix chevron offset for toRightOf
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-12-09 23:58:09 +00:00
Michael Telatynski
2691d1a611
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into t3chguy/fix_mab_regression
2019-12-09 14:13:11 +00:00
Michael Telatynski
69eeabd99e
Fix accessibility to the reaction picker (not of it though)
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-12-09 14:12:30 +00:00
Half-Shot
6225e402cc
i18n'ed all over the plaace
2019-12-09 13:54:21 +00:00
Michael Telatynski
cd73162957
Merge branch 'develop' into t3chguy/react16_refs
2019-12-09 13:47:06 +00:00
Michael Telatynski
b1788fb4b5
Merge pull request #3708 from matrix-org/t3chguy/search_accessible_radios
...
Mark the This/All Rooms scope buttons as radios for a11y
2019-12-09 13:43:32 +00:00
Michael Telatynski
21647cf596
Merge pull request #3707 from matrix-org/t3chguy/improve_a11y_reactions_row_button
...
Switch ReactionsRowButton to an AccessibleButton for space/enter handling
2019-12-09 13:43:06 +00:00
Half-Shot
7ee5f7ba38
Add feature flag
2019-12-09 13:28:43 +00:00
Half-Shot
d9943754f7
Remove status
as it's no longer part of the MSC
2019-12-09 13:28:16 +00:00
Will Hunt
ce21ce8bbe
Lint
2019-12-09 13:22:45 +00:00
Half-Shot
9f2ccdf913
Add support for displaying avatars and links in bridge info
2019-12-09 13:22:45 +00:00
Half-Shot
7c35b16f4d
Add bridge tab button
2019-12-09 13:22:45 +00:00
Half-Shot
0d537ecbb3
Add bridge info tab
2019-12-09 13:22:45 +00:00
Michael Telatynski
d22985f12e
Migrate string refs over to createRef
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-12-08 12:16:17 +00:00
Michael Telatynski
4c55f3c5b5
Remove unused refs
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-12-08 12:12:06 +00:00
Michael Telatynski
702a8ff4a9
Change ref handling in TextualBody to prevent it parsing generated nodes
...
Remove unused paths
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-12-08 01:01:19 +00:00
Michael Telatynski
33eff43313
Change the (edited) link to an AccessibleButton for a11y
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-12-07 21:01:21 +00:00
Michael Telatynski
86e52d1ef3
Mark the This/All Rooms scope buttons as radios for a11y
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-12-07 12:45:28 +00:00
Michael Telatynski
680c5c2b27
Switch ReactionsRowButton to an AccessibleButton for space/enter handling
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-12-07 12:20:06 +00:00
Travis Ralston
8d3418dfa9
Update copy for DM invites
...
Fixes https://github.com/vector-im/riot-web/issues/10766
2019-12-06 17:08:24 -07:00
Travis Ralston
4bcf99f65e
Fix member info not opening
...
The subclasses listen for view_user and similar dispatches, which then start up the RightPanel. We weren't registering a listener though because we changed to using the RightPanelStore for most of our logic.
2019-12-06 14:51:49 -07:00
J. Ryan Stinnett
24d6e7e456
Use private key check to provide feedback
2019-12-06 17:54:00 +00:00
Marco Zehe
19e6587548
Add tabIndex to the button to make it keyboard focusable
...
Signed-off-by: Marco Zehe <marcozehe@mailbox.org>
2019-12-06 16:03:19 +01:00
Marco Zehe
78555ed422
Make reaction buttons more accessible
...
Fixes vector-im/riot-web/issues/11608.
This patch:
1. Turns the container of reaction buttons into a toolbar.
2. Makes each button span into a button with a tabindex and an aria-label.
3. Constructs an alternative label that differs slightly from the text displayed by the tool tip:
* It uses the names of the people who reacted.
* It puts a space before the "reacted with" text.
* It uses the actual emoji characters, not the converted colon-delimited shortNames, because the emojis usually tell blind users more about the expression.
* It omits the number of reactions, since that information is already conveyed by the names.
Signed-off-by: Marco Zehe <marcozehe@mailbox.org>
2019-12-06 15:58:28 +01:00
J. Ryan Stinnett
9b9e074d30
Use consistent import style
2019-12-06 14:15:41 +00:00
Travis Ralston
a24bbdffd0
Appease the linter
...
Mid-PR cleanup.
2019-12-05 23:58:19 -07:00
Travis Ralston
756cf3a88b
Convert the GroupMemberList actions to the new RightPanelStore
2019-12-05 23:34:44 -07:00
Travis Ralston
eda712ece8
Update sticker picker handling for new right panel actions
2019-12-05 23:30:26 -07:00
Travis Ralston
ca0c393783
Use new right panel store for header buttons
...
This introduces a new dispatch action (unused, so far) and routes the buttons towards the RightPanelStore for processing.
2019-12-05 23:28:06 -07:00
Travis Ralston
6e882251bd
Break the right panel completely
...
This lays a foundation for redirecting all the traffic through the new store, but for now the core parts of the app need to stop caring if the right panel is open.
2019-12-05 17:47:18 -07:00
J. Ryan Stinnett
d66dbdea61
Indicate which access flow was used
2019-12-05 16:23:00 +00:00
J. Ryan Stinnett
9f1c2cd3e1
Add dialogs for creating and accessing secret storage
...
This adds dialogs for creating and accessing secret storage via a passphrase or
recovery key. These flows are adapted from the ones used for key backup.
2019-12-05 15:34:07 +00:00
David Baker
fc4926600a
Fix propTypes declaration
...
With this version of babel (via babel-eslint), eslint now fails
with a somewhat confusing, "Unexpected reserved type number"
(from the flow plugin...) if you get this wrong.
2019-12-05 10:42:20 +00:00
J. Ryan Stinnett
a7d94ebcaa
Convert RestoreKeyBackupDialog to modern style
2019-12-04 17:23:48 +00:00
Michael Telatynski
be6da03348
Merge pull request #3611 from matrix-org/t3chguy/context_menus
...
ARIA compliant context menus
2019-12-04 17:17:47 +00:00
David Baker
bc52db5423
Merge pull request #3697 from matrix-org/travis/e2e-icons
...
Match e2e icons on events to expectations
2019-12-04 10:33:47 +00:00
David Baker
2058ba8fd9
Merge pull request #3695 from matrix-org/travis/new-upgrade-dialog
...
Match room upgrade warning to the new design
2019-12-04 10:17:33 +00:00
Travis Ralston
b4e60af61f
Appease the linter and de-dupe code
2019-12-03 23:15:49 -07:00
Travis Ralston
33044d713e
Match e2e icons on events to expectations
...
Fixes https://github.com/vector-im/riot-web/issues/11547
Steps taken:
* Convert `E2ePadlock` to a class-style component so the hover state can be tracked (tooltips).
* Convert the image mask to a background image to keep the `!` in the shield.
* Update copy.
2019-12-03 22:41:22 -07:00
Michael Telatynski
d3de792f79
fix bits which missed the review cutting block
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-12-03 10:53:32 +00:00
David Baker
910c50370b
Merge pull request #3678 from matrix-org/dbkr/remove_dead_velocity_ui
...
Remove broken velocity-ui animation
2019-12-03 10:38:40 +00:00
Travis Ralston
6d42da8160
Actually spawn a bug report dialog.
2019-12-02 17:26:08 -07:00
Travis Ralston
0d63a2bea1
Merge pull request #3685 from aaronraimist/edit-message-remove-btn
...
Hide Remove button in message editing history if you don't have permission to redact
2019-12-02 17:22:01 -07:00
Travis Ralston
e47752ff8d
Match room upgrade warning to the new design
...
See https://github.com/matrix-org/matrix-react-sdk/pull/3684#issuecomment-560514872
2019-12-02 17:21:53 -07:00
Travis Ralston
4d5f133b17
Merge pull request #3684 from matrix-org/travis/auto-invite-upgrades
...
Add an option to invite users to upgraded private rooms
2019-12-02 17:03:25 -07:00
Michael Telatynski
901e402a5c
apply renames suggested in PR review
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-12-02 23:23:11 +00:00
Michael Telatynski
757f811126
s/ContextualMenu/ContextMenu/
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-12-02 23:21:59 +00:00
Michael Telatynski
a062fe0096
Merge branches 'develop' and 't3chguy/context_menus' of github.com:matrix-org/matrix-react-sdk into t3chguy/context_menus
2019-12-02 23:20:47 +00:00
J. Ryan Stinnett
139e19630a
Watch for account data changes in debug panel
2019-12-02 14:34:32 +00:00
J. Ryan Stinnett
c21c0e1150
Add error to debug panel
2019-12-02 14:22:47 +00:00
Michael Telatynski
7a3b8a522f
Make EmojiPicker filtering case-insensitive
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-12-02 10:18:02 +00:00
Michael Telatynski
e2733a27c4
add null-guard
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-12-02 10:06:58 +00:00
J. Ryan Stinnett
798d5c8ada
Always update cross-signing status even if error
2019-11-29 17:53:39 +00:00
J. Ryan Stinnett
c32c1d201c
Rename device signing auth param
2019-11-29 17:49:51 +00:00
J. Ryan Stinnett
6140803b7f
Fix key upload auth to test confirmation
2019-11-29 17:43:24 +00:00
Travis Ralston
9cae685e22
Merge pull request #3686 from matrix-org/travis/theme-fix
...
Ensure the settings page accurately represents theme choices
2019-11-29 10:17:55 -07:00
J. Ryan Stinnett
a21285143f
Add tbody to silence React warning
2019-11-29 11:55:36 +00:00
J. Ryan Stinnett
c6e56d98b3
Merge remote-tracking branch 'origin/develop' into jryans/4s-new-key-backup
2019-11-29 11:31:23 +00:00
J. Ryan Stinnett
c103fe4273
Add cross-signing diagnostic panel
...
This is not part of any designs, so it may be short-lived, but it's quite handy
for diagnosing issues with cross-signing at least while the feature is in
development.
2019-11-29 11:29:08 +00:00
Travis Ralston
5aad914c25
Merge pull request #3675 from aaronraimist/labs-explain
...
Add a link to the labs feature documentation
2019-11-28 22:07:47 -07:00
Aaron Raimist
4c50ac0e56
Improve wording
...
Signed-off-by: Aaron Raimist <aaron@raim.ist>
2019-11-28 22:22:42 -06:00
Michael Telatynski
29b59dde5b
undo unrelated change
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-11-28 20:44:08 +00:00
Travis Ralston
37ec7e6f7e
Ensure the settings page accurately represents theme choices
...
Fixes https://github.com/vector-im/riot-web/issues/11518
This also fixes a bug where the the theme logic can incorrectly get stuck in the light theme - the ThemeController was overriding *all* values, not just supposed themes. Null values aren't overridden so that the various theme logic bits don't assume the user has chosen the light theme explicitly.
2019-11-28 13:40:28 -07:00
Michael Telatynski
811454462d
fix Stickerpicker and MessageContextMenu
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-11-28 20:38:58 +00:00
Michael Telatynski
3847996b5b
transition Tooltips over to deprecated code
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-11-28 20:26:09 +00:00
Michael Telatynski
6c5b777a77
Consolidate all except tooltips
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-11-28 18:16:59 +00:00
Michael Telatynski
5a540f5949
Migrate MemberStatusMessageAvatar over to new Context Menus
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-11-28 16:40:45 +00:00
Michael Telatynski
6d69ec17d9
Merge branches 'develop' and 't3chguy/context_menus' of github.com:matrix-org/matrix-react-sdk into t3chguy/context_menus
...
Conflicts:
src/components/views/context_menus/RoomTileContextMenu.js
2019-11-28 16:25:59 +00:00
Travis Ralston
90a1cb68eb
Merge pull request #3681 from matrix-org/travis/fix-jitsi
...
Fix persisted widgets getting stuck at loading screens
2019-11-28 09:06:44 -07:00
Aaron Raimist
1bb55d4fa1
Hide Remove button in message editing history if you don't have permission to redact
...
Signed-off-by: Aaron Raimist <aaron@raim.ist>
2019-11-27 22:30:39 -06:00
Travis Ralston
f020929345
Add an option to invite users to upgraded private rooms
...
The option doesn't show up on public room upgrades.
2019-11-27 20:29:11 -07:00
Travis Ralston
96ffe94876
Merge remote-tracking branch 'origin/develop' into t3chguy/clear_notifications
2019-11-27 19:27:52 -07:00
Travis Ralston
7b013ecc69
Fix persisted widgets getting stuck at loading screens
...
The widget itself is rendered underneath the loading screen, so we just have to disable the loading state.
This commit also removes the "is" attribute because React 16 includes unknown attributes: https://reactjs.org/blog/2017/09/08/dom-attributes-in-react-16.html
Fixes https://github.com/vector-im/riot-web/issues/11536
2019-11-27 12:54:31 -07:00
Travis Ralston
fbba55ab05
Merge pull request #3670 from matrix-org/travis/toggle-communities
...
Make the communities button behave more like a toggle
2019-11-27 07:52:05 -07:00
David Baker
c9b972116a
Remove broken velocity-ui animation
...
The deactivate account dialog tried to shake the password box on
an incorrect password but it didn't work because we don't import
velocity-ui anywhere. Looks like we forgot to import it in
DeactivateAccountDialog.js and were relying on it being imported
elsewhere (so probably broke when BottomLeftMenu got removed).
Either way, we no longer use the field-shake animation anywhere else,
so just remove it.
2019-11-27 11:47:57 +00:00
Aaron Raimist
98c47265c9
Fix indentation
...
Signed-off-by: Aaron Raimist <aaron@raim.ist>
2019-11-26 15:01:02 -06:00
Aaron Raimist
7905e6cc3b
Add a link to the labs feature documentation
...
Signed-off-by: Aaron Raimist <aaron@raim.ist>
2019-11-26 14:31:48 -06:00
Travis Ralston
9f1df0ce8f
Merge pull request #3669 from matrix-org/travis/breadcrumb-upgrades
...
Update breadcrumbs when we do eventually see upgraded rooms
2019-11-26 10:33:07 -07:00
Matthew Hodgson
9f455fae4b
Merge branch 'develop' into matthew/fix_logging
2019-11-26 10:19:48 +00:00
Matthew Hodgson
9fd45d1f14
console.log doesn't take %s substitutions
2019-11-26 01:14:03 +00:00
Travis Ralston
1ff39f2524
Make the communities button behave more like a toggle
...
Fixes https://github.com/vector-im/riot-web/issues/10771
Clicking the button should toggle between your last page (room in our case) and the communities stuff.
2019-11-25 16:51:48 -07:00
Travis Ralston
9df227dbd0
Update breadcrumbs when we do eventually see upgraded rooms
...
Fixes https://github.com/vector-im/riot-web/issues/11469
2019-11-25 16:21:09 -07:00
Travis Ralston
98693d2dbc
Merge pull request #3665 from matrix-org/travis/fix-flashing
...
Hide tooltips with CSS when they aren't visible
2019-11-25 09:13:43 -07:00
Bruno Windels
422ab81185
a11y adjustments for toasts
2019-11-25 12:31:57 +01:00
Travis Ralston
11fec80370
Hide tooltips with CSS when they aren't visible
...
Fixes https://github.com/vector-im/riot-web/issues/11456
2019-11-24 20:52:22 -07:00
David Baker
aae3150383
Null check on thumbnail_file
2019-11-22 16:50:32 +00:00
Bruno Windels
4a684d01a4
Merge pull request #3661 from matrix-org/bwindels/verif-toasts
...
Show incoming verification requests in in-app notifications
2019-11-22 16:39:18 +00:00
Bruno Windels
309633181d
use FormButton in verification request tile too and dedupe styles
2019-11-22 16:32:50 +01:00
Bruno Windels
0dfb0f5468
fix lint
2019-11-22 16:25:30 +01:00
Bruno Windels
c705752317
add toast for verification requests
...
this uses a verification requests as emitted by the js-sdk with
the `crypto.verification.request` rather than a verifier as emitted
by `crypto.verification.start` as this works for both to_device and
timeline events with the changes made in the js-sdk pr.
2019-11-22 16:08:27 +01:00
Bruno Windels
66cc68bae4
add new-styled button
...
might merge it later on with accessible button
2019-11-22 16:04:51 +01:00
David Baker
b239fde32d
Workaround for soft-crash with calls on startup
...
Fixes https://github.com/vector-im/riot-web/issues/11458
2019-11-21 17:31:57 +00:00
Travis Ralston
72f0401589
Merge branch 'develop' into jryans/4s-new-key-backup
2019-11-21 10:22:13 -07:00
Travis Ralston
9d5f3ce32d
Merge pull request #3650 from matrix-org/travis/widget-integration-copy
...
Rename section heading for integrations in settings
2019-11-21 10:13:59 -07:00
Travis Ralston
a55e5f7759
Update copy for widgets not using message encryption
...
Misc design update
2019-11-21 09:12:07 -07:00
Travis Ralston
f7f22444e8
Rename section heading for integrations in settings
...
Misc design update
2019-11-21 09:03:07 -07:00
Travis Ralston
6597e0bd42
Merge pull request #3646 from matrix-org/travis/integration-manager-opt
...
Add an option to disable the use of integration managers for provisioning
2019-11-21 08:10:56 -07:00
Travis Ralston
86783e4439
Merge pull request #3645 from matrix-org/travis/widget-menu
...
Move many widget options to a context menu
2019-11-21 08:10:28 -07:00
Travis Ralston
5d612bb370
Merge pull request #3644 from matrix-org/travis/widget-encryption
...
Re-add encryption warning to widget permission prompt
2019-11-21 08:04:56 -07:00
Michael Telatynski
d3f872bf7a
Merge branches 'develop' and 't3chguy/remove_bluebird' of github.com:matrix-org/matrix-react-sdk into t3chguy/remove_bluebird
2019-11-21 11:15:32 +00:00
Travis Ralston
670c14b2e3
Circumvent the linter
2019-11-20 20:54:21 -07:00
Travis Ralston
a69d818a0d
Our linter is seriously picky.
2019-11-20 20:49:41 -07:00
Travis Ralston
560c0afae3
Appease the linter
2019-11-20 20:45:16 -07:00
Travis Ralston
94fed922cf
Intercept cases of disabled/no integration managers
...
We already intercepted most of the cases where no integration manager was present, though there was a bug in many components where openAll() would be called regardless of an integration manager being available.
The integration manager being disabled by the user is handled in the IntegrationManager classes rather than on click because we have quite a few calls to these functions. The StickerPicker is an exception because it does slightly different behaviour.
This also removes the old "no integration manager configured" state from the IntegrationManager component as it is now replaced by a dialog.
2019-11-20 20:40:39 -07:00
Travis Ralston
81c9bdd9f3
It's called an "Integration Manager" (singular)
...
Fixes https://github.com/vector-im/riot-web/issues/11256
This was finally annoying me enough to fix it.
2019-11-20 20:14:25 -07:00
Travis Ralston
3391cc0d90
Add the toggle switch for provisioning
2019-11-20 20:05:32 -07:00
Travis Ralston
0a0e952691
Update integration manager copy
2019-11-20 19:53:52 -07:00
Travis Ralston
b0eb54541c
Rip out options to change your integration manager
...
We are not supporting this due to the complexity involved in switching integration managers. We still support custom ones under the hood, just not to the common user. A later sprint on integrations will consider re-adding the option alongside fixing the various bugs out there.
2019-11-20 19:50:13 -07:00
Travis Ralston
fd12eb28e7
Move many widget options to a context menu
...
Part of https://github.com/vector-im/riot-web/issues/11262
2019-11-20 19:17:42 -07:00
bkil
a40194194d
ReactionsRowButtonTooltip: fix null dereference if emoji owner left room
...
Signed-off-by: bkil <b.K.il.h.u+tigbuh@gmail.com>
2019-11-21 01:50:18 +01:00
Travis Ralston
62a2c7a51a
Re-add encryption warning to widget permission prompt
2019-11-20 16:26:06 -07:00
Travis Ralston
8abc0953d5
Remove the import my IDE should have removed for me
2019-11-20 11:08:53 -07:00
Travis Ralston
93e4de9861
Fix positioning and sizing of e2e icon in the composer
...
This also removes the special case class for the composer because the input is now aligned regardless of icon.
2019-11-20 11:00:39 -07:00
J. Ryan Stinnett
e6dea37693
Add hidden button for bootstrapping SSSS
...
This adds an testing button to the key backup panel which bootstraps the Secure
Secret Storage system (and also cross-signing keys).
Fixes https://github.com/vector-im/riot-web/issues/11212
2019-11-20 17:56:44 +00:00
Travis Ralston
1c1b8cf6b9
Merge pull request #3630 from matrix-org/travis/widget-permission
...
Wire up the widget permission prompt to the cross-platform setting
2019-11-20 10:37:51 -07:00
David Baker
a744415221
Add hack to work around mystery settings bug
2019-11-20 15:34:32 +00:00
Michael Telatynski
6121420113
Merge branch 'develop' into t3chguy/remove_bluebird
2019-11-20 15:21:23 +00:00
David Baker
71f5c8b2b0
Lint
2019-11-20 13:47:54 +00:00
David Baker
5a700b518a
Get theme automatically from system setting
...
Uses CSS `prefers-color-scheme` to get the user's preferred colour
scheme. Also bundles up some theme logic into its own class.
2019-11-20 13:41:06 +00:00
David Baker
a31d222570
Add catch handler for theme setting
2019-11-19 23:00:54 +00:00
David Baker
80ee68a42f
Use a settings watcher to set the theme
...
Rather than listening for account data updates manually
2019-11-19 22:36:55 +00:00
J. Ryan Stinnett
9dea848927
Use div around buttons to fix React warning
2019-11-19 16:28:49 +00:00
Travis Ralston
5b6ace2558
Appease the linter
2019-11-18 18:02:47 -07:00
Travis Ralston
b185eed462
Wire up the widget permission prompt to the cross-platform setting
...
This doesn't have any backwards compatibility with anyone who has already clicked "Allow". We kinda want everyone to read the new prompt, so what better way to do it than effectively revoke all widget permissions?
Part of https://github.com/vector-im/riot-web/issues/11262
2019-11-18 17:56:33 -07:00
Travis Ralston
f5ec9eb8f4
Ensure widgets always have a sender associated with them
...
Fixes https://github.com/vector-im/riot-web/issues/11419
2019-11-18 13:16:36 -07:00
J. Ryan Stinnett
cf26f14644
Switch to function properties to avoid manual binding in KeyBackupPanel
2019-11-18 17:43:34 +00:00
Michael Telatynski
5c172a383d
Merge branch 't3chguy/remove_bluebird_2' of https://github.com/matrix-org/matrix-react-sdk into t3chguy/remove_bluebird
...
Conflicts:
src/components/views/right_panel/UserInfo.js
2019-11-18 10:36:43 +00:00
Michael Telatynski
d4d51dc61f
Rip out the remainder of Bluebird
2019-11-18 10:03:05 +00:00
Travis Ralston
6b726a8e13
Implement the bulk of the new widget permission prompt design
...
Part 1 of https://github.com/vector-im/riot-web/issues/11262
This is all the visual changes - the actual wiring of the UI to the right places is for another PR (though this PR still works independently).
The help icon is known to be weird here - it's a bug in the svg we have. The tooltip also goes right instead of up because making the tooltip go up is not easy work for this PR - maybe a future one if we *really* want it to go up.
2019-11-15 14:26:16 -07:00
Travis Ralston
616a5ab55d
Merge branch 'develop' into travis/deactivate-2
2019-11-15 10:24:20 -07:00
Bruno Windels
0f39a9f72d
fix pr feedback
2019-11-15 17:29:38 +01:00
Bruno Windels
d416ba2c0c
add verify button while we don't have the verification in right panel
2019-11-15 16:14:18 +01:00
Bruno Windels
3a399e18fc
prevent https://github.com/vector-im/riot-web/issues/11338
2019-11-15 16:14:18 +01:00
Bruno Windels
53019c5e91
don't show devices section when not encrypted, as it just shows spinner
2019-11-15 16:14:18 +01:00
Bruno Windels
92237f1045
cleanup
2019-11-15 16:14:18 +01:00
Bruno Windels
264c8181c2
add canEdit to permission state, more explicit than maxLevel >= 0
2019-11-15 16:14:18 +01:00
Bruno Windels
48b1207c6e
split up PowerLevelEditor into two components
...
one while editing (PowerLevelEditor) and one
while not editing (PowerLevelSection).
Also save when pressing the button, not when changing the
power dropdown.
Also show the spinner next to the dropdown when saving,
not at the bottom of the component.
2019-11-15 16:14:18 +01:00
Bruno Windels
e86ceb986f
pass powerlevels state to power level section and admin section
2019-11-15 16:14:18 +01:00
Bruno Windels
bd853b3102
listen for RoomState.members instead of RoomState.events
...
as the powerlevel on the member is not yet updated at the time
RoomState.events is emitted.
Also listen on the client for this event as the currentState
object can change when the timeline is reset.
2019-11-15 16:14:18 +01:00
Bruno Windels
6db162a3a7
add PL edit mode, don't show selector by default
...
still saves when changing the selector though
2019-11-15 16:14:18 +01:00
Bruno Windels
d0914f9208
allow label to be empty on power selector
2019-11-15 16:14:18 +01:00
Bruno Windels
b278531f2f
add IconButton as in design
2019-11-15 16:14:18 +01:00
Bruno Windels
ca12e6c010
don't render unverified state on bubbles
...
as they are only used for verification right now,
and verification events will be unverified by definition,
so no need to alarm users needlessly.
Also, this breaks the bubble layout on hover due to e2e icons
and verified left border style.
2019-11-15 16:14:18 +01:00
Bruno Windels
9e8a2eda1f
small fixes
2019-11-15 16:14:18 +01:00
Bruno Windels
030827f77d
mark destructive actions in red
2019-11-15 16:14:18 +01:00
Bruno Windels
0bd1e7112d
style security section as per design
2019-11-15 16:14:18 +01:00
Bruno Windels
04731d0ae3
RoomState.events fired on RoomState object, not room
2019-11-15 16:14:18 +01:00
Bruno Windels
6afeeddb36
hide verified devices by default with expand button
2019-11-15 16:14:18 +01:00
Bruno Windels
4a1dc55673
fixup: rearrange openDMForUser
2019-11-15 16:14:18 +01:00
Bruno Windels
e32a948d5d
add "unverify user" action to user info
2019-11-15 16:14:18 +01:00
Bruno Windels
29216ef668
update when room encryption is turned on
...
also don't download devices as long as room is not encrypted
2019-11-15 16:14:18 +01:00
Bruno Windels
bd2bf4500a
remove direct message list from UserInfo
2019-11-15 16:14:18 +01:00
Bruno Windels
238555f4ec
fixup: isMe
2019-11-15 16:14:18 +01:00
Bruno Windels
8dd7d8e5c0
fixup: don't consider left DM rooms
2019-11-15 16:14:18 +01:00
Bruno Windels
b475bc9e91
Add direct message button
...
While we don't have canonical DMs yet,
it takes you to the most recently active DM room
2019-11-15 16:14:18 +01:00
Bruno Windels
3e356756aa
style profile info
2019-11-15 16:14:18 +01:00
Bruno Windels
f4988392f9
restyle e2e icons
2019-11-15 16:14:18 +01:00
Bruno Windels
af4ad488bd
Restyle Avatar
...
Make it a circle with the profile picture centered,
with a max height/width of 30vh
2019-11-15 16:14:18 +01:00
Travis Ralston
b05dabe2b7
Add better error handling to Synapse user deactivation
...
Also clearly flag it as a Synapse user deactivation in the analytics, so we don't get confused.
Fixes https://github.com/vector-im/riot-web/issues/10986
2019-11-14 12:02:43 -07:00
Michael Telatynski
5c24547ef5
re-add and actually use promise timeout util
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-11-14 09:37:26 +00:00
Michael Telatynski
79ebb9091c
Merge branch 'develop' into t3chguy/remove_bluebird_1
2019-11-12 18:16:34 +00:00
Travis Ralston
6d0b388fa2
Merge branch 'develop' into travis/mjolnir
2019-11-12 10:00:01 -07:00
Michael Telatynski
b73d0ca92a
delint and run i18n
2019-11-12 12:37:47 +00:00
Michael Telatynski
f5d467b391
delint
2019-11-12 12:26:07 +00:00
Michael Telatynski
2b34cf4362
Replace Promise.delay with promise utils sleep
...
(cherry picked from commit 0a21957b2c
)
2019-11-12 12:07:56 +00: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
f9d6ed63f0
Revert "Replace Promise.delay with promise utils sleep"
...
This reverts commit 0a21957b
2019-11-12 11:56:32 +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
0a21957b2c
Replace Promise.delay with promise utils sleep
2019-11-12 11:46:58 +00:00
Michael Telatynski
44401d73b4
Replace all trivial Promise.defer usages with regular Promises
2019-11-12 11:40:38 +00:00
Michael Telatynski
2eddb6ca01
DRY context menu placement algorithms
2019-11-12 11:24:14 +00:00
Michael Telatynski
1c4d89f2d7
Migrate all standard Context Menus over to new custom framework
2019-11-11 17:53:17 +00:00
Travis Ralston
df1d5055c0
Merge pull request #3606 from matrix-org/travis/edit-history
...
Use a ternary operator instead of relying on AND semantics in EditHistoryDialog
2019-11-11 08:24:07 -07:00
Travis Ralston
bdcf3890a5
Fix HTML fallback in replies
...
Correctly encode the `body` to avoid problems down the line. We also convert newlines to `<br/>` to better represent the message as a fallback.
Fixes https://github.com/vector-im/riot-web/issues/9413
2019-11-08 16:07:11 -07:00
Travis Ralston
c4d45e87ea
Use a ternary operator instead of relying on AND semantics in EditHIstoryDialog
...
Fixes https://github.com/vector-im/riot-web/issues/11334 (probably).
`allEvents` should never have a boolean in it, so given the stack trace and the code this is my best estimate for what the problem could be. I can't reproduce the problem.
2019-11-08 15:54:48 -07:00
Travis Ralston
5a5ebee918
Check for a message type before assuming it is a room message
...
Redacted messages do not have message types, despite being room messages.
Fixes https://github.com/vector-im/riot-web/issues/11352
Regressed in https://github.com/matrix-org/matrix-react-sdk/pull/3601
Click-to-ping being broken (as mentioned by https://github.com/vector-im/riot-web/issues/11353 ) is a side effect of the react stack falling over. Once one room crashes, click-to-ping is broken everywhere.
2019-11-08 10:39:38 -07:00
David Baker
43c6298bea
Merge pull request #3601 from matrix-org/bwindels/verification-over-dm
...
Show verification requests in the timeline
2019-11-08 16:20:01 +00:00
J. Ryan Stinnett
3645e4a822
Merge pull request #3600 from matrix-org/jryans/thumb-variation-again
...
Restore thumbs after variation selector removal
2019-11-07 22:47:15 +02:00
Bruno Windels
d83f3632f6
make the linter happy
2019-11-07 20:04:36 +01:00
Bruno Windels
805c83779a
support bubble tile style for verification tiles
2019-11-07 19:56:21 +01:00
Bruno Windels
d7f5252f9a
render done and cancel event as conclusion tile
...
don't render any done events not sent by us, as
done events are sent by both parties and we don't want
to render two conclusion tiles.
cancel events should be only sent by one party.
2019-11-07 19:55:18 +01:00
Bruno Windels
9d67fa9fa1
render verification request with correct tile
...
only if the request was send by or to us, otherwise ignore.
2019-11-07 19:55:18 +01:00
Bruno Windels
e8c21a341c
add key verification conclusion tile
2019-11-07 19:54:56 +01:00
Bruno Windels
0d2f9c4215
add verification request tile + styling
2019-11-07 19:54:56 +01:00
Bruno Windels
5c9e80a0ba
add feature flag and send verification using DM from dialog if enabled
2019-11-07 19:54:56 +01:00
J. Ryan Stinnett
3d1a1121b9
Restore thumbs after variation selector removal
...
This more thorough change adjusts emoji processing to deal with variation
selectors appropriately and revives the missing thumbs.
Regressed by https://github.com/matrix-org/matrix-react-sdk/pull/3598
Fixes https://github.com/vector-im/riot-web/issues/11344
2019-11-07 17:49:25 +00:00
Marco Zehe
ec2f3d36ea
Fix breadcrumbs so the bar is a toolbar and the buttons are buttons.
...
Signed-off-by: Marco Zehe <marco.zehe@gmail.com>
2019-11-07 14:41:01 +01:00
J. Ryan Stinnett
6cd2b55c23
Merge pull request #3598 from matrix-org/jryans/rm-variation-sels
...
Remove variation selectors from quick reactions
2019-11-07 12:34:11 +02:00
J. Ryan Stinnett
91f3b75d41
Remove variation selectors from quick reactions
...
This fixes a regression introduced by the full emoji picker which inserted empty
variation selectors in the thumbs up / down quick reactions. Since this makes
them different characters, it would cause us to not aggregate thumbs from web
vs. mobile together.
Regressed by https://github.com/matrix-org/matrix-react-sdk/pull/3554
Fixes https://github.com/vector-im/riot-web/issues/11335
2019-11-07 10:19:35 +00:00
Travis Ralston
86be607e92
onTileUpdate -> onMessageAllowed
...
We keep onTileUpdate in MessgeEvent because it's a generic thing for the class to handle. onMessageAllowed is slightly different than onShowAllowed because "show allowed" doesn't quite make sense on its own, imo.
2019-11-06 10:52:00 -07:00
sha-265
bc924bbd82
Support RTL language in message composer
2019-11-04 17:37:36 +00:00
Michael Telatynski
92ee50fb77
Merge pull request #3587 from matrix-org/t3chguy/a11y_message_actions_bar
...
Improve A11Y of timeline. Show timestamp & Actions on focus-within
2019-11-04 10:33:16 +00:00
Michael Telatynski
6d3b563119
Add comments regarding tab-index=-1
2019-11-04 10:16:16 +00:00
J. Ryan Stinnett
dd5702fc40
Merge pull request #3582 from matrix-org/jryans/prompt-when-no-terms
...
Add a prompt when interacting with an identity server without terms
2019-11-01 19:01:54 +02:00
Michael Telatynski
fd4cdd0dec
Improve A11Y of timeline. Show TS & Actions on focus-within
2019-11-01 10:50:58 +00:00
Travis Ralston
3e4a721111
Appease the linter
2019-10-31 16:27:45 -06:00
Travis Ralston
11068d189c
Hide messages blocked by ban lists
2019-10-31 16:19:42 -06:00
Travis Ralston
b420fd6758
Add a view rules dialog
2019-10-31 16:00:31 -06:00
Travis Ralston
39b657ce7c
Add basic structure for (un)subscribing from lists
2019-10-31 15:54:22 -06:00
Travis Ralston
b93508728a
Add personal list management to Mjolnir section
2019-10-31 14:24:51 -06:00
Travis Ralston
23383419e8
Add settings base for Mjolnir rules
2019-10-31 13:20:18 -06:00
J. Ryan Stinnett
57013f0523
Merge pull request #3583 from matrix-org/jryans/refine-submit-url
...
Guard against misconfigured homeservers when adding / binding phone numbers
2019-10-31 17:23:14 +02:00
J. Ryan Stinnett
b38c7fc411
Guard against misconfigured homeservers when adding / binding phone numbers
...
This ensures we only fallback to submitting MSISDN tokens to the identity server
when we expect to do. Unexpected cases will now throw an error.
Fixes https://github.com/vector-im/riot-web/issues/10936
2019-10-31 14:50:21 +00:00
Michael Telatynski
bc263fa4bb
Merge pull request #3580 from matrix-org/t3chguy/better_slash_command_errors_unknown
...
Fix error message which is shown when unknown slash command attempted
2019-10-31 13:26:43 +00:00
J. Ryan Stinnett
0fc5108817
Add a prompt when interacting with an identity server without terms
...
This adds a prompt whenever we are about to perform some action on a default identity
server (from homeserver .well-known or Riot app config) without terms. This
allows the user to abort or trust the server (storing it in account data).
Fixes https://github.com/vector-im/riot-web/issues/10557
2019-10-31 13:13:13 +00:00
Michael Telatynski
ffb6054eac
Attempt to fix soft crash on some pinned events by null guarding member
2019-10-31 11:21:58 +00:00
Michael Telatynski
178accae19
Fix error message which is shown when unknown slash command attempted
2019-10-31 10:49:24 +00:00
Michael Telatynski
fa811f99de
Merge hide-to-tray-icon with show-tray-icon
2019-10-30 14:32:27 +00:00
Michael Telatynski
46e7e1e81a
Merge branches 'develop' and 't3chguy/hide_tray_icon' of https://github.com/matrix-org/matrix-react-sdk into t3chguy/hide_tray_icon
2019-10-30 14:15:09 +00:00
Travis Ralston
e46976be72
Match widgets up with their integration manager
2019-10-29 11:49:15 -06:00
J. Ryan Stinnett
cbd25ab1a8
Merge pull request #3575 from matrix-org/jryans/log-event-wo-id
...
Add diagnostic log to catch events without an ID
2019-10-29 19:37:33 +02:00
J. Ryan Stinnett
3775dc0943
Add diagnostic log to catch events without an ID
...
This adds some temporary logging to investigate
https://github.com/vector-im/riot-web/issues/11120 .
2019-10-29 17:32:22 +00:00
Michael Telatynski
98096d206b
Fix missing i18n for RoomTile ARIA labels and +a case for notif-off bold
2019-10-29 16:34:56 +00:00
Michael Telatynski
cd37ffcef2
Add ability to hide tray icon on non-Mac (which has no tray icon)
2019-10-29 11:37:41 +00:00
J. Ryan Stinnett
e3a55508d9
Remove unneeded help about identity servers
...
The custom server path no longer shows an identity server field (for modern
homeservers), so it's confusing to have the help dialog reference it.
Part of https://github.com/vector-im/riot-web/issues/11236
2019-10-28 15:38:28 +00:00
J. Ryan Stinnett
99fa100b92
Tweak identity server warning text
2019-10-28 14:23:11 +00:00
J. Ryan Stinnett
88d0ae0572
Remove messages implying you need an identity server for email recovery
...
This tweaks logic that shows some warning messages saying you need an identity
server for email recovery. Assuming you have a modern homeserver, no identity
server is need for these activities, so the warnings were confusing.
Fixes https://github.com/vector-im/riot-web/issues/11100
2019-10-28 14:13:24 +00:00
Bruno Windels
ea24b8bd58
pass heightBefore, scrollTop and viewportHeight to Category
...
to support having multiple LazyRenderLists in one viewport
2019-10-24 17:57:48 +02:00
Bruno Windels
00b1816986
use LazyRenderList in emoji picker Category
2019-10-24 17:56:26 +02:00
Bruno Windels
3e360c156a
bring LazyRenderList up to React 16 standards, cleanup & docs
2019-10-24 17:56:26 +02:00
Travis Ralston
71c5b7959c
Merge pull request #3564 from matrix-org/travis/fix-matrix.org
...
Update ServerTypeSelector for new matrix.org CS API URL
2019-10-24 09:03:44 -06:00
Travis Ralston
157d5a0130
Update ServerTypeSelector for new matrix.org CS API URL
...
This was missed in https://github.com/vector-im/riot-web/pull/11112 and causes problems where matrix.org isn't pre-selected.
2019-10-23 13:13:32 -06:00
Michael Telatynski
2e6899be93
Improve Accessibility of the new Emoji picker
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-10-23 18:39:39 +01:00
Michael Telatynski
3ee43dc2eb
correct EmojiPicker.ReactionPicker reactions PropType validity
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-10-23 18:38:43 +01:00
Michael Telatynski
9c63be7dc4
Remove wrapping div around RoomList to fix regression with scrollbars
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-10-23 18:32:14 +01:00
Michael Telatynski
bc639312ec
delint
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-10-23 18:32:12 +01:00
Michael Telatynski
8d9dc195d5
Make ARIA happier with DateSeparator and tidy ELS
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-10-23 18:32:10 +01:00
Michael Telatynski
c6023ca461
Gen i18n
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-10-23 12:29:53 +01:00
Michael Telatynski
4dd0f6d902
Make breadcrumbs more accessible
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-10-23 12:12:54 +01:00
Michael Telatynski
93ecc9839b
Fix linty failures
2019-10-22 13:49:02 +01:00
Michael Telatynski
e7f292794c
Merge pull request #3556 from matrix-org/t3chguy/a11y4
...
Use Navigation Treeview pattern for RoomList Accessibility
2019-10-22 13:42:08 +01:00
Michael Telatynski
c5d5cd72bc
Merge pull request #3465 from matrix-org/t3chguy/nvl/userinfo
...
UserInfo consolidation of GroupMemberInfo and MemberInfo panels
2019-10-21 15:50:08 +01:00
Matthew Hodgson
e632b520f2
Merge pull request #3554 from maunium/emoji-picker
...
Add full emoji picker for reactions
2019-10-20 11:21:24 +01:00
Tulir Asokan
b2deb548d3
Translate search button titles
...
Signed-off-by: Tulir Asokan <tulir@maunium.net>
2019-10-20 12:41:16 +03:00
Tulir Asokan
438ad54701
Remove space between emojis in picker
...
Signed-off-by: Tulir Asokan <tulir@maunium.net>
2019-10-20 12:31:28 +03:00
Tulir Asokan
10732e8e73
Fix license headers
...
Signed-off-by: Tulir Asokan <tulir@maunium.net>
2019-10-20 12:31:21 +03:00
Tulir Asokan
be829980f6
Split inline SVGs to their own files
...
Signed-off-by: Tulir Asokan <tulir@maunium.net>
2019-10-20 12:13:32 +03:00
Michael Telatynski
02f8b18346
Merge branch 't3chguy/nvl/userinfo' of https://github.com/matrix-org/matrix-react-sdk into t3chguy/nvl/userinfo
...
Conflicts:
src/components/views/right_panel/UserInfo.js
2019-10-19 16:42:00 +01:00
Michael Telatynski
0e6359ab24
replace @use-it/event-listener as it doesn't like Node EE's
2019-10-19 16:39:06 +01:00
J. Ryan Stinnett
7ac14e48dc
Merge pull request #3549 from matrix-org/jryans/disconnect-dead-is
...
Show warning dialog when changing unreachable IS
2019-10-18 16:53:25 +01:00
J. Ryan Stinnett
579ada3ca2
Add an overall reachability timeout of 10s
...
This adds a reachability timeout of 10s when checking the IS for 3PID bindings.
This ensures we stop in a reasonable time, rather than waiting for a long list
of requests to eventually timeout via some general mechanism.
Part of https://github.com/vector-im/riot-web/issues/10909
2019-10-18 12:40:50 +01:00
Michael Telatynski
7e4d429fa3
delint
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-10-17 19:18:14 +01:00
Michael Telatynski
93429d7c2e
Break withLegacyMatrixClient into a util module
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-10-17 19:13:37 +01:00
Michael Telatynski
2494af37c8
Break UserInfo:RoomAdminToolsContainer into smaller components
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-10-17 19:08:40 +01:00
Michael Telatynski
3400808f6e
Use navigation treeview aria pattern for roomlist sublists and tiles
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-10-17 15:53:39 +01:00
Tulir Asokan
30ffd65b6c
Fix reacting to messages with reactions from other users
...
Signed-off-by: Tulir Asokan <tulir@maunium.net>
2019-10-16 21:35:12 +03:00
Tulir Asokan
318754d31c
Reorganize reaction sending and show if emoji is selected
...
Signed-off-by: Tulir Asokan <tulir@maunium.net>
2019-10-15 19:07:04 +03:00
Tulir Asokan
7acae6dc32
Autofocus search and fix bugs
...
Signed-off-by: Tulir Asokan <tulir@maunium.net>
2019-10-15 18:22:23 +03:00
Tulir Asokan
824685ae64
Redact existing reaction instead of trying to double-react
...
Signed-off-by: Tulir Asokan <tulir@maunium.net>
2019-10-15 00:15:18 +03:00
Tulir Asokan
7fc12b4b13
Simplify onChangeFilter category updating
...
Signed-off-by: Tulir Asokan <tulir@maunium.net>
2019-10-14 21:30:26 +03:00
Tulir Asokan
bb1a242ef0
Don't underline recently category in header if it's empty
...
Signed-off-by: Tulir Asokan <tulir@maunium.net>
2019-10-14 21:03:41 +03:00
Tulir Asokan
2dad33cd3e
Close menu after clicking emoji
...
Signed-off-by: Tulir Asokan <tulir@maunium.net>
2019-10-14 20:45:17 +03:00
Tulir Asokan
a6e0986bf8
Improve style
...
Signed-off-by: Tulir Asokan <tulir@maunium.net>
2019-10-14 20:38:09 +03:00
Tulir Asokan
e16d0bfa4d
Underline visible sections in header
...
Signed-off-by: Tulir Asokan <tulir@maunium.net>
2019-10-14 20:14:44 +03:00
Tulir Asokan
088c9bff9e
Add recently used section and scroll to category
...
Signed-off-by: Tulir Asokan <tulir@maunium.net>
2019-10-14 19:41:10 +03:00
Michael Telatynski
2de88449aa
Clean up RoomSubList from stale unused code paths
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-10-14 16:08:56 +01:00
Tulir Asokan
497b779334
Add full emoji picker for reactions
...
Signed-off-by: Tulir Asokan <tulir@maunium.net>
2019-10-14 00:32:11 +03:00
Tulir Asokan
2555fcb38f
Fix reply fallback being included in edit m.new_content
...
Signed-off-by: Tulir Asokan <tulir@maunium.net>
2019-10-13 13:32:09 +03:00
J. Ryan Stinnett
e6a81c5733
Show warning dialog when changing unreachable IS
...
If the IS is unreachable, this handles the error by showing a warning
encouraging the user to check after their personal data and resolve the
situation, but still allows them to continue if they want.
Fixes https://github.com/vector-im/riot-web/issues/10909
2019-10-11 15:57:12 +01:00
J. Ryan Stinnett
d7631ed9f8
Catch errors in Settings when IS is unreachable
...
A few bits of Settings try to talk to the IS when Settings is opened. This
changes them to handle failure by logging warnings to the console.
2019-10-11 15:52:15 +01:00
Travis Ralston
61cc6c8293
Correctly update the banned users list when a user is unbanned
...
Fixes https://github.com/vector-im/riot-web/issues/11123
Error wasn't actually the user being unbanned twice - it was a React error about "cannot call enqueueForceUpdate of undefined", which was a binding problem with onUnbanned. However, fixing that didn't do the intended thing - the user was still shown in the settings. We now just listen for membership and fix it that way.
2019-10-11 12:56:48 +01:00
Michael Telatynski
6e33cc0650
Merge pull request #3433 from matrix-org/t3chguy/nvl/react16/EventListSummary
...
Summarise state events after room creation
2019-10-11 09:53:26 +01:00
Michael Telatynski
dcc948f43d
Merge pull request #3543 from matrix-org/t3chguy/timeline_keyboard_focus
...
Don't intercept TAB on the app outside of the composer, fix tabIndex > 0
2019-10-10 17:52:10 +01:00
Bruno Windels
f8a610687f
don't persist caret when selection is missing
...
so caret will be put back at end of editor when remounting
2019-10-10 16:40:03 +02:00
Michael Telatynski
5643743167
Don't intercept TAB on the app outside of the composer, fix tabIndex > 0
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-10-10 14:13:29 +01:00
Michael Telatynski
7160922b77
Merge pull request #3541 from matrix-org/t3chguy/fix_150rc1
...
SettingsFlag always run ToggleSwitch fully-controlled
2019-10-10 09:39:33 +01:00
Michael Telatynski
0d42b8629e
remove SettingsFlag manualSave altogether
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-10-09 23:20:59 +01:00
Michael Telatynski
685c2f494a
actually always run fully controlled
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-10-09 22:33:14 +01:00
Michael Telatynski
2b9c102f07
SettingsFlag always run ToggleSwitch fully-controlled
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-10-09 22:27:49 +01:00
Michael Telatynski
58317b1608
Use Keyboard Key variables instead of hardcoded strings
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-10-09 19:59:11 +01:00
Michael Telatynski
ff18a04da1
Merge pull request #3529 from matrix-org/t3chguy/react16_cleanup2
...
React error/warning cleanup
2019-10-09 16:26:24 +01:00
J. Ryan Stinnett
93ff43f7e1
Merge pull request #3535 from matrix-org/jryans/tag-react-soft-crashes
...
Add label to rageshakes for React soft crashes
2019-10-09 12:38:42 +01:00
J. Ryan Stinnett
e905abe5ce
Add label to rageshakes for React soft crashes
...
This adds a label all rageshakes submitted via the React error boundary marking
them as soft crashes for triage.
Fixes https://github.com/vector-im/riot-web/issues/11072
2019-10-09 11:59:10 +01:00
Michael Telatynski
efeb6e87c4
Use new React Shallow renderer with hooks support
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-10-09 12:51:08 +02:00
Michael Telatynski
34530843f4
Factor out generic EventListSummary from MELS
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-10-09 12:50:03 +02:00
David Baker
4a56aa16b8
Merge remote-tracking branch 'origin/develop' into dbkr/add_threepid_ui_auth
2019-10-08 19:11:00 +01:00
David Baker
0b334c0bbc
Support UI Auth on adding email address
2019-10-08 18:56:13 +01:00
Bruno Windels
051fd0fd92
Merge pull request #3528 from matrix-org/bwindels/addemailerror
...
Fix: Unable to verify email address error
2019-10-08 16:49:51 +00:00
Bruno Windels
8c8b1430e4
fix spelling
2019-10-08 18:39:35 +02:00
Bruno Windels
14bbaae585
Merge pull request #3509 from matrix-org/bwindels/createroomenter
...
Fix: submit create room dialog when pressing enter
2019-10-08 16:36:05 +00:00
Bruno Windels
5bcb4b0fb6
Merge pull request #3530 from matrix-org/bwindels/watchemoticonsetting
...
Fix: watch emoticon autoreplace setting
2019-10-08 12:53:54 +00:00
Bruno Windels
91d593cb71
watch emoticon autoreplace setting
2019-10-08 14:40:10 +02:00
Michael Telatynski
4c82496bca
export ToggleSwitch
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-10-08 12:22:22 +01:00
Michael Telatynski
a03e9e7a4f
tidy ToggleSwitch
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-10-08 12:18:44 +01:00
Michael Telatynski
a782baf510
React error/warning cleanup
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-10-08 12:10:37 +01:00
Michael Telatynski
37b122aa16
delint
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-10-08 10:50:37 +01:00
Bruno Windels
1ab19be46c
also show dialog here
...
unsure why this code seems duplicated?
2019-10-08 08:54:23 +02:00
Bruno Windels
040bc5e157
show dialog when server says e-mail hasn't been verified yet
...
as it's confusing to have nothing happen at all when clicking
continue straight away.
2019-10-08 08:54:21 +02:00
Bruno Windels
80ec77a144
dont rely on timeline linkage to find events to redact
2019-10-08 08:46:13 +02:00
David Baker
c97d1d5b05
Merge pull request #3527 from matrix-org/dbkr/label_submit_button
...
Label submit button in UI auth password prompt
2019-10-07 17:48:51 +01:00
Michael Telatynski
df02eb8e92
Add UserInfo panel (consolidation of MemberInfo & GroupMemberInfo) Labs
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-10-07 16:52:50 +01:00
David Baker
1dec534493
Label submit button in UI auth password prompt
...
Fixes https://github.com/vector-im/riot-web/issues/10739
2019-10-07 13:13:30 +01:00
Travis Ralston
9200c55ce0
Merge pull request #3526 from matrix-org/travis/recaptcha-fix
...
Null-guard the recaptcha setup
2019-10-07 13:05:52 +01:00
Travis Ralston
495513028c
Appease the linter
2019-10-07 12:46:14 +01:00
Travis Ralston
c547367b62
Merge pull request #3513 from matrix-org/travis/mask-eye
...
Use a mask instead of an img for "Show image" eye
2019-10-07 12:45:22 +01:00
Travis Ralston
e841bd5442
Update src/components/views/auth/InteractiveAuthEntryComponents.js
...
Co-Authored-By: J. Ryan Stinnett <jryans@gmail.com>
2019-10-07 12:43:07 +01:00
Travis Ralston
082ebe636e
Null-guard the recaptcha setup
...
Fixes https://github.com/vector-im/riot-web/issues/11069
2019-10-07 12:36:20 +01:00
Michael Telatynski
fba646d2c5
Merge pull request #3519 from matrix-org/travis/enable-cider
...
Enable CIDER composer by default
2019-10-04 10:50:28 +01:00
Travis Ralston
853c522467
Enable CIDER composer by default
...
Also convert the setting to a watched setting to apply in realtime.
2019-10-03 23:20:40 -06:00
Michael Telatynski
a0de7d5f14
Cull some easily fixable errors which make the console a mess
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-10-03 21:47:19 +01:00
Michael Telatynski
8ef61ce43e
Merge pull request #3514 from matrix-org/t3chguy/accessibility3
...
Various ARIA a11y fixes.
2019-10-03 11:09:01 +01:00
David Baker
8e96bad0ce
Merge pull request #3511 from matrix-org/travis/ccar-debug
...
Add a bit of debugging for where MatrixClient stops
2019-10-03 11:05:03 +01:00
David Baker
ae7ecf7f8f
Merge pull request #3512 from matrix-org/jryans/error-boundary
...
Add error boundaries to catch rendering errors
2019-10-03 10:49:03 +01:00
Michael Telatynski
f1db0cf027
Various ARIA a11y fixes.
...
Notate RightPanel tabs.
Shorten Screen Reader queues.
Make AccessibleTooltipButton screen reader friendly
Flatten DOM for Sticker button using React Fragments
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-10-03 09:35:39 +01:00
Travis Ralston
0491b742c2
Use a mask instead of an img for "Show image" eye
...
See https://github.com/matrix-org/matrix-react-sdk/pull/3492#pullrequestreview-296223646
2019-10-02 12:52:07 -06:00
Travis Ralston
b94c94db04
Merge pull request #3492 from matrix-org/travis/hide-images
...
Add an option to hide image previews
2019-10-02 12:46:45 -06:00
Travis Ralston
37d16db0f0
Elsify
2019-10-02 12:46:21 -06:00
J. Ryan Stinnett
0e8dc24c3f
Add a basic error boundary for the entire app
...
This adds a basic error boundary around the entire app to catch errors during
rendering and present the user with the options on how to proceed. This is not
implemented as a modal so that it could be used selectively in portions of the
app as well, such as just the `RoomView`.
Fixes https://github.com/vector-im/riot-web/issues/11009
2019-10-02 17:31:22 +01:00
Travis Ralston
4136e0722d
Add a bit of debugging for clear cache & reload button
2019-10-02 09:34:30 -06:00
Bruno Windels
cdd1ad1e2f
submit form when pressing enter
2019-10-02 16:26:52 +02:00
Bruno Windels
44e68f16ba
use a way of unmounting the tooltip that seems to work 100% of the time
...
¯\_(ツ)_/¯
2019-10-02 14:32:08 +02:00
Bruno Windels
55c1c5e582
tell tooltip when format bar gets hidden, as it won't be unmounted
2019-10-02 14:31:42 +02:00
Bruno Windels
c8c4dc29d1
Merge pull request #3503 from matrix-org/bwindels/custom-themes-mvp
...
Custom theming MVP
2019-10-02 09:14:07 +00:00
Travis Ralston
a719623bb9
Appease the linter
2019-10-01 17:06:55 -06:00
Travis Ralston
4b0596b6b7
Apply lipstick to hidden image design
2019-10-01 17:00:01 -06:00
Travis Ralston
daef5f7574
Move setting to real settings
2019-10-01 09:32:42 -06:00
Travis Ralston
3c589cffec
Merge branch 'develop' into travis/hide-images
2019-10-01 09:31:54 -06:00
Travis Ralston
7d1a04cb12
Merge pull request #3500 from matrix-org/travis/permalinks
...
Support local permalinks for unfederated instances
2019-10-01 08:41:23 -06:00
Bruno Windels
558f8daeeb
support custom themes from setting
...
also move theme setting code from MatrixChat to own file.
2019-10-01 15:21:22 +02:00
Bruno Windels
79d4434c9f
remove custom color pickers
2019-10-01 15:20:11 +02:00
Michael Telatynski
891eb7af3f
Merge pull request #3499 from matrix-org/t3chguy/accessibility2
...
Accessibility fixes to the LeftPanel
2019-10-01 12:21:45 +01:00
Michael Telatynski
2d6461d376
Merge pull request #3497 from matrix-org/t3chguy/autocomplete_a11y
...
Make Autocomplete more accessible to screen reader users
2019-10-01 12:07:39 +01:00
David Baker
d369e1ff5c
Merge pull request #3496 from matrix-org/bwindels/fix-ac-bis
...
Fix: even more resilience to detect slash commands
2019-10-01 11:52:36 +01:00
David Baker
a75fd1801c
Merge pull request #3486 from matrix-org/t3chguy/fixes
...
Fix PropTypes usage, sdk import path and GroupMemberTile letter-avatar
2019-10-01 11:49:32 +01:00
Travis Ralston
fc66e69c02
Rename RoomPermalinkCreator -> Permalinks due to scope
...
The file handles more than just a RoomPermalinkCreator, so we should name it accordingly.
2019-09-30 20:39:58 -06:00
Travis Ralston
6f5ccd4c12
Minor comment updates
2019-09-30 20:38:03 -06:00
Travis Ralston
2824f468d9
Update pill processing to handle better permalinks
2019-09-30 20:27:51 -06:00
Travis Ralston
f879185aef
Move permalink host check into permalink constructors
...
Without the requirement for a room to work
2019-09-30 12:53:45 -06:00
Travis Ralston
f9d5e89017
Move early parts of matrix.to bits into its own class
2019-09-30 12:37:13 -06:00
Travis Ralston
64aa6695f5
Move matrix-to.js to utils/permalinks/RoomPermalinkCreator
...
Just a little bit of refactoring to make the feature of custom prefixes a bit easier.
2019-09-30 12:16:46 -06:00
J. Ryan Stinnett
8b622dbd53
Only show service summary once
2019-09-30 17:37:30 +01:00
Michael Telatynski
2621ad1b43
Group room tiles in room sub list in the room list for ARIA
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-09-30 16:04:43 +01:00
Bruno Windels
8dc94af1ba
use native color picker instead of library
2019-09-30 16:54:32 +02:00
Michael Telatynski
f160a308b4
Make Autocomplete more accessible to screen reader users
...
Use ARIA to:
+ notate that the composer has an autocomplete
+ notate the open/closed state of the autocomplete
+ notate the name of the open autocomplete options
+ notate the ID of the highlighted autocomplete option
+ improve naming of emoji autocomplete options for screen readers
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-09-30 14:04:39 +01:00
Bruno Windels
77a61519ef
also allow commands to be pill-candidates
2019-09-30 11:15:46 +02:00
Travis Ralston
59b29e4a7f
Add an option to hide image previews
...
Applies to images, stickers, and URL previews.
Fixes https://github.com/vector-im/riot-web/issues/10735
2019-09-27 21:08:31 -06:00
J. Ryan Stinnett
d80a2df979
Move document name to new column
2019-09-27 17:57:10 +01:00
J. Ryan Stinnett
701ec259e6
Rename Terms column in modal to Document
2019-09-27 17:43:04 +01:00
J. Ryan Stinnett
66f450b995
Lowercase terms
2019-09-27 17:32:57 +01:00
Bruno Windels
5e960f50e3
Merge pull request #3487 from matrix-org/bwindels/redactpeers
...
Fix: allow mass redaction for members with same or larger power level
2019-09-27 14:56:24 +00:00
Bruno Windels
a8695d345b
allow mass redaction for members with same or larger power level
2019-09-27 16:16:44 +02:00
Michael Telatynski
37978e5ef5
Fix GroupMemberTile wrong default avatar letter and colour
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-09-27 12:24:01 +01:00
Michael Telatynski
12c46838c3
fix sdk import
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-09-27 12:20:48 +01:00
Michael Telatynski
cde75dc4f7
fix PropTypes.oneOfType
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-09-27 12:18:19 +01:00
J. Ryan Stinnett
bfcd28f00a
Merge pull request #3483 from matrix-org/t3chguy/accesibility
...
Improve keyboard/screen reader accesibility some more
2019-09-27 10:07:51 +01:00
Michael Telatynski
8d1d3090f3
Improve keyboard accessibility using :focus-visible CSS polyfill
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-09-27 09:00:54 +01:00
Bruno Windels
cca41c184c
very basic color pickers for custom theme
2019-09-26 17:35:06 +02:00
Bruno Windels
8301943cfa
Merge pull request #3481 from matrix-org/bwindels/cider-ac-shifttab
...
Fix: don't block Shift+Tab in CIDER autocomplete
2019-09-26 15:08:36 +00:00
Michael Telatynski
c37e27f03d
Improve a11y:
...
+ Close context menu on escape
+ Use AccessibleButtons for more things (Context Menus and TabbedView)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-09-26 14:52:20 +01:00
Michael Telatynski
8ec0ffea3a
Make the message context menu more accessible
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-09-26 14:24:10 +01:00
Michael Telatynski
14e3cb8736
Allow keyboard control even without a screen reader
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-09-26 13:52:09 +01:00
Bruno Windels
f5b9373eb5
don't block Shift+Tab keypresses
2019-09-26 11:00:55 +02:00
Bruno Windels
99961df9d0
Merge pull request #3479 from matrix-org/bwindels/command-detection-resilience
...
Fix: make command detection more resilient
2019-09-26 07:36:25 +00:00
Michael Telatynski
3672832d38
conform to style
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-09-25 18:10:05 +01:00
Michael Telatynski
ab3e5c3b87
Merge branches 'develop' and 't3chguy/accesibility' of github.com:matrix-org/matrix-react-sdk into t3chguy/accesibility
2019-09-25 16:59:46 +01:00
Bruno Windels
0bbbb5e336
use mxid for user pill in command
2019-09-25 17:30:12 +02:00
Bruno Windels
c760ba0839
make command detection more resilient
2019-09-25 17:30:01 +02:00
Bruno Windels
10b692c1a2
Merge pull request #3477 from matrix-org/bwindels/cjk-ime-fixes
...
Fix: latin input through Chinese IME
2019-09-25 14:21:15 +00:00
Bruno Windels
30af9a9056
need to check isComposing on native event
2019-09-25 16:11:37 +02:00
Bruno Windels
1c11b8e274
Move focus to first field in create room dialog when showing
2019-09-25 15:08:48 +02:00
Bruno Windels
c8af1a6256
fixup: remove flag
2019-09-25 14:59:27 +02:00
Bruno Windels
ffe34ee8a1
try to see if this fixes safari back
...
on of the 2 changes (updating dom async from compositionend,
or ignoring keydown while composing) here has, while fixing chrome,
broken safari.
Don't do the async dom updating for safari if that was it.
2019-09-25 14:47:35 +02:00
Bruno Windels
7bda1c58eb
better naming
2019-09-25 14:45:39 +02:00
J. Ryan Stinnett
9e33be9b2a
Send MSISDN validation token to submit_url during registration
...
Similar to previous changes for 3PID add, this changes registration with MSISDN
to also send tokens to `submit_url` when supplied.
Fixes https://github.com/vector-im/riot-web/issues/10939
2019-09-25 10:29:18 +01:00
Michael Telatynski
e01be212e6
improve Settings Accessibility for Toggles and Dialogs
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-09-25 09:25:11 +01:00
Michael Telatynski
4a5ee4a969
Put aria-disabled on AccessibleButtons and attempt to a11y ToggleSwitch
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-09-25 09:01:49 +01:00
J. Ryan Stinnett
ec9e7f5855
Remove id_server for MSISDN registration
...
For HSes that no longer need it, remove the id_server param when verifying
MSISDNs at registration.
Fixes https://github.com/vector-im/riot-web/issues/10941
2019-09-24 15:02:30 +01:00
Bruno Windels
9f47fad305
ignore keydown events while doing IME composition
2019-09-24 15:32:30 +02:00
Bruno Windels
4d151722ff
delay DOM modification after compositionend
2019-09-24 15:32:08 +02:00
Bruno Windels
3e0278d41a
add validation when clicking Ok in dialog
2019-09-23 11:22:30 +02:00
Bruno Windels
6ae4b3e966
add room alias field to dialog
2019-09-23 11:22:30 +02:00
Bruno Windels
8a1c1bbec4
implement RoomAliasField component
...
adding a postfix to Field to show the domain name
2019-09-23 11:22:30 +02:00
Bruno Windels
c5f9ef87ba
fixup: detailsOpen state var
2019-09-23 11:22:30 +02:00
Bruno Windels
761233c473
add public switch
2019-09-23 11:22:30 +02:00
Bruno Windels
4a7ae3ca8e
add optional topic field
2019-09-23 11:22:30 +02:00
Bruno Windels
157a3388a5
change name to Field, no_federate to switch
...
also construct room create options in dialog,
instead of MatrixChat, as we'll have more to come
2019-09-23 11:22:30 +02:00
J. Ryan Stinnett
351a3ebd67
Merge pull request #3462 from matrix-org/jryans/msc2290
...
Use separate 3PID add and bind flow for supporting HSes
2019-09-20 14:37:03 +01:00
J. Ryan Stinnett
f9a09d271b
Use separate MSISDN add and bind flow for supporting HSes
...
This changes the paths used for binding MSISDNs for discovery to use the new
separate bind / unbind APIs on supporting servers.
Fixes https://github.com/vector-im/riot-web/issues/10839
2019-09-20 12:45:22 +01:00
J. Ryan Stinnett
ff69ad02b9
Use separate email add and bind flow for supporting HSes
...
This changes the paths used for binding emails for discovery to use the new
separate bind / unbind APIs on supporting servers.
Part of https://github.com/vector-im/riot-web/issues/10839
2019-09-20 12:19:43 +01:00
J. Ryan Stinnett
9a1305bf4a
Extract separate add / bind methods on AddThreepid
2019-09-19 15:53:50 +01:00
Michael Telatynski
c286f2214f
Fix disabled save button on message editor when pasting
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-09-18 14:09:38 +01:00
J. Ryan Stinnett
99b804d567
Change to separate add and bind to guard 3PID account section
...
This changes to checking for HS support of separate add and bind when guarding
the 3PID account section.
For older HSes, we in fact always require an IS for add with bind param, so the
previous version of this was incorrect.
Part of https://github.com/vector-im/riot-web/issues/10839
2019-09-18 13:02:52 +01:00
Michael Telatynski
648527e650
Fix failure to render newly verified phone number and nested forms
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-09-18 08:41:05 +01:00
Matthew Hodgson
832123524d
make the lifetimes of the RM configurable
2019-09-17 17:34:30 +01:00
J. Ryan Stinnett
4e42dbe418
Fix address type props to state conversion
...
The address picker recently started tracking props and state versions of valid
address types separately
(https://github.com/matrix-org/matrix-react-sdk/pull/3408 ), where props
represents the maximal set of possible types and the state is the current
available types right now (since it can change while the dialog is open).
For the case where there is no a IS, a regression was introduced by that PR by
mutating the props in place instead returning a modified copy for the state.
Regressed by https://github.com/matrix-org/matrix-react-sdk/pull/3408
Fixes https://github.com/vector-im/riot-web/issues/10878
2019-09-17 15:00:32 +01:00
RiotRobot
dd0ffa8e72
Merge branch 'master' into develop
2019-09-16 17:49:46 +01:00
Travis Ralston
e18b38c409
Merge pull request #3437 from matrix-org/travis/fix-deactivate
...
Wrap deactivation check with sanity conditions
2019-09-13 15:59:04 -06:00
Travis Ralston
3150d65bd7
De-async _calculateCanPermissions
2019-09-13 12:43:57 -06:00
Travis Ralston
d18d15311f
Remove extraneous guard on deactivation check
2019-09-13 12:43:47 -06:00
David Baker
7afd80e55b
Merge pull request #3408 from matrix-org/t3chguy/community_member_invite_IS_text
...
Fix identity server text in AddressPickerDialog
2019-09-13 15:45:22 +01:00
Michael Telatynski
c3d01715ff
Improve ReportEventDialog as per PR feedback
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-09-13 13:41:50 +01:00
Michael Telatynski
92af11bce7
fix indentation
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-09-13 13:40:31 +01:00
Michael Telatynski
fc49290459
Add way to report the content of a message
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-09-13 13:40:25 +01:00
Travis Ralston
f25529eed7
Change copy for sharing an email
...
Fixes https://github.com/vector-im/riot-web/issues/10758
2019-09-12 22:39:32 -06:00
Travis Ralston
27828a3785
Wrap deactivation check with sanity conditions
...
To ensure the matrixClient is not null (the problem) and that unexpected errors don't brick the app.
Fixes https://github.com/vector-im/riot-web/issues/10854
2019-09-12 18:31:58 -06:00
Travis Ralston
f4ebde1596
Wrap deactivation check with sanity conditions
...
To ensure the matrixClient is not null (the problem) and that unexpected errors don't brick the app.
Fixes https://github.com/vector-im/riot-web/issues/10854
2019-09-12 18:30:27 -06:00
Michael Telatynski
3fef6e6b22
Support Synapse deactivate on MemberInfo without Room (timeline pill)
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-09-12 18:28:16 -06:00
Michael Telatynski
f95ab2eeb1
Merge pull request #3290 from matrix-org/t3chguy/report_event
...
Add way to report the content of a message
2019-09-12 15:11:32 +01:00
Bruno Windels
fb5a85db81
put min room count in constant
2019-09-12 15:12:18 +02:00
Bruno Windels
94bdedd25b
show breadcrumbs only after having joined at least 10 rooms
2019-09-12 14:07:46 +02:00
Michael Telatynski
6dc69afe67
Merge branches 'develop' and 't3chguy/community_member_invite_IS_text' of https://github.com/matrix-org/matrix-react-sdk into t3chguy/community_member_invite_IS_text
2019-09-12 12:53:32 +01:00
Michael Telatynski
b6309a4294
Improve ReportEventDialog as per PR feedback
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-09-12 12:52:11 +01:00
Michael Telatynski
9a15d4cfc1
Merge branches 'develop' and 't3chguy/report_event' of https://github.com/matrix-org/matrix-react-sdk into t3chguy/report_event
...
Conflicts:
src/i18n/strings/en_EN.json
2019-09-12 12:45:16 +01:00
Travis Ralston
ab6215f9aa
Merge pull request #3410 from matrix-org/t3chguy/disable_save_button_msg_edit_nochange
...
EditMessageComposer: disable Save button until a change has been made
2019-09-11 14:27:27 -06:00
Michael Telatynski
9c1fb13d5f
Apply PR feedback
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-09-11 18:05:28 +01:00
Michael Telatynski
7ddac8d475
Login: Add way to change HS from SSO Homeserver
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-09-11 18:04:11 +01:00
Bruno Windels
ac65b28954
PR feedback
2019-09-11 18:03:15 +01:00
Bruno Windels
0cba5da03d
add redact recent messages button in member info
2019-09-11 18:03:09 +01:00
Bruno Windels
b9421e4269
make add room button go to create room dialog instead of room directory
2019-09-11 17:57:40 +01:00
Travis Ralston
9e2cdecb9b
Add a button to MemberInfo to deactivate a user
...
Part of https://github.com/vector-im/riot-web/issues/4125
2019-09-11 17:44:29 +01:00
Michael Telatynski
6f736e8407
Apply PR feedback
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-09-11 17:44:04 +01:00
Michael Telatynski
76e4363452
Login: Add way to change HS from SSO Homeserver
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-09-11 17:44:04 +01:00
Michael Telatynski
792b70913c
invert and rename changed to saveDisabled for clarity
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-09-11 17:37:11 +01:00
Michael Telatynski
2ff98b7c1f
clear up ambiguity by poor naming
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-09-11 17:37:11 +01:00
Michael Telatynski
e3643bf17a
EditMessageComposer: disable Save button until a change has been made
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-09-11 17:37:11 +01:00
Michael Telatynski
81ea230a35
Merge pull request #3406 from matrix-org/t3chguy/reply_to_search_results
...
Fix replying from search results for this and all rooms
2019-09-11 17:14:55 +01:00
Michael Telatynski
379fab8068
Merge pull request #3411 from matrix-org/t3chguy/synapse_deactivate_memberinfo_no_room
...
Support Synapse deactivate on MemberInfo without Room (timeline pill)
2019-09-11 17:12:38 +01:00
J. Ryan Stinnett
db33c138aa
Update all 3PID state in Settings when IS changes
...
This ensures we update all 3PID state (like bind status) whenever the IS
changes.
2019-09-11 16:21:42 +01:00
J. Ryan Stinnett
0b7995dc11
Improve terms handling for 3PID state gathering
...
This changes the 3PID state gathering (used in Settings) to ignore terms errors
(no modals will be shown) on the assumption that other UX handles this case.
2019-09-11 16:21:42 +01:00
J. Ryan Stinnett
f04c347df7
Lift 3PID state management up to Settings tab
...
This pulls the 3PID state management in Settings up to a single location so that
the Account and Discovery sections now work from a single list that updates
immediately.
Fixes https://github.com/vector-im/riot-web/issues/10519
2019-09-11 16:21:42 +01:00
Bruno Windels
62ddc1e544
Merge pull request #3412 from matrix-org/bwindels/explore-button
...
Add explore button in left panel to go show room directory
2019-09-11 11:54:18 +00:00
Travis Ralston
096dff4b54
Merge pull request #3395 from matrix-org/travis/hidden_rr
...
Support sending hidden read receipts
2019-09-10 10:55:45 -06:00
Bruno Windels
68dde07f49
make add room button go to create room dialog instead of room directory
2019-09-10 11:59:59 +02:00
Michael Telatynski
0b56e7a81c
Support Synapse deactivate on MemberInfo without Room (timeline pill)
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-09-10 08:26:10 +01:00
Michael Telatynski
c6f3ca20c0
Merge pull request #3407 from matrix-org/t3chguy/fix_custom_pl_levels_hidden_error
...
Catch error from changing room power level requirements and show modal
2019-09-09 17:50:58 +01:00
Bruno Windels
3edf345b02
PR feedback
2019-09-09 16:19:10 +02:00
Michael Telatynski
043a8d35e6
Move the rest of the IS/email supported logic to AddressPickerDialog
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-09-09 15:03:00 +01:00
Bruno Windels
f205ddbc8f
add redact recent messages button in member info
2019-09-09 15:10:50 +02:00
Michael Telatynski
194cd0a460
Fix identity server text in AddressPickerDialog
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-09-09 13:53:56 +01:00
Michael Telatynski
088f9e4cc5
Catch error from changing room power level requirements and show modal
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-09-09 12:50:05 +01:00
J. Ryan Stinnett
a03b224ff7
Merge pull request #3394 from matrix-org/jryans/bound-3pids-warning
...
Add bound 3PID warning when changing IS as well
2019-09-09 12:28:19 +01:00
J. Ryan Stinnett
24f1ec8abb
Merge pull request #3398 from matrix-org/jryans/is-input-tweak
...
Stop setting IS input field on account change
2019-09-09 10:28:00 +01:00
J. Ryan Stinnett
c3adddb5ac
Change to paragraphs outside the strings
2019-09-09 10:27:02 +01:00
Michael Telatynski
ef2ff31a46
Fix replying from search results for this and all rooms
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-09-09 09:34:08 +01:00
Bruno Windels
1422b1d73e
Merge pull request #3403 from matrix-org/bwindels/cider-italics
...
New composer: use underscore for italics so it doesn't collide with bold when toggling
2019-09-09 08:06:51 +00:00
Michael Telatynski
d8dbe28015
Merge pull request #3404 from matrix-org/t3chguy/react16_10
...
Switch to createReactClass: views/elements & views/groups. React 16 :D
2019-09-06 18:49:11 +01:00
Michael Telatynski
b243004a6c
Switch to createReactClass: *everything else*. React 16 :D
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-09-06 18:38:11 +01:00
Michael Telatynski
d5db67be38
Switch to createReactClass: views/elements & views/groups. React 16 :D
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-09-06 18:35:52 +01:00
Michael Telatynski
13258132e7
Merge pull request #3400 from matrix-org/t3chguy/react16_9
...
Switch to createReactClass: views/rooms and test/components. React 16 :D
2019-09-06 18:18:32 +01:00
Bruno Windels
48247e66be
use underscore for italics so it doesn't collide with bold when toggling
2019-09-06 17:52:37 +02:00
Bruno Windels
fe482258ac
Merge pull request #3402 from matrix-org/bwindels/cider-toggle-inline-formatting
...
New composer: support toggling inline formatting
2019-09-06 14:42:16 +00:00
Bruno Windels
14fff3be9a
Merge pull request #3399 from matrix-org/bwindels/fix-formatbar-edit-position
...
Fix format bar not appearing in edit composer
2019-09-06 14:28:23 +00:00
Bruno Windels
26bd694c6a
support toggling inline formatting
2019-09-06 16:25:55 +02:00
J. Ryan Stinnett
3ad88604cc
Stregthen bound 3PID warning dialog
...
This tweaks the bound 3PID text and adds danger styling.
Fixes https://github.com/vector-im/riot-web/issues/10750
2019-09-06 15:18:01 +01:00
Michael Telatynski
70ff2bc9cd
Switch to createReactClass: views/rooms and test/components. React 16 :D
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-09-06 15:04:46 +01:00
Bruno Windels
4e98721ba9
take bounding box for positioning calculation
2019-09-06 15:56:46 +02:00
J. Ryan Stinnett
5fddb20d86
Stop setting IS input field on account change
...
This stops setting a value in the IS input on account change. While it may have
been marginally useful if you have the form open and change on a different
device, it also seems to pick up changes on the current device, leading to
strange UX locally.
Fixes https://github.com/vector-im/riot-web/issues/10756
Fixes https://github.com/vector-im/riot-web/issues/10757
2019-09-06 14:33:40 +01:00
Michael Telatynski
4db8ef4d89
Correct case of propTypes property in ES6 React Components. React 16
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-09-06 14:27:33 +01:00
J. Ryan Stinnett
11a5fca702
Remove logs
2019-09-06 13:44:44 +01:00
J. Ryan Stinnett
df03477907
Show change warning only when different from current
2019-09-06 11:54:08 +01:00
J. Ryan Stinnett
19fff51b01
Rework handling for terms CORS error
...
Earlier changes in this branch removed the "next step" of saving from the
dialogs, so we need to fold in the CORS error case.
2019-09-06 11:12:10 +01:00
Bruno Windels
dd1c01068f
fix rename that didn't make it through rebasing
2019-09-06 11:58:27 +02:00
J. Ryan Stinnett
2ff592c542
Use existing modal promises
2019-09-06 10:48:24 +01:00
Bruno Windels
5014b606db
Merge pull request #3391 from matrix-org/bwindels/cider-format-history
...
New composer: ensure undo history is persisted before applying formatting
2019-09-06 09:28:18 +00:00
Bruno Windels
df4762871a
Merge pull request #3392 from matrix-org/bwindels/cider-paste-plain
...
New composer: fix pasting from word processors
2019-09-06 09:22:37 +00:00
Bruno Windels
6b104f6344
Merge pull request #3393 from matrix-org/bwindels/cider-fix-lastcaret
...
New composer: fix needing to push arrow-up twice after sending first message after switching to a room
2019-09-06 09:22:10 +00:00
Bruno Windels
9dac91a70d
ensure step before formatting is persisted in undo history
2019-09-06 11:20:24 +02:00
Bruno Windels
0252c7ae37
force pasting as plain text in new composer
2019-09-06 11:10:41 +02:00
Bruno Windels
2596281a7c
update last caret from update callback instead of input event
...
many editor updates are not caused by an input event, so
the last caret wasn't always up to date.
Updating the caret from the update callback ensures that every
time the editor contents is changed, the last caret is updated.
2019-09-06 11:09:01 +02:00
Bruno Windels
f4938f9d11
dont format empty ranges
2019-09-06 10:59:41 +02:00
Bruno Windels
06143ba7a1
show keyboard shortcuts in format button tooltip
2019-09-06 10:59:41 +02:00
Bruno Windels
bdcea6f21e
add shortcuts for formatting
2019-09-06 10:59:41 +02:00
Bruno Windels
b4b9c7d072
Add tooltip for format buttons
2019-09-06 10:39:19 +02:00
Bruno Windels
da29057fd8
move format bar to own component
2019-09-06 10:39:19 +02:00
Bruno Windels
02681d50b9
Merge pull request #3386 from matrix-org/bwindels/cider-formatbar
...
New composer: show format bar on selection
2019-09-06 08:38:01 +00:00
Bruno Windels
92c0c1a4e2
add comment about positioning the format bar
2019-09-06 10:29:18 +02:00
Travis Ralston
af35cdc2ea
Support sending hidden read receipts
...
Fixes https://github.com/vector-im/riot-web/issues/2527
2019-09-05 20:30:19 -06:00
J. Ryan Stinnett
d5552e4a17
Add bound 3PID warning when changing IS as well
...
This extends the bound 3PID warning from the disconnect button to also appear
when changing the IS as well. At the moment, the text is a bit terse, but will
be improved separately.
Fixes https://github.com/vector-im/riot-web/issues/10749
2019-09-05 17:52:46 +01:00
Travis Ralston
26eb617bec
Merge pull request #3384 from matrix-org/travis/fix-pl
...
Fix member power levels in room settings
2019-09-05 07:16:52 -06:00
Bruno Windels
4ef9fa53ac
better i18n
2019-09-05 11:10:13 +02:00
Travis Ralston
d6adf0fd6d
Add responsible error handling because we're responsible people
2019-09-04 11:24:31 -06:00
Bruno Windels
2ea556e0b4
support update callback setting selection instead of caret
2019-09-04 16:40:34 +02:00
Bruno Windels
4c04bc19c9
fixup: remove now unused import
2019-09-04 16:40:34 +02:00
Bruno Windels
6e694c113a
add support for inline/block code formatting
2019-09-04 16:40:34 +02:00
Bruno Windels
b35a3531bb
move quote formatting out of react component
2019-09-04 16:40:34 +02:00
Bruno Windels
b72d1a78ec
move inline formatting code out of react component
2019-09-04 16:40:34 +02:00
Bruno Windels
7f501b2aef
first impl of quote formatting
2019-09-04 16:40:13 +02:00
Bruno Windels
d4c7992f5a
first impl of inline formatting
2019-09-04 16:39:56 +02:00
Bruno Windels
7dc39baaf3
implement bold support in format bar
2019-09-04 16:35:03 +02:00
Bruno Windels
65ddfc0a50
show format bar when text is selected
2019-09-04 16:35:03 +02:00
Bruno Windels
4575aaa9f6
Merge pull request #3382 from matrix-org/bwindels/escape-command-slash
...
New composer: allow escaping the first slash to not write a command
2019-09-03 16:04:23 +00:00
J. Ryan Stinnett
3cb06c01b7
Merge pull request #3385 from matrix-org/jryans/email-invite-text
...
Improve email invite preview messaging
2019-09-03 16:58:14 +01:00
J. Ryan Stinnett
261bdab156
Fix indent
2019-09-03 16:55:17 +01:00
J. Ryan Stinnett
67299842e3
Use more specific messaging for email invite preview
...
This changes email invite previews to check more specific cases about whether
the email has been added to your account, you have an IS, the email is bound,
etc.
In addition, it always allows you to join if you want to.
Fixes https://github.com/vector-im/riot-web/issues/10669
2019-09-03 15:41:53 +01:00
Travis Ralston
2e3e2ec420
Fix member power levels in room settings
...
Fixes https://github.com/vector-im/riot-web/issues/10736
We didn't have an onChange property on the PowerSelector component
2019-09-03 08:36:24 -06:00
Bruno Windels
1063da0ed1
Revert "New composer: show markdown legend on focus"
2019-09-03 08:27:45 +00:00
Travis Ralston
71e13842b8
Merge pull request #3368 from matrix-org/travis/disable-msisdn
...
Disable MSISDN registration if the homeserver doesn't support it
2019-09-02 11:25:17 -06:00
Travis Ralston
5e8eb20c53
Merge pull request #3371 from matrix-org/travis/synapse_admin
...
Add a button to MemberInfo to deactivate a user
2019-09-02 11:08:45 -06:00
Bruno Windels
06ae0645c7
fix lint
2019-09-02 17:56:16 +02:00
Bruno Windels
712c3e5450
allow escaping the first slash to not write a command
2019-09-02 17:53:14 +02:00
Bruno Windels
422f482a6d
Merge pull request #3378 from matrix-org/bwindels/cider-md-legend
...
New composer: show markdown legend on focus
2019-09-02 14:59:44 +00:00
Bruno Windels
de9f923e36
Merge pull request #3380 from matrix-org/bwindels/cider-fix-dirty-flag-without-input-event
...
New composer: allow submitting after inserting newline
2019-09-02 14:59:18 +00:00
Bruno Windels
c4d7df768d
Merge pull request #3375 from matrix-org/bwindels/cider-colononmention
...
New composer: share user pill postfix between autocomplete and insert mention
2019-09-02 14:58:23 +00:00
Bruno Windels
ff74dd4b7f
Merge pull request #3374 from matrix-org/bwindels/fix-cider-command-detection
...
New composer: make command detection not break with pill candidates in command
2019-09-02 14:58:12 +00:00
J. Ryan Stinnett
00a69b996d
Clarify invite error text
...
This fixes a typo in the message (valide) and also has better handling of error
codes, because in some cases, we don't get one.
Fixes https://github.com/vector-im/riot-web/issues/10683
2019-09-02 15:53:13 +01:00
Bruno Windels
6163cefa6a
set dirty flag when programatically inserting text like with newlines
2019-09-02 16:29:25 +02:00
Bruno Windels
f200327ef2
show/hide legend when focusing/blurring
2019-09-02 16:15:18 +02:00
Bruno Windels
b7768f34f2
Add legend and style it
2019-09-02 16:15:18 +02:00
Bruno Windels
b9cb22e153
dont allow sending empty messages
2019-09-02 14:36:31 +02:00
Bruno Windels
c595371845
share user pill postfix between autocomplete and insert mention
...
where we decide to add a colon only if the composer is empty
2019-09-02 14:06:30 +02:00
Bruno Windels
b46e001d0a
allow pill-candidate parts in commands
2019-09-02 13:51:46 +02:00
Bruno Windels
4329d8c4ef
Merge pull request #3372 from matrix-org/bwindels/fix-command-tab-complete
...
New composer: fix tab-complete in commands
2019-09-02 11:38:13 +00:00
Bruno Windels
fdd23b34ae
also look backwards into commands for last word to tab-complete
2019-09-02 11:27:22 +02:00
Bruno Windels
a4376a76f0
only pass keyboard to autocomplete when it has selections
...
otherwise if tab is pressed, try to tab complete the last word
2019-09-02 11:25:29 +02:00
Travis Ralston
cfff576ef4
Add a button to MemberInfo to deactivate a user
...
Part of https://github.com/vector-im/riot-web/issues/4125
2019-09-01 18:04:24 -06:00
Michael Telatynski
6cc29b2a8c
Merge pull request #3363 from matrix-org/t3chguy/react16_6
...
Migrate away from React.createClass for auth and views/auth. React 16 :D
2019-09-01 22:46:55 +01:00
Travis Ralston
2bfffa76b5
Appease the linter
2019-08-30 15:54:00 -06:00
Travis Ralston
d47fb799a5
Disable MSISDN registration if the homeserver doesn't support it
2019-08-30 15:50:51 -06:00
Bruno Windels
3be32022f7
Merge pull request #3364 from matrix-org/bwindels/cider-ime-partii
...
New composer: force model update after IME composition finishes
2019-08-30 16:03:14 +00:00
Michael Telatynski
00a06af419
Hide the E2EE PL selector if room is already encrypted
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-08-30 10:57:46 +01:00
Michael Telatynski
8967871b23
Merge branches 'develop' and 't3chguy/pl_control_e2e' of github.com:matrix-org/matrix-react-sdk into t3chguy/pl_control_e2e
...
Conflicts:
src/components/views/settings/tabs/room/RolesRoomSettingsTab.js
src/i18n/strings/en_EN.json
2019-08-30 10:56:47 +01:00
Bruno Windels
42ba5f6f0a
force model update after composition finishes
2019-08-30 11:37:42 +02:00
Michael Telatynski
2e1fb4533c
Migrate away from React.createClass for auth and views/auth. React 16 :D
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-08-30 10:27:51 +01:00
J. Ryan Stinnett
27fdef557d
Merge pull request #3359 from matrix-org/jryans/features-without-is
...
Allow connecting to an IS from address picker
2019-08-30 10:19:28 +01:00
Bruno Windels
4779880a94
Merge pull request #3362 from matrix-org/bwindels/cider-no-enter-autocomplete
...
New composer: don't capture enter to close autocomplete
2019-08-30 08:17:47 +00:00
Travis Ralston
7dd6471059
Merge pull request #3018 from Sorunome/soru/spoilers
...
Add Spoilers as per MSC2010
2019-08-29 13:24:06 -06:00
Bruno Windels
c144edfcac
dont capture enter to close autocomplete
2019-08-29 18:39:35 +02:00
Bruno Windels
5105140902
Merge pull request #3358 from matrix-org/bwindels/cider-paste-images
...
New composer: support pasting files
2019-08-29 16:31:28 +00:00
Sorunome
4ae130bd27
add license header, descriptive comment and change to class
2019-08-29 18:13:52 +02:00
J. Ryan Stinnett
166fb696c2
Allow connecting to an IS from address picker
...
This allows those who previously disconnected from an IS to either choose the
default IS or a custom one from Settings via the address picker dialog.
Part of https://github.com/vector-im/riot-web/issues/10619
2019-08-29 15:28:34 +01:00
J. Ryan Stinnett
752eb17893
Remove subtext in room invite dialog
...
The subtext here was deemed redundant.
Part of https://github.com/vector-im/riot-web/issues/10619
2019-08-29 15:28:34 +01:00
Bruno Windels
fe7ac11abc
New composer: support pasting files
2019-08-29 16:19:05 +02:00
Bruno Windels
891ccf0f4c
don't update model while doing IME composition
...
this prevents the composition from being disrupted because
the DOM is modified, and also complete compositions are added
to the undo history like this.
2019-08-29 13:56:21 +02:00
Sorunome
fe9ae46ffb
Merge branch 'develop' of https://github.com/matrix-org/matrix-react-sdk into soru/spoilers
2019-08-28 20:23:24 +02:00
J. Ryan Stinnett
599fccd9ce
Merge pull request #3343 from matrix-org/jryans/hide-is-field-during-auth
...
Reveal custom IS field only when required
2019-08-28 18:36:02 +01:00
Travis Ralston
838e115b72
Merge pull request #3338 from matrix-org/t3chguy/fix_jitsi_persisted_breaking_randomly
...
Only Destroy the expected persistent widget, not *ANY*
2019-08-28 10:49:29 -06:00
Michael Telatynski
a8c5b02464
Merge pull request #3352 from matrix-org/t3chguy/pl_room_upgrade
...
Expose upgrade room permissions in room settings and fix command
2019-08-28 17:44:50 +01:00
Bruno Windels
f119ac4b22
Merge pull request #3349 from matrix-org/bwindels/tab-complete-name
...
New composer: support forcing auto complete on name by hitting tab
2019-08-28 16:17:16 +00:00
Bruno Windels
29f96e659a
remove leftover code
2019-08-28 17:53:03 +02:00
David Baker
c749b6355f
Update email help text
...
Fixes https://github.com/vector-im/riot-web/issues/10674
2019-08-28 10:34:50 -04:00
Bruno Windels
85efb71a23
add visual bell when no replacements are available
...
also add try/catch in _tabCompleteName so errors don't get swallowed
2019-08-28 15:53:16 +02:00
Michael Telatynski
f70f983c8c
Expose upgrade room permissions in room settings and fix command
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-08-28 12:00:37 +01:00
Michael Telatynski
66714b29af
expose power level toggle for enabling e2ee to room settings
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-08-28 11:37:20 +01:00
J. Ryan Stinnett
ac6b03551a
Describe props default
...
Co-Authored-By: Travis Ralston <travpc@gmail.com>
2019-08-28 11:24:11 +01:00
David Baker
ac2b8b874f
Don't infinite loop on server change
...
ServerConfig assumed that the state was already correct when
checking the given urls against the default, but that is not
neccessarily the case (eg. the validation can return a different
url to what the user entered). This would cause an infinite loop
because it would keep firing onServerConfigChange to change to
the desired URLs but the state would never change.
Fixes part of https://github.com/vector-im/riot-web/issues/10666
2019-08-27 17:29:56 -04:00
Travis Ralston
3eddded039
Merge branch 'develop' into travis/tabbed-managers
2019-08-27 09:07:52 -06:00
Bruno Windels
d8bb9ecedf
bring insert method inline with transform callback, add docs
...
before the insertPartsAt method would call the update callback
on its own, but now we have the concept of a transformation session,
so lets bring the API in line
2019-08-27 16:43:05 +02:00
Bruno Windels
f5bb872efa
some cleanup
2019-08-27 16:43:05 +02:00
Bruno Windels
f02713d08e
force completion when hitting tab
...
by replacing word before caret with pill-candidate and
forcing auto complete
2019-08-27 16:43:05 +02:00
Bruno Windels
f76a23d5dd
return promise from updating autocomplete
...
so one can await if needed
2019-08-27 16:43:05 +02:00
Bruno Windels
e0b99b5cc8
Merge pull request #3342 from matrix-org/bwindels/cider-replace-emoticons
...
Auto-replace emoticons with emojis in new composer
2019-08-27 14:40:53 +00:00
Travis Ralston
08339abd35
Merge pull request #3348 from matrix-org/travis/fix-discovery
...
Adjust copy and include identity server changing when terms are pending
2019-08-27 08:27:03 -06:00
Bruno Windels
56606a46f4
don't assume preceding space for emoticon at start of document
...
also add more inline comments to explain what is going on
2019-08-27 09:50:36 +02:00
Travis Ralston
abbc8ffef0
Adjust copy and include identity server changing when terms are pending
...
Fixes https://github.com/vector-im/riot-web/issues/10636
Fixes https://github.com/vector-im/riot-web/issues/10635
2019-08-26 11:26:21 -06:00
Bruno Windels
0273795f5d
add transform step to composer to auto-replace emoticons with emoji
2019-08-26 16:16:27 +02:00
Michael Telatynski
d94e2179bf
Migrate away from React.createClass for views/dialogs. React 16 :D
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-08-24 11:59:46 +01:00
Travis Ralston
e8b0c41157
minus ;
2019-08-23 12:01:47 -06:00
Travis Ralston
c44ae2df4d
Treat 404 errors on IS as having no terms
...
Fixes https://github.com/vector-im/riot-web/issues/10634
2019-08-23 11:58:04 -06:00
J. Ryan Stinnett
72ec6c7062
Reveal custom IS field only when required
...
This hides the identity server at first from the custom server auth flows. For
the flows that may need an IS if the HS requires it (registration, password
reset), we then check with the HS before proceeding further and reveal the IS
field if it is in fact needed.
Fixes https://github.com/vector-im/riot-web/issues/10553
2019-08-23 18:43:55 +01:00
Travis Ralston
160396ca9e
Appease the linter
2019-08-23 09:16:44 -06:00
Travis Ralston
b3cda4b19a
Support multiple integration managers behind a labs flag
...
Fixes https://github.com/vector-im/riot-web/issues/10622
Implements [MSC1957](https://github.com/matrix-org/matrix-doc/pull/1957 )
Design is not final.
2019-08-23 09:12:40 -06:00
Bruno Windels
f39dc6feab
Merge pull request #3287 from matrix-org/bwindels/new-main-composer
...
Support editing composer to be used as main composer (feature flagged)
2019-08-23 10:06:19 +00:00
Michael Telatynski
cd6a980c7e
Only Destroy the expected persistent widget, not *ANY*
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-08-22 16:57:51 +01:00
Travis Ralston
efe8254985
Merge pull request #3333 from matrix-org/travis/fix-tooltip
...
Remove tooltipClassName from the Field's input
2019-08-22 08:40:23 -06:00
Travis Ralston
fbb2af00da
Merge pull request #3335 from matrix-org/travis/fix-alignment
...
Fix alignment of discovery section addresses
2019-08-22 08:35:11 -06:00
Bruno Windels
944c56d09b
prevent cider history overlapping with slate composer history
2019-08-22 14:07:03 +01:00
Bruno Windels
6a3ecde4e6
duplicate slate code where we changed it drastically
...
to still make it work when the feature flag will be turned off
2019-08-22 14:05:54 +01:00
Bruno Windels
b366b0b3d8
store composer state when typing in new composer
...
this doesn't use the MessageComposerStore on purpose so that
both the new and old composer don't overwrite each others state,
as the format is different.
2019-08-22 13:33:20 +01:00
Bruno Windels
9f72268df7
avoid null-refs when receiving an action before initial rendering
2019-08-22 13:33:20 +01:00
Bruno Windels
6df46cc319
send typing notifs in new composer (both send and edit)
2019-08-22 13:33:20 +01:00
Bruno Windels
e2dfe888cc
only capture Enter when autocompletion list has selection
...
this is the old behaviour and makes sense IMO
also close the auto complete when resetting the composer model,
in case it was still open
2019-08-22 13:33:20 +01:00
Bruno Windels
3c5cf3e778
rename ComposerHistoryManager to SendHistoryManager to avoid confusion
...
...with the undo history manager for the composer.
2019-08-22 13:33:20 +01:00
Bruno Windels
c5cd8b943a
support auto complete for /commands
2019-08-22 13:33:20 +01:00
Bruno Windels
88cc1c428d
add support for emotes and running /commands
...
this does not yet include autocomplete for commands
2019-08-22 13:33:20 +01:00
Bruno Windels
cc82353d8f
bring back composer send history and arrow up to edit previous message
2019-08-22 13:33:20 +01:00
Bruno Windels
ca3539d53e
remove dead code
2019-08-22 13:33:20 +01:00
Bruno Windels
9bc8ff7e1e
clear composer undo history when sending a message
2019-08-22 13:33:20 +01:00
Bruno Windels
ea1faacd8b
support alt+enter on mac, like slate composer
2019-08-22 13:33:20 +01:00
Bruno Windels
9003a8836a
put dispatches together
2019-08-22 13:33:20 +01:00
Bruno Windels
2e71dd3ea8
cleanup, move code out of big switch statement
2019-08-22 13:33:20 +01:00
Bruno Windels
60e10364b0
add quoting functionality to new composer
2019-08-22 13:33:20 +01:00
Bruno Windels
10c218825b
allow inserting multiple parts at a position
2019-08-22 13:33:20 +01:00
Bruno Windels
a9d6d01f10
add reply fields to message content to be sent when replying
2019-08-22 13:33:20 +01:00
Bruno Windels
7b3282185a
update proptypes
2019-08-22 13:33:20 +01:00
Bruno Windels
c135cd60d2
restore insert mention
...
for this, we need to store the last caret in the editor,
to know where to insert the user pill.
Because clicking on a member blurs the editor, and the
selection is moved away from the editor.
For this reason, we keep as cache of the last caretOffset object,
invalidated by a selection with different values.
The selection needs to be cloned because apparently the browser
mutates the object instead of returning a new one.
2019-08-22 13:33:20 +01:00
Bruno Windels
71286b5610
restore reply_to_event action
2019-08-22 13:33:20 +01:00
Bruno Windels
e39c405c55
restore focus_composer action
2019-08-22 13:33:20 +01:00
Bruno Windels
fdf5fca628
add all props to proptypes
2019-08-22 13:33:20 +01:00
Bruno Windels
2cff486ec0
set placeholder same as label
2019-08-22 13:33:20 +01:00
Bruno Windels
f9992a1fc6
implement editor placeholder
2019-08-22 13:33:20 +01:00
Bruno Windels
e2e4ea493f
set aria label on main composer too
2019-08-22 13:33:20 +01:00
Bruno Windels
cfbd2e9cc8
support basic sending with new main composer
...
this removes all formatting options, as the new editor doesn't
have any.
2019-08-22 13:33:20 +01:00
Bruno Windels
df8488e194
pass label through props
2019-08-22 13:33:20 +01:00
Bruno Windels
505846ce53
split up css, update class names
2019-08-22 13:33:20 +01:00