Give DelegateContextMenu an actual room
This allows me to hide the "Reply" action for read-only rooms. Don't ask me how it even worked before, I don't know.
This commit is contained in:
@@ -290,6 +290,7 @@ void RoomManager::viewEventMenu(QObject *parent, const RoomEvent *event, NeoChat
|
||||
}
|
||||
|
||||
Q_EMIT showDelegateMenu(parent,
|
||||
room,
|
||||
event->id(),
|
||||
room->qmlSafeMember(event->senderId()),
|
||||
MessageComponentType::typeForEvent(*event),
|
||||
|
||||
Reference in New Issue
Block a user