Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 55a18b8

Browse files
committed
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into t3chguy/fix/15255
� Conflicts: � src/components/views/settings/ProfileSettings.js
2 parents 4bd7ae5 + 39c4912 commit 55a18b8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+1424
-1747
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
"linkifyjs": "^2.1.9",
8080
"lodash": "^4.17.19",
8181
"matrix-js-sdk": "github:matrix-org/matrix-js-sdk#develop",
82+
"matrix-widget-api": "^0.1.0-beta.2",
8283
"minimist": "^1.2.5",
8384
"pako": "^1.0.11",
8485
"parse5": "^5.1.1",

res/css/structures/_RoomDirectory.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,10 @@ limitations under the License.
133133
.mx_RoomDirectory_topic {
134134
cursor: initial;
135135
color: $light-fg-color;
136+
display: -webkit-box;
137+
-webkit-box-orient: vertical;
138+
-webkit-line-clamp: 3;
139+
overflow: hidden;
136140
}
137141

138142
.mx_RoomDirectory_alias {

res/css/views/rooms/_AppsDrawer.scss

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,6 @@ $MiniAppTileHeight: 200px;
7878
font-size: $font-12px;
7979
}
8080

81-
.mx_AddWidget_button_full_width {
82-
max-width: 960px;
83-
}
84-
8581
.mx_SetAppURLDialog_input {
8682
border-radius: 3px;
8783
border: 1px solid $input-border-color;
@@ -92,7 +88,6 @@ $MiniAppTileHeight: 200px;
9288
}
9389

9490
.mx_AppTile {
95-
max-width: 960px;
9691
width: 50%;
9792
border: 5px solid $widget-menu-bar-bg-color;
9893
border-radius: 4px;
@@ -105,7 +100,6 @@ $MiniAppTileHeight: 200px;
105100
}
106101

107102
.mx_AppTileFullWidth {
108-
max-width: 960px;
109103
width: 100%;
110104
margin: 0;
111105
padding: 0;
@@ -116,7 +110,6 @@ $MiniAppTileHeight: 200px;
116110
}
117111

118112
.mx_AppTile_mini {
119-
max-width: 960px;
120113
width: 100%;
121114
margin: 0;
122115
padding: 0;

res/css/views/settings/_AvatarSetting.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ limitations under the License.
1616

1717
.mx_AvatarSetting_avatar {
1818
width: 90px;
19+
min-width: 90px; // so it doesn't get crushed by the flexbox in languages with longer words
1920
height: 90px;
2021
margin-top: 8px;
2122
position: relative;

res/css/views/voip/_CallContainer.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ limitations under the License.
5959
display: flex;
6060
direction: row;
6161

62-
img {
62+
img, .mx_BaseAvatar_initial {
6363
margin: 8px;
6464
}
6565

src/Avatar.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ function urlForColor(color) {
8282
const colorToDataURLCache = new Map();
8383

8484
export function defaultAvatarUrlForString(s) {
85+
if (!s) return ""; // XXX: should never happen but empirically does by evidence of a rageshake
8586
const defaultColors = ['#0DBD8B', '#368bd6', '#ac3ba8'];
8687
let total = 0;
8788
for (let i = 0; i < s.length; ++i) {

src/CallHandler.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ import {base32} from "rfc4648";
7575
import QuestionDialog from "./components/views/dialogs/QuestionDialog";
7676
import ErrorDialog from "./components/views/dialogs/ErrorDialog";
7777
import WidgetStore from "./stores/WidgetStore";
78-
import ActiveWidgetStore from "./stores/ActiveWidgetStore";
78+
import { WidgetMessagingStore } from "./stores/widgets/WidgetMessagingStore";
79+
import { ElementWidgetActions } from "./stores/widgets/ElementWidgetActions";
7980

8081
// until we ts-ify the js-sdk voip code
8182
type Call = any;
@@ -503,10 +504,10 @@ export default class CallHandler {
503504

504505
const jitsiWidgets = roomInfo.widgets.filter(w => WidgetType.JITSI.matches(w.type));
505506
jitsiWidgets.forEach(w => {
506-
const messaging = ActiveWidgetStore.getWidgetMessaging(w.id);
507+
const messaging = WidgetMessagingStore.instance.getMessagingForId(w.id);
507508
if (!messaging) return; // more "should never happen" words
508509

509-
messaging.hangup();
510+
messaging.transport.send(ElementWidgetActions.HangupCall, {});
510511
});
511512
}
512513
}

src/FromWidgetPostMessageApi.js

Lines changed: 0 additions & 275 deletions
This file was deleted.

0 commit comments

Comments
 (0)