From e390c398626b5f6e885078de9ab14186e3c0c27e Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 6 Mar 2022 14:46:52 +0100 Subject: Allow to specify reason for removed message # Previous commits: # 5949173b Add function to force focus on InputDialog input field # 9482ac4e Allow explicit selection of SSO method # ab05e2d8 Mobile message input (#962) # 12a6da01 If you replace the txn id, replace a string the length of the txn id... --- src/timeline/TimelineModel.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/timeline/TimelineModel.cpp') diff --git a/src/timeline/TimelineModel.cpp b/src/timeline/TimelineModel.cpp index 903f137f..8e6c7235 100644 --- a/src/timeline/TimelineModel.cpp +++ b/src/timeline/TimelineModel.cpp @@ -1240,7 +1240,7 @@ TimelineModel::showReadReceipts(QString id) } void -TimelineModel::redactEvent(const QString &id) +TimelineModel::redactEvent(const QString &id, const QString &reason) { if (!id.isEmpty()) { auto edits = events.edits(id.toStdString()); @@ -1255,7 +1255,8 @@ TimelineModel::redactEvent(const QString &id) } emit dataAtIdChanged(id); - }); + }, + reason.toStdString()); // redact all edits to prevent leaks for (const auto &e : edits) { @@ -1271,7 +1272,8 @@ TimelineModel::redactEvent(const QString &id) } emit dataAtIdChanged(id); - }); + }, + reason.toStdString()); } } } -- cgit 1.5.1