1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-12-07 03:42:20 +03:00

Hide composer and call buttons when the room is tombstoned (#7975)

This commit is contained in:
Michael Telatynski
2022-03-04 15:53:22 +00:00
committed by GitHub
parent 675b4271e9
commit 0e60ad98c1
11 changed files with 196 additions and 93 deletions

View File

@@ -334,7 +334,7 @@ export default class MessageActionBar extends React.PureComponent<IMessageAction
// Like the resend button, the react and reply buttons need to appear before the edit.
// The only catch is we do the reply button first so that we can make sure the react
// button is the very first button without having to do length checks for `splice()`.
if (this.context.canReply) {
if (this.context.canSendMessages) {
if (this.showReplyInThreadAction) {
toolbarOpts.splice(0, 0, threadTooltipButton);
}