Skip to content
Snippets Groups Projects
Unverified Commit 86d3726f authored by gabriellsh's avatar gabriellsh Committed by GitHub
Browse files

Regression: Cannot open Menu in searched message. (#26172)

parent 3987360b
No related branches found
No related tags found
No related merge requests found
......@@ -327,7 +327,7 @@ export const getCommonRoomEvents = () => ({
'click .message-actions__menu'(e, template) {
const messageContext = messageArgs(this);
const { msg: message, u: user, context: ctx } = messageContext;
const room = Rooms.findOne({ _id: template.data.rid });
const room = Rooms.findOne({ _id: message.rid });
const federationContext = isRoomFederated(room) ? 'federated' : '';
const context = ctx || message.context || message.actionContext || federationContext || 'message';
const allItems = MessageAction.getButtons({ ...messageContext, message, user }, context, 'menu').map((item) => ({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment