Travis Ralston
e4835c4b03
Demonstrate dis.fire() with view_user_settings
...
Like a5f3318f3b
, this proves that the new dispatcher conversion works for fire-and-forget style dispatches too. This is another obvious-if-broken and generally safe conversion to make.
Other actions which can be dispatched this way have been excluded for reasons mentioned in the Action enum's comments.
2020-05-13 21:08:08 -06:00
Travis Ralston
90a898d03f
Move dispatcher into a subdirectory
...
We're expecting to have a whole bunch of types for the dispatched payloads, so pull the thing into a directory we can throw them in.
2020-05-13 21:07:50 -06:00
Travis Ralston
0a6f54da33
Label and use UNSAFE_componentWillMount to minimize warnings
...
These TODO comments are expected to be fixed ASAP, but until that happens let's minimize the errors in the console for development.
For https://github.com/vector-im/riot-web/issues/12877
These all aren't using componentDidMount because they do something which causes application instability if componentDidMount were used. Much of these calls are expected to move into constructors once they are converted to real classes.
2020-03-31 14:15:23 -06:00
Travis Ralston
fde32f13a5
[CONFLICT CHUNKS] Merge branch 'develop' into travis/sourcemaps-develop
2020-01-09 14:15:09 -07:00
Travis Ralston
59f608ffd6
Merge pull request #3761 from matrix-org/travis/babel7-wp-es6-export
...
Convert CommonJS exports to ES6 exports
2020-01-08 09:09:11 -07:00
Travis Ralston
042bd35d79
Fix MatrixClientPeg imports
2019-12-22 21:15:54 -07:00
Travis Ralston
d56f0f2a25
Convert many imports to handle ES6 exports
...
Reliant upon https://github.com/matrix-org/matrix-react-sdk/pull/3761
2019-12-22 21:04:42 -07:00
Travis Ralston
344dac4fb9
Convert CommonJS exports to ES6-compatible exports
...
We use `export default` begrudgingly here. Ideally we'd use just `export`, though this entire SDK expects things to be exported as a default. Instead of breaking everything, we'll sacrifice our export pattern for a smaller diff - a later commit can always do the default export -> regular export conversion.
2019-12-22 21:01:02 -07:00
Michael Telatynski
17463c401f
post-merge fix
2019-12-17 09:58:04 +00:00
Michael Telatynski
3b0f8233e8
delint
2019-12-16 17:22:00 +00:00
Michael Telatynski
d28a892bb0
Stop using KeyboardEvent.keyCode as it is deprecated
2019-12-16 17:14:03 +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
d4d51dc61f
Rip out the remainder of Bluebird
2019-11-18 10:03:05 +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
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
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
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
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
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
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
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
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
J. Ryan Stinnett
5bb68b4b3b
Display lookup errors in the UI
2019-07-30 17:41:26 +01:00
J. Ryan Stinnett
4ebafb93c3
Rename isAccessToken to identityAccessToken
2019-07-30 17:37:48 +01:00
J. Ryan Stinnett
dacb5d42ac
Support IS v2 auth in preview bar
2019-07-30 17:37:48 +01:00
J. Ryan Stinnett
4d01d6a5b1
Move auth steps to IdentityAuthClient
2019-07-30 17:37:48 +01:00
J. Ryan Stinnett
432e70e2ce
Add IS auth to AddressPickerDialog
2019-07-30 17:35:36 +01:00
J. Ryan Stinnett
dd792e10a9
Convert 3PID lookup in address picker to async / await
2019-07-30 17:35:35 +01:00
Michael Telatynski
31ab97772c
Match code-style better
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-07-29 22:27:31 +01:00
Michael Telatynski
a97e2e6ef2
clean up onPaste error handling in AddressPickerDialog
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-07-25 21:49:22 +01:00
Michael Telatynski
c9e1c68726
Handle onPaste AddressPickerDialog, allow addressing CSV/NL/Space delim list
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-07-25 21:45:32 +01:00
Michael Telatynski
b2c39ba842
Fix AddressPickerDialog adding wrong entry to selected list case
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-06-07 00:00:38 +01:00
David Baker
7925e7169a
Design tweaks to dialogs
...
Little bit of a mix of things in this one:
* Support variable-width dialogs. Default is fixed-width as before,
only UploadConformDialog is variable-width. Controlled by a prop
to BaseDialog.
* Fixes to the cancel 'x' - scale the mask image, tweak size & colour
* Colour & boldness of dialog titles
* Align the dialog title & cancel 'x'
* Remove gap between dialog buttons & right hand side of dialog(!)
* Round corners on dialogs
* Add grey border on image preview in upload confirm dialog
* and, squeezing in slightly randomly, finish the partially renamed
ChatInviteDialog to AddressPickerDialog.
2019-04-03 16:27:45 +01:00
Travis Ralston
18ba5f6f19
Don't show rooms with tombstones in the address picker
...
Fixes https://github.com/vector-im/riot-web/issues/8076
2019-01-10 14:44:19 -07:00
Travis Ralston
d062e2c2f4
Check to make sure email addresses look roughly valid before inviting them to room
...
Fixes https://github.com/vector-im/riot-web/issues/6854
2018-12-07 15:03:58 -07:00
Michael Telatynski
be612998bd
invert boolean operation for readability and add comment
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2018-06-21 12:14:16 +01:00
Michael Telatynski
0737965079
s/userList/selectedList/ & s/queryList/suggestedList/
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2018-06-21 12:13:27 +01:00
Michael Telatynski
fd252ded60
take into account the addressType also
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2018-06-21 00:47:21 +01:00
Michael Telatynski
4040e3f5cf
delint
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2018-06-21 00:37:37 +01:00
Michael Telatynski
bce87829b6
hide already chosen results from AddressPickerDialog
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2018-06-21 00:33:24 +01:00
Luke Barnard
023daef4b7
Refactor GroupStores into one global GroupStore
...
Take a step closer to a flux-like architecture for group data, for
the purposes of providing features that require it.
Now the app has a single GroupStore that can be poked to fetch
updates for a particular group.
2018-05-01 11:24:17 +01:00
Aidan Gauland
0f6125e749
Use DialogButtons in AddressSelector
...
Use DialogButtons to eliminate duplicate button code.
2017-12-23 17:02:19 +13:00
Aidan Gauland
8bb16466d6
Rebase AddressSelector on BaseDialog
2017-12-23 17:02:19 +13:00
Luke Barnard
7ec4010881
Make GroupStore use MatrixClientPeg
...
To avoid weirdness with using a cached matrix client
2017-11-28 11:54:05 +00:00
Luke Barnard
077ca36b05
Rank rooms with shorter matching aliases first
2017-11-08 10:47:45 +00:00