Skip to content

Commit 753f7aa

Browse files
committed
Remove the DM button from new room tiles
Fixes element-hq/element-web#14221
1 parent b9ce10b commit 753f7aa

File tree

2 files changed

+2
-15
lines changed

2 files changed

+2
-15
lines changed

res/css/views/rooms/_RoomTile2.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,6 @@ limitations under the License.
193193
mask-image: url('$(res)/img/feather-customised/arrow-down.svg');
194194
}
195195

196-
.mx_RoomTile2_iconUser::before {
197-
mask-image: url('$(res)/img/feather-customised/user.svg');
198-
}
199-
200196
.mx_RoomTile2_iconSettings::before {
201197
mask-image: url('$(res)/img/feather-customised/settings.svg');
202198
}

src/components/views/rooms/RoomTile2.tsx

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,8 @@ export default class RoomTile2 extends React.Component<IProps, IState> {
135135
ev.preventDefault();
136136
ev.stopPropagation();
137137

138-
if (tagId === DefaultTagID.DM) {
139-
// TODO: DM Flagging
140-
} else {
141-
// TODO: XOR favourites and low priority
142-
}
138+
// TODO: Support tagging: https://github.com/vector-im/riot-web/issues/14211
139+
// TODO: XOR favourites and low priority: https://github.com/vector-im/riot-web/issues/14210
143140
};
144141

145142
private onLeaveRoomClick = (ev: ButtonEvent) => {
@@ -196,12 +193,6 @@ export default class RoomTile2 extends React.Component<IProps, IState> {
196193
<span>{_t("Low Priority")}</span>
197194
</AccessibleButton>
198195
</li>
199-
<li>
200-
<AccessibleButton onClick={(e) => this.onTagRoom(e, DefaultTagID.DM)}>
201-
<span className="mx_IconizedContextMenu_icon mx_RoomTile2_iconUser" />
202-
<span>{_t("Direct Chat")}</span>
203-
</AccessibleButton>
204-
</li>
205196
<li>
206197
<AccessibleButton onClick={this.onOpenRoomSettings}>
207198
<span className="mx_IconizedContextMenu_icon mx_RoomTile2_iconSettings" />

0 commit comments

Comments
 (0)