Robin
953e3148d1
Make video sizing consistent with images ( #8102 )
...
* Make video sizing consistent with images
* Test suggestedSize
* Constrain width of media in large mode
2022-03-22 18:16:03 -04:00
Šimon Brandner
bff1ef31d6
Use styled mxids in member list v2 ( #8110 )
...
* Revert "Revert "Use styled mxids in member list (#6328 )" (#8107 )"
This reverts commit 709e6e78d2 .
* Fix disambiguated profile for bubbles
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2022-03-22 16:14:55 -06:00
Robin
cfabcdda35
Voice rooms prototype ( #8084 )
...
* Add voice room labs flag
Signed-off-by: Robin Townsend <robin@robin.town >
* Add more widget actions for interacting with Jitsi
Signed-off-by: Robin Townsend <robin@robin.town >
* Factor out a more generic Jitsi creation utility
Signed-off-by: Robin Townsend <robin@robin.town >
* Add utilities for managing voice channels
Signed-off-by: Robin Townsend <robin@robin.town >
* Enable creation of voice rooms
Signed-off-by: Robin Townsend <robin@robin.town >
* Force a maximized view of voice channel widgets
Signed-off-by: Robin Townsend <robin@robin.town >
* Add voice channel store
Signed-off-by: Robin Townsend <robin@robin.town >
* Factor out a more generic FacePile
Signed-off-by: Robin Townsend <robin@robin.town >
* Implement room tile changes for voice rooms
Signed-off-by: Robin Townsend <robin@robin.town >
* Add interactive radio component to the left panel
Signed-off-by: Robin Townsend <robin@robin.town >
* Test voice rooms
Signed-off-by: Robin Townsend <robin@robin.town >
* Update name of call room type
Signed-off-by: Robin Townsend <robin@robin.town >
* Clarify that voice rooms are under development
Signed-off-by: Robin Townsend <robin@robin.town >
* Use readonly
Signed-off-by: Robin Townsend <robin@robin.town >
* Move acks to the end of handlers
Signed-off-by: Robin Townsend <robin@robin.town >
* Add comment about avatar URLs coming from Jitsi
Signed-off-by: Robin Townsend <robin@robin.town >
* Don't use unicode ellipses
for translation reasons?
Signed-off-by: Robin Townsend <robin@robin.town >
* Fix tests
Signed-off-by: Robin Townsend <robin@robin.town >
* Fix tests, again
Signed-off-by: Robin Townsend <robin@robin.town >
* Remove unnecessary export
Signed-off-by: Robin Townsend <robin@robin.town >
* Ack Jitsi events when we wait for them
Signed-off-by: Robin Townsend <robin@robin.town >
2022-03-22 16:14:11 -06:00
Kerry
b04d31b5be
Live location sharing: live share warning in room ( #8100 )
...
* add duration dropdown to live location picker
Signed-off-by: Kerry Archibald <kerrya@element.io >
* tidy comments
Signed-off-by: Kerry Archibald <kerrya@element.io >
* setup component
Signed-off-by: Kerry Archibald <kerrya@element.io >
* replace references to beaconInfoId with beacon.identifier
Signed-off-by: Kerry Archibald <kerrya@element.io >
* icon
Signed-off-by: Kerry Archibald <kerrya@element.io >
* component for styled live beacon icon
Signed-off-by: Kerry Archibald <kerrya@element.io >
* emit liveness change whenever livebeaconIds changes
Signed-off-by: Kerry Archibald <kerrya@element.io >
* Handle multiple live beacons in room share warning, test
Signed-off-by: Kerry Archibald <kerrya@element.io >
* un xdescribe beaconstore tests
Signed-off-by: Kerry Archibald <kerrya@element.io >
* missed copyrights
Signed-off-by: Kerry Archibald <kerrya@element.io >
* i18n
Signed-off-by: Kerry Archibald <kerrya@element.io >
* tidy
Signed-off-by: Kerry Archibald <kerrya@element.io >
2022-03-22 13:57:12 +00:00
Matthew Hodgson
c8d3b51640
fix quicktime video thumbnailing ( #8108 )
...
when reading quicktime files for thumbnailing and/or display, clobber the mimetype from `video/quicktime` to be `video/mp4` so browsers don't choke on it.
2022-03-22 12:23:25 +00:00
Travis Ralston
709e6e78d2
Revert "Use styled mxids in member list ( #6328 )" ( #8107 )
...
This reverts commit 5d28e0533d .
2022-03-21 19:58:38 -06:00
Šimon Brandner
5d28e0533d
Use styled mxids in member list ( #6328 )
...
* Add DisambiguatedProfile
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
* Give DisambiguatedProfile some nice options
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
* Delint
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
* Use DisambiguatedProfile in member tile
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
* Basic handling of text overflow
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
* Use name instead of rawDisplayName
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
* This seems to make more sense
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
* Reodred
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
* rethemedex
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
* Fix import
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
* Fix color
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
* Appease the linter
* Re-apply UserIdentifier patch
Co-authored-by: Matthew Hodgson <matthew@matrix.org >
Co-authored-by: Travis Ralston <travisr@matrix.org >
2022-03-22 01:08:43 +00:00
Kerry
0b80755fb8
extract reusable styled live beacon icon ( #8103 )
...
* extract reusable styles live beacon icon
Signed-off-by: Kerry Archibald <kerrya@element.io >
* add secondary live lcation color
Signed-off-by: Kerry Archibald <kerrya@element.io >
2022-03-21 16:43:43 +00:00
Michael Telatynski
dd53b226eb
Allow sending files as replies as per MSC3676 ( #8020 )
2022-03-21 12:03:59 +00:00
Kerry
14653d1378
Live location share - set time limit ( #8082 )
...
* add mocking helpers for platform peg
Signed-off-by: Kerry Archibald <kerrya@element.io >
* basic working live duration dropdown
Signed-off-by: Kerry Archibald <kerrya@element.io >
* add duration format utility
Signed-off-by: Kerry Archibald <kerrya@element.io >
* add duration dropdown to live location picker
Signed-off-by: Kerry Archibald <kerrya@element.io >
* adjust style to allow overflow and variable height chin
Signed-off-by: Kerry Archibald <kerrya@element.io >
* tidy comments
Signed-off-by: Kerry Archibald <kerrya@element.io >
* arrow fn change
Signed-off-by: Kerry Archibald <kerrya@element.io >
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io >
2022-03-21 12:42:58 +01:00
Šimon Brandner
8418b4fd71
Move KeyboardShortcut styling into a separate file ( #8067 )
2022-03-21 11:41:32 +00:00
Matthew Hodgson
22712d3091
fix ugly warning from nesting div tags in p tags ( #8094 )
...
might make negligible spacing changes to text buttons in MemberInfo, but not enough that i could spot them.
2022-03-21 10:27:19 +00:00
Robin
83f2bf4261
Improve remove recent messages dialog ( #6114 )
...
* Allow keeping state events when removing recent messages
The remove recent messages dialog redacts most state events since they
can be abuse vectors as well, however some users that see the option
actually want to use it to only remove messages. This adds a checkbox
option to do so.
Signed-off-by: Robin Townsend <robin@robin.town >
* Don't redact encryption events when removing recent messages
Signed-off-by: Robin Townsend <robin@robin.town >
* Show UserMenu spinner while removing recent messages
This also generalizes the UserMenu spinner to work with other types of
actions in the future.
Signed-off-by: Robin Townsend <robin@robin.town >
* Clarify remove recent messages warning
Clarify that they are removed for everyone in the conversation, not just
yourself.
Signed-off-by: Robin Townsend <robin@robin.town >
* Adjust copy and preserve state events by default
* Redact messages in reverse chronological order
Signed-off-by: Robin Townsend <robin@robin.town >
2022-03-18 20:08:32 +00:00
Travis Ralston
d8a939df5d
Use & enforce snake_case naming convention on config.json settings ( #8062 )
...
* Document and support the established naming convention for config opts
This change:
* Rename `ConfigOptions` to `IConfigOptions` to match code convention/style, plus move it to a dedicated file
* Update comments and surrounding documentation
* Define every single documented option (from element-web's config.md)
* Enable a linter to enforce the convention
* Invent a translation layer for a different change to use
* No attempt to fix build errors from doing this (at this stage)
* Add demo of lint rule in action
* Fix all obvious instances of SdkConfig case conflicts
* Fix tests to use SdkConfig directly
* Add docs to make unset() calling safer
* Appease the linter
* Update documentation to match snake_case_config
* Fix more instances of square brackets off SdkConfig
2022-03-18 10:12:36 -06:00
Kerry
da097d42ef
fix ts issues in SendMessageComposer-test ( #8077 )
...
* fix ts issues in SendMessageComposer-test
Signed-off-by: Kerry Archibald <kerrya@element.io >
* remove empty file
Signed-off-by: Kerry Archibald <kerrya@element.io >
* better event type for m.room.message
Signed-off-by: Kerry Archibald <kerrya@element.io >
2022-03-18 10:07:33 +00:00
Kerry
cdcf6d0fd1
Live location sharing: create beacon info event from location picker ( #8072 )
...
* create beacon info event with defaulted duration
Signed-off-by: Kerry Archibald <kerrya@element.io >
* add shareLiveLocation fn
Signed-off-by: Kerry Archibald <kerrya@element.io >
* test share live location
Signed-off-by: Kerry Archibald <kerrya@element.io >
* i18n
Signed-off-by: Kerry Archibald <kerrya@element.io >
2022-03-18 10:52:24 +01:00
Germain
4e4ce65f58
Use redaction enum event type rather than hardcoded string ( #8071 )
2022-03-17 18:38:29 +01:00
Kerry
176e49e312
enable geolocation behaviour in location picker for live share type ( #8068 )
...
* enable geolocation behaviour in location picker for live share type
Signed-off-by: Kerry Archibald <kerrya@element.io >
* add empty lines
Signed-off-by: Kerry Archibald <kerrya@element.io >
2022-03-17 09:26:47 +01:00
Kerry
9f6c238827
Add simple live share warning ( #8066 )
...
* add simple live share warning
Signed-off-by: Kerry Archibald <kerrya@element.io >
* rough first cut of OwnBeaconStore
Signed-off-by: Kerry Archibald <kerrya@element.io >
* working (?) has live beacons status
Signed-off-by: Kerry Archibald <kerrya@element.io >
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io >
* add left panel share warning
Signed-off-by: Kerry Archibald <kerrya@element.io >
* setup for tests
Signed-off-by: Kerry Archibald <kerrya@element.io >
* test ownbeaconstore
Signed-off-by: Kerry Archibald <kerrya@element.io >
* add copyright
Signed-off-by: Kerry Archibald <kerrya@element.io >
* add copyright
Signed-off-by: Kerry Archibald <kerrya@element.io >
* remove warning banner
Signed-off-by: Kerry Archibald <kerrya@element.io >
* fix test
Signed-off-by: Kerry Archibald <kerrya@element.io >
* fix tests for weird asyncstore closure issues
Signed-off-by: Kerry Archibald <kerrya@element.io >
* fix OwnBeaconStore more...
Signed-off-by: Kerry Archibald <kerrya@element.io >
* revert loose change to LeftPanel
Signed-off-by: Kerry Archibald <kerrya@element.io >
* Revert "remove warning banner"
This reverts commit 4529813b12e3206731f18e0514aa6e0f6896d03a.
* test live share warning
Signed-off-by: Kerry Archibald <kerrya@element.io >
2022-03-17 09:25:57 +01:00
Alexander Stephan
26e6f8deca
Improve formatting features in the editor ( #7104 )
...
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com >
2022-03-16 09:46:07 +00:00
Andy Balaam
cbf5fbf870
Enable the live location share button ( #8056 )
2022-03-16 09:37:09 +00:00
Andy Balaam
e1fdff46f5
Show "Share my location" button ( #8054 )
2022-03-15 15:04:52 +00:00
J. Ryan Stinnett
c4428a804c
Merge pull request from GHSA-qmf4-7w7j-vf23
2022-03-15 14:08:34 +00:00
Germain
2acc8fd18b
Implement is_falling_back in accordance to MSC3440 ( #8055 )
2022-03-15 13:52:37 +00:00
David Baker
cc9651089e
Fix freeze/crash when 1:1 calling ( #8057 )
...
* Fix freeze/crash when 1:1 calling
Don't log call feed objects because they reference the client and
it causes the client to get logged too.
* Log purpose too
2022-03-15 13:52:22 +00:00
Robin
744eeb53fe
Don't assume that widget IDs are unique ( #8052 )
...
* Don't assume that widget IDs are unique
Signed-off-by: Robin Townsend <robin@robin.town >
* Don't remove live tiles that don't exist
Signed-off-by: Robin Townsend <robin@robin.town >
* Add unit test for AppTile's live tile tracking
Signed-off-by: Robin Townsend <robin@robin.town >
2022-03-15 12:15:26 +00:00
Šimon Brandner
8d13e238b9
Keybinding code unification #6 ( #8042 )
2022-03-14 13:25:51 +00:00
David Baker
23d5ba9c89
Support MSC3026 busy presence ( #8043 )
...
* Support MSC3026 busy presence
* Use UnstableValue
* Add the import
2022-03-14 10:22:12 +00:00
Suguru Hirahara
afadea01a0
Reuse a common part of the translation ( #7978 )
2022-03-14 09:12:02 +00:00
Michael Telatynski
14807de552
Show displayname in non-narrow thread summeries ( #8036 )
...
* Show displayname in non-narrow thread summeries
* Iterate PR
* Iterate PR to use line-height based approach
* Fix hover/focus chevron on thread summary relying on font character
2022-03-11 19:24:18 +00:00
Germain
7508fd975f
Prevent thread creation on events with existing relation ( #8037 )
2022-03-11 17:51:38 +00:00
Michael Telatynski
5262d5c315
Fix clicking on copy link to thread wrongly opening thread ( #8038 )
2022-03-11 17:13:23 +00:00
Michael Telatynski
1801eddde1
Tweak search dialog based on new designs ( #7980 )
2022-03-11 09:34:44 +00:00
Germain
21d3cb08a9
Switch to using stable values for threads ( #8019 )
2022-03-11 09:04:22 +00:00
Kerry
d38a1fa201
fallback to event text in location body when map unavailable ( #7982 )
...
* center icon better
Signed-off-by: Kerry Archibald <kerrya@element.io >
* remove debug
Signed-off-by: Kerry Archibald <kerrya@element.io >
* retrigger all builds
Signed-off-by: Kerry Archibald <kerrya@element.io >
* set assetType on share event
Signed-off-by: Kerry Archibald <kerrya@element.io >
* use pin marker on map for pin drop share
Signed-off-by: Kerry Archibald <kerrya@element.io >
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io >
* test events
Signed-off-by: Kerry Archibald <kerrya@element.io >
* pin drop helper text
Signed-off-by: Kerry Archibald <kerrya@element.io >
* use generic location type
Signed-off-by: Kerry Archibald <kerrya@element.io >
* add navigationcontrol when in pin mode
Signed-off-by: Kerry Archibald <kerrya@element.io >
* allow pin drop without location permissions
Signed-off-by: Kerry Archibald <kerrya@element.io >
* remove geolocate control when pin dropping without geo perms
Signed-off-by: Kerry Archibald <kerrya@element.io >
* test locationpicker
Signed-off-by: Kerry Archibald <kerrya@element.io >
* test marker type, tidy
Signed-off-by: Kerry Archibald <kerrya@element.io >
* move findMapStyleUrl
Signed-off-by: Kerry Archibald <kerrya@element.io >
* fallback to event content when cant render map
Signed-off-by: Kerry Archibald <kerrya@element.io >
* update mocks in location picker, show same messages as timeline
Signed-off-by: Kerry Archibald <kerrya@element.io >
* style error message in location share menu
Signed-off-by: Kerry Archibald <kerrya@element.io >
* i18n
Signed-off-by: Kerry Archibald <kerrya@element.io >
* forgotten copyright
Signed-off-by: Kerry Archibald <kerrya@element.io >
* add copyright
Signed-off-by: Kerry Archibald <kerrya@element.io >
* update style
Signed-off-by: Kerry Archibald <kerrya@element.io >
* icon bigger
Signed-off-by: Kerry Archibald <kerrya@element.io >
2022-03-11 09:52:57 +01:00
Robin
3608fdb2ae
Paginate responses to pinned polls ( #8025 )
...
* Paginate responses to pinned polls
Signed-off-by: Robin Townsend <robin@robin.town >
* Test that pinned polls display paginated responses
Signed-off-by: Robin Townsend <robin@robin.town >
2022-03-10 18:14:34 +00:00
Kerry
e96d9157a9
update location event types ( #8022 )
...
* update types
Signed-off-by: Kerry Archibald <kerrya@element.io >
* fix tests
Signed-off-by: Kerry Archibald <kerrya@element.io >
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io >
* trigger
Signed-off-by: Kerry Archibald <kerrya@element.io >
2022-03-10 18:03:31 +00:00
chagai95
a4b2e0c0d8
Don't show empty 3 dots in Message Composer when there aren't any more buttons ( #8023 )
2022-03-10 17:19:48 +00:00
Michael Telatynski
3f67a389c1
Fix incorrect usage of unstable variant of is_falling_back ( #8016 )
2022-03-10 15:32:00 +00:00
Michael Telatynski
5902ddaf06
Fix issues with ThreadSummary in msc-enabled mode ( #8018 )
2022-03-10 13:34:24 +00:00
Robin
225581de6a
Don't escape pasted text ( #8014 )
...
Signed-off-by: Robin Townsend <robin@robin.town >
2022-03-10 08:30:43 -05:00
Michael Telatynski
48cd83b9d5
Fix issues with thread summaries being wrong or stale ( #8015 )
2022-03-10 10:29:28 +00:00
Suguru Hirahara
93bde40568
Fix button border color of LeaveSpaceDialog ( #8010 )
2022-03-10 07:52:09 +00:00
Robin
7b71a9fb65
Fix room list scroll jumps ( #7991 )
...
Signed-off-by: Robin Townsend <robin@robin.town >
2022-03-09 13:18:17 -05:00
Kerry
14684c6296
Send pin drop location share events ( #7967 )
...
* center icon better
Signed-off-by: Kerry Archibald <kerrya@element.io >
* remove debug
Signed-off-by: Kerry Archibald <kerrya@element.io >
* retrigger all builds
Signed-off-by: Kerry Archibald <kerrya@element.io >
* set assetType on share event
Signed-off-by: Kerry Archibald <kerrya@element.io >
* use pin marker on map for pin drop share
Signed-off-by: Kerry Archibald <kerrya@element.io >
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io >
* test events
Signed-off-by: Kerry Archibald <kerrya@element.io >
* pin drop helper text
Signed-off-by: Kerry Archibald <kerrya@element.io >
* use generic location type
Signed-off-by: Kerry Archibald <kerrya@element.io >
* add navigationcontrol when in pin mode
Signed-off-by: Kerry Archibald <kerrya@element.io >
* allow pin drop without location permissions
Signed-off-by: Kerry Archibald <kerrya@element.io >
* remove geolocate control when pin dropping without geo perms
Signed-off-by: Kerry Archibald <kerrya@element.io >
* test locationpicker
Signed-off-by: Kerry Archibald <kerrya@element.io >
* test marker type, tidy
Signed-off-by: Kerry Archibald <kerrya@element.io >
* tweak style
Signed-off-by: Kerry Archibald <kerrya@element.io >
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io >
2022-03-09 18:14:07 +01:00
Michael Telatynski
288e47fd81
Update m.render_in to is_falling_back (+ unstable field) ( #7979 )
2022-03-09 16:15:53 +00:00
J. Ryan Stinnett
65691202f7
Add lint for unused locals ( #8007 )
2022-03-09 12:05:16 +00:00
Michael Telatynski
782ce016d1
Wrap EventTile rather than its children in an error boundary ( #7945 )
2022-03-09 11:22:36 +00:00
Sinharitik589
4592f9f7f9
Normalized shortcut formatting for quote expansion control ( #7995 )
2022-03-09 09:52:31 +00:00
Suguru Hirahara
930120823f
Remove hard-coded whitespace characters from SpaceCreateMenu.tsx ( #7885 )
...
Whitespace characters should not be hard-coded as some languages do not
have the concept of whitespace in the first place.
Fixes https://github.com/vector-im/element-web/issues/21187
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com >
2022-03-08 14:41:27 -07:00