summary refs log tree commit diff
path: root/src/timeline/TimelineModel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/timeline/TimelineModel.cpp')
-rw-r--r--src/timeline/TimelineModel.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/timeline/TimelineModel.cpp b/src/timeline/TimelineModel.cpp

index 01856a4d..3680c5f9 100644 --- a/src/timeline/TimelineModel.cpp +++ b/src/timeline/TimelineModel.cpp
@@ -2684,6 +2684,19 @@ TimelineModel::resetThread() emit threadChanged(thread_); } } +void +TimelineModel::setReply(const QString &newReply) +{ + if (reply_ != newReply) { + reply_ = newReply; + + if (auto ev = events.get(reply_.toStdString(), "", false, true)) + setThread(QString::fromStdString( + mtx::accessors::relations(*ev).thread().value_or(thread_.toStdString()))); + + emit replyChanged(reply_); + } +} void TimelineModel::setEdit(const QString &newEdit)