Allow replying to messages within a thread

This commit is contained in:
James Graham
2026-02-12 18:24:28 +00:00
committed by Joshua Goins
parent b88e27d6d5
commit 1f723d1fdf
3 changed files with 15 additions and 5 deletions

View File

@@ -113,8 +113,8 @@ void EventMessageContentModel::initializeModel()
}
});
#if Quotient_VERSION_MINOR > 9
connect(m_room, &Room::newThread, this, [this](const auto &newThread) {
if (newThread == m_eventId) {
connect(m_room, &Room::newThread, this, [this](const Thread &newThread) {
if (newThread.threadRootId == m_eventId) {
resetContent();
}
});
@@ -324,7 +324,7 @@ void EventMessageContentModel::updateReplyModel()
if (roomMessageEvent == nullptr) {
return;
}
if (!roomMessageEvent->isReply(m_threadsEnabled) || (roomMessageEvent->isThreaded() && m_threadsEnabled)) {
if (!roomMessageEvent->isReply(!m_threadsEnabled)) {
if (m_replyModel) {
m_replyModel->disconnect(this);
m_replyModel->deleteLater();