summary refs log tree commit diff
path: root/src/timeline/TimelineModel.cpp
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2022-03-06 23:39:27 +0000
committerGitHub <noreply@github.com>2022-03-06 23:39:27 +0000
commit54d93becbffcf9bc3a084f7f906b96f38e7e8ce0 (patch)
tree5e74a1990f2b4bea3bc22b2d75cdf4ac4812a938 /src/timeline/TimelineModel.cpp
parentAllow explicit selection of SSO method (diff)
parentAdd GUI for specifying kick/ban reason (diff)
downloadnheko-54d93becbffcf9bc3a084f7f906b96f38e7e8ce0.tar.xz
Merge pull request #976 from tastytea/redaction-reason
Add GUI for redact/kick/ban reasons
Diffstat (limited to 'src/timeline/TimelineModel.cpp')
-rw-r--r--src/timeline/TimelineModel.cpp8
1 files changed, 5 insertions, 3 deletions
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()); } } }