Add action to user detail dialog to search for their messages in room

In other messaging applications (e.g. Discord) this is possible through
text modifiers like "from:@user". We don't support that, and I'm not
super keen on implementing yet-another-parsing-thing, so an action in
the user detail dialog should work for now.

Very useful to sift through large rooms but when you only care about a
specific person's messages (maybe your own?)
This commit is contained in:
Joshua Goins
2025-08-29 21:52:36 -04:00
parent 8ad822fd0b
commit fa8294d4b9
4 changed files with 44 additions and 0 deletions

View File

@@ -23,11 +23,17 @@ SearchPage {
*/
required property NeoChatRoom room
/**
* @brief If set, limits the search to events from a specific user id.
*/
property string senderId
title: i18nc("@action:title", "Search Messages")
model: SearchModel {
id: searchModel
room: root.room
senderId: root.senderId
}
modelDelegate: EventDelegate {