Skip to content

Commit

Permalink
Fix on message context flagging
Browse files Browse the repository at this point in the history
  • Loading branch information
Educg550 committed Jan 12, 2023
1 parent 55a5991 commit f77c4a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/meteor/app/ui-utils/client/lib/MessageAction.ts
Expand Up @@ -181,7 +181,7 @@ export const MessageAction = new (class {
if (props.message) {
return this.getButtonsByCondition({ ...props, context }, this.getButtonsByContext(context, filteredButtons));
}
return filteredButtons;
return allButtons;
}

resetButtons(): void {
Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/client/components/message/toolbox/Toolbox.tsx
Expand Up @@ -21,7 +21,7 @@ const getMessageContext = (message: IMessage, room: IRoom): MessageActionContext
if (isRoomFederated(room)) {
return 'federated';
}
if (isThreadMessage(message)) {
if (isThreadMessage(message) || message.renderedOnThread) {
return 'threads';
}
return 'message';
Expand Down

0 comments on commit f77c4a0

Please sign in to comment.