summaryrefslogtreecommitdiffstats
path: root/src/threadlistmodel.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/threadlistmodel.h')
-rw-r--r--src/threadlistmodel.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/threadlistmodel.h b/src/threadlistmodel.h
index c56e80a..b80488b 100644
--- a/src/threadlistmodel.h
+++ b/src/threadlistmodel.h
@@ -188,6 +188,11 @@ public:
/// is not a message row.
MessageNode messageAt(const QModelIndex &index) const;
+ /// The thread a loaded message row belongs to, or empty when no expanded
+ /// thread holds it. Only expanded threads have message rows at all, so a
+ /// message the user could select is always findable here.
+ QString threadIdForMessage(const QString &messageId) const;
+
/// Resolves a selection into what an action should touch.
///
/// Mixed selections are honoured as given: a thread root and an unrelated