Commit graph

39709 commits

Author SHA1 Message Date
Andy Balaam
afbc843157
Fit location into the width of the container (#7705) 2022-02-02 11:41:33 +00:00
Kerry
cb1c94dd2b
Fix leaks in Login unit tests (#7704)
* make Login-test tsx, fix leaks

Signed-off-by: Kerry Archibald <kerrya@element.io>

* missed lint

Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-02-02 11:18:55 +00:00
Michael Telatynski
fce19d763a
Make Spotlight Dialog roving reset more stable (#7698) 2022-02-02 09:31:05 +00:00
Andy Balaam
f5226f9d5b
Simplify Composer buttons (#7678)
* Render a CollapsibleButton's children (needed by UploadButton)

* Make UploadButton ready to live inside an overflow menu

* Always show overflow menu in composer: main buttons are emoji and attach

* Re-order composer buttons as per design

* Re-word composer button captions to be simple nouns

* Don't rotate More options button when clicked

* Move the composer menu and dialogs 16px in from right

* Reduce shadow on composer More menu

* From review: remove else clause

* From review: take input out of button

* Update test snapshots

* Update snapshots
2022-02-02 09:30:53 +00:00
Michael Telatynski
c011fb7475
Fix incorrect sizing of DecoratedRoomAvatar in RoomHeader (#7697) 2022-02-02 09:22:27 +00:00
Šimon Brandner
bb03298e6d
Add a warning to the console to discourage attacks and encourage contributing (#7673) 2022-02-01 17:24:17 +00:00
Eric Eastwood
9b0da552e7
Fix vertical spacing in compact <ContextMenu> (#7684)
Fix https://github.com/vector-im/element-web/issues/20801

Regressed in https://github.com/matrix-org/matrix-react-sdk/pull/7339

Relevant styles were first added in https://github.com/matrix-org/matrix-react-sdk/pull/4858
(context behind why the original styles were added)

---

## Cause

Battling CSS specificity between the default and compact styles, https://specificity.keegan.st/

Known good (On `app.element.io` (expected)):
```css
// 0 3 0
.mx_IconizedContextMenu .mx_IconizedContextMenu_optionList .mx_AccessibleButton {
    padding-top: 12px;
    padding-bottom: 12px;
}

// Compact styles override our default rules because they come
// after the other styles (source order) and have the same specificity
// 0 3 0
.mx_IconizedContextMenu.mx_IconizedContextMenu_compact .mx_IconizedContextMenu_optionList > * {
    padding: 8px 16px 8px 11px;
}
```

Bad (On `develop` (broken)):
```css
// Default rules always override because they have higher specificity.
// The `:not()` selector doesn't add any extra specificity but the selectors inside the `:not(...)` do.
// 0 4 0
.mx_IconizedContextMenu .mx_IconizedContextMenu_optionList .mx_AccessibleButton:not(.mx_AccessibleButton_hasKind) {
    padding-top: 12px;
    padding-bottom: 12px;
}

// 0 3 0
.mx_IconizedContextMenu.mx_IconizedContextMenu_compact .mx_IconizedContextMenu_optionList > * {
    padding: 8px 16px 8px 11px;
}
```
2022-02-01 11:23:21 -06:00
RiotRobot
82f3888cee Reset matrix-js-sdk back to develop branch 2022-02-01 15:52:28 +00:00
RiotRobot
e90885dd9d Merge branch 'master' into develop 2022-02-01 15:52:12 +00:00
RiotRobot
34a95f4d27 v3.39.1 2022-02-01 15:50:26 +00:00
RiotRobot
710c4b77f2 Prepare changelog for v3.39.1 2022-02-01 15:50:25 +00:00
Michael Telatynski
8dd0722e04
Update eventName=Screen to $screen to match PostHog's special behaviour (#7667) 2022-02-01 15:49:49 +00:00
David Baker
806cd264df
Fix the sticker picker (#7692) (#7695)
* Fix the sticker picker

Don't stop user widgets on room change: they're not room-specific.

Fixes https://github.com/vector-im/element-web/issues/20797

* Use 'userWidget' prop rather than roomId being defined
2022-02-01 15:40:50 +00:00
David Baker
6c16a2c9dd
Fix publishing address wrongly demanding the alias be available (#7690) (#7693)
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2022-02-01 15:40:37 +00:00
David Baker
b7c8ce6920
Ensure UserInfo can be rendered without a room (#7687) (#7694)
Co-authored-by: David Baker <dave@matrix.org>

Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2022-02-01 15:40:27 +00:00
David Baker
5b999300b2
Fix the sticker picker (#7692)
* Fix the sticker picker

Don't stop user widgets on room change: they're not room-specific.

Fixes https://github.com/vector-im/element-web/issues/20797

* Use 'userWidget' prop rather than roomId being defined
2022-02-01 15:34:22 +00:00
Michael Telatynski
98c5f50f36
Fix publishing address wrongly demanding the alias be available (#7690) 2022-02-01 15:06:26 +00:00
Michael Telatynski
bf8c04ff55
Prevent MemberAvatar soft-crashing when rendered with null member prop (#7691) 2022-02-01 15:06:16 +00:00
Germain
5973d725e0
Add new threads to the panel as they are discovered (#7688) 2022-02-01 15:01:00 +00:00
Michael Telatynski
afe6021c9a
Ensure UserInfo can be rendered without a room (#7687)
Co-authored-by: David Baker <dave@matrix.org>
2022-02-01 10:17:55 +00:00
Robin
bfab09e977
Use a more correct test for emoji (#7685) 2022-02-01 09:45:22 +00:00
Michael Telatynski
18995363d0
Make polls fill column width in bubbles layout (#7661) 2022-02-01 09:27:14 +00:00
UwUnyaa
5d93ca5f2a
Irc full name overlap (#7652) 2022-02-01 09:24:05 +00:00
Germain
0e36f91d76
Use updated createThread method (#7670) 2022-02-01 08:58:45 +00:00
Ajay Bura
3e1a5f7021
Fix warning image overflow in space hierarchy (#7686) 2022-02-01 10:21:58 +05:30
David Baker
9ffc141350
Yarn upgrade (#7683) 2022-01-31 16:54:01 +00:00
Šimon Brandner
a55482b0ff
Don't show replaced calls in the timeline (#7452)
* Don't show replaced calls in the timeline

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>

* Revert changes to CallEvent

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>

* Add option to force hide event

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>

* Hide replaced calls

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2022-01-31 16:09:34 +00:00
Michael Telatynski
991257cbc3
Fix accessibility and consistency of MessageComposerButtons (#7679) 2022-01-31 16:05:05 +00:00
Šimon Brandner
a17d585a12
Work towards unifying KeyboardShortcuts and KeyBindingsDefaults #2 (#7674) 2022-01-31 15:55:45 +00:00
Faye Duxovni
7e5de9294c
Refine UISI autorageshake conditions to cut down on false alarms (#7650)
The AutoRageshakeStore now only starts submitting rageshakes after the initial sync has completed, and provides a short grace period for decryption failures to resolve.
2022-01-31 10:49:27 -05:00
J. Ryan Stinnett
f99ae6d46a
Tweak /addwidget widget names (#7681) 2022-01-31 15:37:49 +00:00
Faye Duxovni
655f473612
Fix 'undefined' labels on rageshakes (#7680) 2022-01-31 10:15:46 -05:00
RiotRobot
8221faad6c Reset matrix-js-sdk back to develop branch 2022-01-31 14:57:25 +00:00
RiotRobot
9283202b87 Resetting package fields for development 2022-01-31 14:57:14 +00:00
RiotRobot
a25fea9f96 Merge branch 'master' into develop 2022-01-31 14:57:13 +00:00
RiotRobot
bdcdd745ba v3.39.0 2022-01-31 14:55:25 +00:00
RiotRobot
8f9112a40e Prepare changelog for v3.39.0 2022-01-31 14:55:24 +00:00
RiotRobot
e0b041bdca Upgrade matrix-js-sdk to 15.5.0 2022-01-31 14:48:14 +00:00
Kerry
085ecc7f5f
Chat export parameter customisation (#7647)
* use export settings and hide fields

Signed-off-by: Kerry Archibald <kerrya@element.io>

* fix exporter tests

Signed-off-by: Kerry Archibald <kerrya@element.io>

* test ExportDialog with settings

Signed-off-by: Kerry Archibald <kerrya@element.io>

* tidy debugs, rename setting to Parameters

Signed-off-by: Kerry Archibald <kerrya@element.io>

* use reasonable 100gb limit

Signed-off-by: Kerry Archibald <kerrya@element.io>

* use normal setting instead of UIFeature

Signed-off-by: Kerry Archibald <kerrya@element.io>

* use a customisation

Signed-off-by: Kerry Archibald <kerrya@element.io>

* move validateNumberInRange to utils

Signed-off-by: Kerry Archibald <kerrya@element.io>

* use nullish coalesce

Signed-off-by: Kerry Archibald <kerrya@element.io>

* use 8gb size limit for customisation

Signed-off-by: Kerry Archibald <kerrya@element.io>

* update comments

Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-01-31 12:54:14 +01:00
Šimon Brandner
ad87ee0a0f
Don't show shield next to deleted messages (#7671) 2022-01-31 11:21:13 +00:00
Robin
53aca69594
Fix font size of spaces between big emoji (#7675) 2022-01-31 09:53:04 +00:00
Andy Balaam
b5a56698d6
Refactor MessageComposerButtons (#7668) 2022-01-31 09:19:26 +00:00
David Baker
7c20eb9b74
Put call on hold when transfer dialog is opened (#7669)
And take it off hold if the dialog is cancelled.

Also changes the onFinished signature of invitedialog which claimed
to return an array of strings but never did, so now it just returns
a boolean.
2022-01-28 17:05:57 +00:00
Travis Ralston
b04d2de313
Fix left panel widgets causing app-wide crash (#7659) 2022-01-28 08:52:46 -07:00
Travis Ralston
cb2c835c09
Fix left panel widgets causing app-wide crash (#7660) 2022-01-28 08:52:28 -07:00
Andy Balaam
2229437424
Refactor renderButtons() into MessageComposerButtons component (#7664) 2022-01-28 15:44:03 +00:00
Šimon Brandner
db09d16205
Fix shift-enter repeating last character (#7665) 2022-01-28 15:32:30 +00:00
Andy Balaam
0c10385dd2
Remove unused code from Stickerpicker (#7663)
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2022-01-28 12:22:45 +00:00
Andy Balaam
344b506184
Rename properties related to Stickers (#7662)
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2022-01-28 10:58:58 +00:00
Michael Telatynski
cbc671b19f
Share e2ee keys when using /invite SlashCommand (#7655) 2022-01-28 10:02:37 +00:00