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

Commit

Permalink
Remove more stray code
Browse files Browse the repository at this point in the history
  • Loading branch information
akirk committed Mar 8, 2024
1 parent b97af9d commit 72eb223
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
2 changes: 0 additions & 2 deletions src/components/views/rooms/EventTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1211,7 +1211,6 @@ export class UnwrappedEventTile extends React.Component<EventTileProps, IState>
"ref": this.ref,
"className": classes,
"aria-live": ariaLive,
"aria-label": this.props.mxEvent.sender.name + ". " + this.props.mxEvent.event.content.body,
"aria-atomic": true,
"data-scroll-tokens": scrollToken,
"data-has-reply": !!replyChain,
Expand Down Expand Up @@ -1397,7 +1396,6 @@ export class UnwrappedEventTile extends React.Component<EventTileProps, IState>
"className": classes,
"tabIndex": -1,
"aria-live": ariaLive,
"aria-label": this.props.mxEvent.sender.name + ". " + this.props.mxEvent.event.content.body,
"aria-atomic": "true",
"data-scroll-tokens": scrollToken,
"data-layout": this.props.layout,
Expand Down
10 changes: 0 additions & 10 deletions src/components/views/rooms/SendMessageComposer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -308,16 +308,6 @@ export class SendMessageComposer extends React.Component<ISendMessageComposerPro
return;
}
const replyingToThread = this.props.relation?.key === THREAD_RELATION_TYPE.name;
const navAction = getKeyBindingsManager().getNavigationAction(event);
switch (navAction) {
case KeyBindingAction.SelectPrevMessage:
(
document.querySelector(".mx_EventTile_selected") || document.querySelector(".mx_EventTile_last")
)?.focus();
event.preventDefault();
event.stopPropagation();
return;
}

const action = getKeyBindingsManager().getMessageComposerAction(event);
switch (action) {
Expand Down

0 comments on commit 72eb223

Please sign in to comment.