Š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
J. Ryan Stinnett
dda18c9384
Merge pull request #5914 from matrix-org/jryans/forget-room-error
...
Check for null room in `VisibilityProvider`
2021-04-26 10:36:21 +01:00
Michael Telatynski
203425c8de
Test and fix space store wrongly treating room invites as space invites
2021-04-26 08:37:45 +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
Michael Telatynski
3bb6edbda7
Fix accepting invite edge case where it wouldn't show the newly joined space
2021-04-25 09:24:26 +01:00
Michael Telatynski
98851f8e64
Text space switching behaviour and fix invalid space edge case
2021-04-24 11:32:55 +01:00
Michael Telatynski
da46e90896
Fix SpaceStore reset behaviour
2021-04-24 11:32:12 +01:00
Michael Telatynski
f85d3643ee
Test and fix subspace invite receipt behaviour
2021-04-24 11:31:52 +01:00
Šimon Brandner
0e312977e3
Rework zooming
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-24 10:36:53 +02:00
Šimon Brandner
90f2423eb7
Fix zoom step and coeficient
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-24 10:35:25 +02:00
Šimon Brandner
bcc6e5c5d5
Add some comments
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-24 09:41:46 +02:00
Šimon Brandner
9b7a9fc865
Use MAX_SCALE for maxZoom
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-24 09:24:25 +02:00
Šimon Brandner
1a906c95da
Merge branch 'develop' into image-view-zoom
2021-04-24 09:14:30 +02:00
Šimon Brandner
dcc060f6f7
Use correct cursor when we can't zoom
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-24 09:00:15 +02:00
Šimon Brandner
e0e9ccbf95
Remove logline
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-24 08:38:13 +02:00
Šimon Brandner
57b34f8dbc
Get rid of onWindowResize()
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-24 08:37:51 +02:00
Šimon Brandner
f8af9831a9
Don't use percanteages
...
I was an idiot to use them in the first place
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-24 08:35:45 +02:00
Šimon Brandner
4523b8c7b8
Add dynamic maxZoom and wire it all up
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-24 08:32:28 +02:00
Šimon Brandner
dad7a22055
Initial code for dynamic minZoom
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-24 08:03:39 +02:00
Travis Ralston
82119ad595
Merge branch 'develop' into travis/error-states
2021-04-23 15:53:37 -06:00
Travis Ralston
09af2a8891
Merge pull request #5910 from matrix-org/travis/tests/array-obj-utils
...
Add unit tests for various collection-based utility functions
2021-04-23 11:21:12 -06:00
J. Ryan Stinnett
f34489e2df
Actually fix indent lint errors
2021-04-23 18:11:54 +01:00
J. Ryan Stinnett
3d41b48543
Check for null room in VisibilityProvider
...
Hopefully fixes https://github.com/vector-im/element-web/issues/16898
2021-04-23 17:27:20 +01:00
J. Ryan Stinnett
2344ddd164
Merge remote-tracking branch 'origin/develop' into jryans/convert-flow-to-ts
2021-04-23 17:19:52 +01:00
Germain Souquet
8f1ea84eb6
Broadcast language change to ElectroPlatform
2021-04-23 17:11:45 +01:00
J. Ryan Stinnett
d7e6f4b4b5
Add basic types
2021-04-23 17:05:50 +01:00
J. Ryan Stinnett
0e92251f70
Fix simple lint errors
2021-04-23 16:28:55 +01:00
J. Ryan Stinnett
31a28b1a9e
Update extensions for some files with types
...
This migrates one bucket of files using some amount of Flow typing to mark them
as TypeScript instead. The remaining type errors are fixed in subsequent
commits.
2021-04-23 16:05:30 +01:00
Michael Telatynski
f5ab75cfdd
Fix automatic space switching behaviour to prioritise canonical parents
2021-04-23 14:45:34 +01:00
Germain
65d55bd0d9
Merge pull request #5908 from matrix-org/gsouquet-messagepreview-nodom
...
Remove reliance on DOM API to generated message preview
2021-04-23 14:37:19 +01:00
Michael Telatynski
320ff7b870
Fix invites relating to a space not showing in the space
2021-04-23 13:41:42 +01:00
J. Ryan Stinnett
c09d4f4a78
Merge pull request #5904 from SimonBrandner/normalize-wheel
...
Add a WheelEvent normalization function
2021-04-23 12:59:37 +01:00
Michael Telatynski
a12cefee8e
Tweak some tests
2021-04-23 12:19:08 +01:00
Michael Telatynski
86a30a2ad5
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into t3chguy/fix/17022
2021-04-23 10:05:45 +01:00
Michael Telatynski
1075756929
add more tests
2021-04-23 09:55:30 +01:00
Travis Ralston
0d4218ee35
Add enum utility tests
2021-04-22 20:37:19 -06:00
Travis Ralston
a3e846685d
Add array utility tests (and support upsampling in resample)
...
See contained diff.
The upsampling is important for Voice Messages, but is being done here because it's easier to add all the tests at once.
This also introduces a new Object utility - that will be tested on its own commit.
2021-04-22 20:08:45 -06:00
Travis Ralston
06726d38fe
Merge pull request #5888 from matrix-org/travis/voice/event_type
...
Expand upon voice message event & include overall waveform
2021-04-22 14:41:59 -06:00
Germain Souquet
2b6551d06a
Remove reliance on DOM API to generated message preview
2021-04-22 16:17:53 +01:00
Travis Ralston
14809dfda7
Misc cleanup
2021-04-22 08:22:31 -06:00
Michael Telatynski
ba9cfa0942
Merge pull request #5902 from matrix-org/t3chguy/fix/17020
...
Show invites to spaces at the top of the space panel
2021-04-22 14:32:48 +01:00
Michael Telatynski
3fb4b6258a
Merge pull request #5899 from matrix-org/t3chguy/spaces-stability
...
Improve edge cases with spaces context switching
2021-04-22 14:30:35 +01:00
Michael Telatynski
5c93b99ec6
Merge pull request #5900 from matrix-org/t3chguy/fix/17024
...
Fix spaces notification dots wrongly including upgraded (hidden) rooms
2021-04-22 14:30:20 +01:00
Šimon Brandner
2e6397d8aa
Wire up normalizeWheelEvent()
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-22 14:56:35 +02:00
Šimon Brandner
ad53b0e2e2
Add normalizeWheelEvent()
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-22 14:56:12 +02:00
Michael Telatynski
e219fe082a
Tweak context switching edge case for space invites
2021-04-22 12:08:54 +01:00
Michael Telatynski
e05200269f
fix comment
2021-04-22 12:07:58 +01:00
Michael Telatynski
108a3088ef
Hide explore rooms quick action when active space is an invite
2021-04-22 12:07:58 +01:00
Michael Telatynski
a51aeaa04d
Disable context menu on space invite tiles as no options sensibly work
2021-04-22 12:07:58 +01:00
Michael Telatynski
7efd4a43a5
Show space invites at the top of the space panel
2021-04-22 12:07:58 +01:00
Michael Telatynski
60ef657f64
Properly hide spaces from the room list
2021-04-22 12:07:58 +01:00
Michael Telatynski
d9dac7b261
Merge pull request #5898 from matrix-org/t3chguy/fix/16976
...
Iterate the spaces face pile design
2021-04-22 09:29:00 +01:00
Michael Telatynski
23c61752cd
Add comment
2021-04-22 09:08:25 +01:00
Michael Telatynski
28fa1cb44c
Reset space contexts as some users may have loops stuck in their local storage
2021-04-22 09:05:02 +01:00
Michael Telatynski
b64b956aa4
when automatically switching space to match room fall back to the home space
2021-04-22 08:39:16 +01:00
Michael Telatynski
ec0612f70d
Fix spaces notification dots wrongly including upgraded (hidden) rooms
2021-04-22 08:31:26 +01:00
Michael Telatynski
e1ba04716e
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into t3chguy/spaces-stability
...
Conflicts:
src/stores/SpaceStore.tsx
2021-04-22 08:24:19 +01:00
Michael Telatynski
ee80c27b2b
Improve edge cases with spaces context switching
2021-04-22 08:22:11 +01:00
Michael Telatynski
60828913d2
Iterate the spaces face pile design
2021-04-22 08:13:03 +01:00
Travis Ralston
a53696ff5e
Fix tests
2021-04-21 16:53:29 -06:00
Travis Ralston
4be9c51dad
Move all the RED_EXCLAMATION badges to a single definition
2021-04-21 16:43:25 -06:00
Travis Ralston
9227618b42
Show indicator in Room List for unsent events
2021-04-21 16:36:06 -06:00
Travis Ralston
c5dd6b4dfb
Update action bar to incorporate sending states
...
This moves most of them out of the context menu.
2021-04-21 16:24:17 -06:00
Travis Ralston
91b3688feb
Redesign "failed to send messages" status bar
2021-04-21 16:24:17 -06:00
Weblate
bfa34cd394
Merge branch 'origin/develop' into Weblate.
2021-04-21 15:20:02 +00:00
Andrejs
8e0b514dc6
Translated using Weblate (Latvian)
...
Currently translated at 50.9% (1485 of 2916 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/lv/
2021-04-21 11:34:25 +00:00
Germain Souquet
c5a1bb2d2c
fix sticky tags header in room list
2021-04-21 10:44:20 +01:00
Michael Telatynski
8373b0e69c
Merge pull request #5893 from matrix-org/t3chguy/fix/16978
...
Fix spaces filtering sometimes lagging behind or behaving oddly
2021-04-21 09:20:18 +01:00
Michael Telatynski
bae47bbd79
Merge pull request #5894 from matrix-org/t3chguy/fix/17026
...
Fix issue with spaces context switching looping and breaking
2021-04-21 09:11:26 +01:00
Germain
68fb9a78c4
Merge pull request #5874 from matrix-org/gsouquet-room-events
2021-04-21 09:09:01 +01:00
Michael Telatynski
ecd9b8d6de
Fix issue with spaces context switching looping and breaking
2021-04-21 09:01:22 +01:00
Michael Telatynski
1507f64f2b
Fix spaces filtering sometimes lagging behind or behaving oddly
2021-04-21 08:52:56 +01:00
Travis Ralston
b519d85127
Update src/voice/RecorderWorklet.ts to use sanity
...
Co-authored-by: Germain <germain@souquet.com>
2021-04-20 09:32:12 -06:00
Šimon Brandner
9b81f5b4a0
Add a comment
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-20 16:11:34 +02:00
Šimon Brandner
3adb2635ba
Revert "Remove unnecessary check"
...
This reverts commit 08c0f0a67e
.
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-20 15:40:32 +02:00
Michael Telatynski
ace8d59a2a
Fix Spaces NPE when a room with no tags gains its first tag
2021-04-20 13:12:28 +01:00
Michael Telatynski
b2e9f6731b
Merge pull request #5795 from SimonBrandner/spaces/context-switching
...
[Spaces] Context switching
2021-04-20 12:38:54 +01:00
Michael Telatynski
c4ef1f9828
Merge pull request #5415 from aaronraimist/only-member-warning
...
Warn when you attempt to leave room that you are the only member of
2021-04-20 12:33:19 +01:00
Šimon Brandner
4344ff9097
Update src/stores/SpaceStore.tsx
...
Co-authored-by: Michael Telatynski <7t3chguy@googlemail.com>
2021-04-20 13:31:50 +02:00
Šimon Brandner
d4ca087c2e
Make getLastViewedRoomsStorageKey() make sense
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-20 13:24:23 +02:00
Šimon Brandner
1934c4a32f
Add getLastViewedRoomsStorageKey()
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-20 12:39:11 +02:00
Šimon Brandner
f9292c364c
Check if we are joined
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-20 12:25:56 +02:00
Šimon Brandner
08c0f0a67e
Remove unnecessary check
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-20 12:22:25 +02:00
Šimon Brandner
a3d0ccf306
Merge branch 'develop' into spaces/context-switching
2021-04-20 12:06:59 +02:00
Sagititi
b3168e479e
Translated using Weblate (Occitan)
...
Currently translated at 11.3% (331 of 2916 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/oc/
2021-04-20 08:50:20 +00:00
iaiz
8e2afcb5c2
Translated using Weblate (Spanish)
...
Currently translated at 100.0% (2916 of 2916 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/es/
2021-04-20 08:50:17 +00:00
Imre Kristoffer Eilertsen
d0df0e9099
Translated using Weblate (Norwegian Bokmål)
...
Currently translated at 63.0% (1839 of 2916 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/nb_NO/
2021-04-20 08:50:15 +00:00
MamasLT
0eee214966
Translated using Weblate (Lithuanian)
...
Currently translated at 65.1% (1901 of 2916 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/lt/
2021-04-20 08:48:36 +00:00
Germain
9d2833c74b
Merge pull request #5884 from matrix-org/gsouquet-jitsi-logout
2021-04-20 09:16:10 +01:00
Sven Grewe
4929247a5e
Translated using Weblate (German)
...
Currently translated at 98.5% (2875 of 2916 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/de/
2021-04-20 08:08:42 +00:00