Travis Ralston
c4d85c457b
Add progress effect to playback waveform
2021-04-27 22:59:16 -06:00
Travis Ralston
c2d37af1cb
Move playback to its own set of classes
...
This all started with a bug where the clock wouldn't update appropriately, and ended with a whole refactoring to support later playback in the timeline.
Playback and recording instances are now independent, and this applies to the <Playback* /> components as well. Instead of those playback components taking a recording, they take a playback instance which has all the information the components need.
The clock was incredibly difficult to do because of the audio context's time tracking and the source's inability to say where it is at in the buffer/in time. This means we have to track when we started playing the clip so we can capture the audio context's current time, which may be a few seconds by the first time the user hits play. We also track stops so we know when to reset that flag.
Waveform calculations have also been moved into the base component, deduplicating the math a bit.
2021-04-27 22:23:57 -06:00
Travis Ralston
5e646f861c
Wire up the send button for voice messages
...
This fixes a bug where we couldn't upload voice messages because the audio buffer was being read, therefore changing the position of the cursor. When this happened, the upload function would claim that the buffer was empty and could not be read.
2021-04-27 18:59:10 -06:00
Travis Ralston
c1bb0bb0b8
Add a delete button
2021-04-27 15:02:15 -06:00
Travis Ralston
30e120284d
Add simple play/pause controls
2021-04-27 15:02:15 -06:00
Travis Ralston
32e3ce3dea
Handle basic state machine of recordings
2021-04-27 15:02:15 -06:00
Travis Ralston
afd53d8b53
Merge pull request #5930 from matrix-org/travis/error-view-fix
...
Handle possible edge case with getting stuck in "unsent messages" bar
2021-04-27 11:17:33 -06:00
Michael Telatynski
28d3a0c09b
Merge pull request #5932 from matrix-org/t3chguy/fix/17080
...
Fix suggested rooms not showing up regression from room list optimisation
2021-04-27 16:49:52 +01:00
Michael Telatynski
35799c213e
Fix suggested rooms not showing up regression from room list optimisation
2021-04-27 16:30:54 +01:00
Travis Ralston
b9bd83ad41
Handle possible edge case with getting stuck in "unsent messages" bar
...
Just in case we're not cleaning up the isResending state properly, here's a catch all.
Unrelated to https://github.com/vector-im/element-web/issues/17078 (this code doesn't affect the js-sdk error the author is seeing)
2021-04-27 08:58:18 -06:00
Germain
4d5fd3ec73
Merge pull request #5913 from matrix-org/gsouquet-desktop-i18n
2021-04-27 15:48:49 +01:00
J. Ryan Stinnett
dd8abb0206
Merge pull request #5912 from matrix-org/jryans/convert-flow-to-ts
...
Convert some Flow-typed files to TypeScript
2021-04-27 13:44:47 +01:00
J. Ryan Stinnett
1df0a82c64
Add types to PreferencesUserSettingsTab
2021-04-27 12:00:36 +01:00
J. Ryan Stinnett
4e7240ebc9
Add types to SecurityRoomSettingsTab
2021-04-27 11:56:45 +01:00
J. Ryan Stinnett
2ebd256590
Add types to RolesRoomSettingsTab
2021-04-27 11:42:11 +01:00
Michael Telatynski
13a5d06e29
Merge pull request #5926 from matrix-org/t3chguy/fix/17067
...
Fix issues with space hierarchy in layout and with incompatible servers
2021-04-27 11:21:15 +01:00
Michael Telatynski
31b9a4c312
Merge pull request #5928 from matrix-org/t3chguy/hidpi
...
Scale all mxc thumbs using device pixel ratio for hidpi
2021-04-27 10:56:23 +01:00
Michael Telatynski
cc3571c559
fix removed pixelRatio
2021-04-27 09:56:28 +01:00
Michael Telatynski
b9cca469b6
Merge pull request #5918 from matrix-org/t3chguy/fix/17050
...
Fix add existing to space dialog no longer showing rooms for public spaces
2021-04-27 09:46:37 +01:00
Michael Telatynski
915f8b3c9c
Scale all mxc thumbs using device pixel ratio for hidpi
...
as we are notoriously bad at doing it everywhere we ought to, like the TopLeftMenu avatar
2021-04-26 18:25:49 +01:00
Michael Telatynski
0d538c490a
Merge pull request #5921 from matrix-org/t3chguy/fix/17063
...
Autofocus search box in the add existing to space dialog
2021-04-26 18:24:14 +01:00
Michael Telatynski
e675448062
Merge pull request #5922 from matrix-org/t3chguy/fix/17062
...
Use label element in add existing to space dialog for easier hit target
2021-04-26 18:10:00 +01:00
J. Ryan Stinnett
26bb7c08c2
Add join rule comment
2021-04-26 16:20:16 +01:00
J. Ryan Stinnett
d1649dd301
Tweak interface syntax
2021-04-26 16:16:43 +01:00
J. Ryan Stinnett
d497d62db3
Use enums in SecurityRoomSettingsTab
2021-04-26 16:14:21 +01:00
Michael Telatynski
43b43dc685
tidy up code
2021-04-26 16:11:07 +01:00
Michael Telatynski
a8711dcce9
useSpaceSummary return error for incompatible server notice
2021-04-26 16:06:42 +01:00
J. Ryan Stinnett
cddcedcce2
Merge remote-tracking branch 'origin/develop' into jryans/convert-flow-to-ts
2021-04-26 15:57:28 +01:00
J. Ryan Stinnett
8659c98c44
Add tile shape string type
2021-04-26 15:55:04 +01:00
J. Ryan Stinnett
9401a6d6dc
Merge pull request #5916 from SimonBrandner/image-view-zoom
...
Dynamic max and min zoom in the new ImageView
2021-04-26 15:46:26 +01:00
J. Ryan Stinnett
4b66082b0f
Add change event type
2021-04-26 15:27:30 +01:00
J. Ryan Stinnett
809454e66a
Use new managed prop for emoji composer menu
2021-04-26 15:23:55 +01:00
J. Ryan Stinnett
bf43144f6e
Add ActionPayload type
2021-04-26 15:21:49 +01:00
J. Ryan Stinnett
1b615eebc1
Fix optional props
2021-04-26 14:56:43 +01:00
Šimon Brandner
1fcad1a634
Show zoom buttons only if zooming is enabled
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-26 15:47:58 +02:00
J. Ryan Stinnett
a3a756fdb2
Rename history visibility type
2021-04-26 14:08:45 +01:00
J. Ryan Stinnett
69fbfdc552
Fix interface syntax
2021-04-26 14:07:45 +01:00
J. Ryan Stinnett
b8a915bb76
Tweak private / underscores for fields and methods
2021-04-26 14:02:53 +01:00
Šimon Brandner
53e8b5e6af
Merge branch 'image-view-zoom' of https://github.com/SimonBrandner/matrix-react-sdk into image-view-zoom
2021-04-26 15:01:47 +02:00
Šimon Brandner
3547d1f93b
Change cursor to default
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-26 15:01:06 +02:00
Germain Souquet
a43ad8d881
Allow for multiple locale and stabilise set language call
2021-04-26 13:55:14 +01:00
Šimon Brandner
e374fcfe91
Fix spelling
2021-04-26 13:49:29 +02:00
Šimon Brandner
dbca370497
Try to precalculate the zoom from width and height props
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-26 13:48:14 +02:00
Šimon Brandner
b741b3112a
If the image is small don't scale
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-26 13:47:06 +02:00
Šimon Brandner
33107a1f47
Fall back to natural height and width
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-26 13:30:14 +02:00
Šimon Brandner
c1a4204ad3
Use a ref instead of that ugly thing
...
Sometimes I do really weird things and don't know why :D
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-26 13:11:41 +02:00
Michael Telatynski
1e7eedba02
Use label element in add existing to space dialog for easier hit target
2021-04-26 11:29:08 +01:00
Michael Telatynski
9319dd5400
Autofocus search box in the add existing to space dialog
2021-04-26 11:24:28 +01:00
Michael Telatynski
1c7d68bb16
invert and outdent
2021-04-25 09:35:18 +01:00
Michael Telatynski
4411498057
Fix add existing to space dialog no longer showing rooms for public spaces
2021-04-25 09:33:44 +01:00