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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user